You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by lk...@apache.org on 2021/03/29 06:39:21 UTC

[netbeans] branch master updated: [NETBEANS-5484] Clear NB Non-Project cache when we have more info from Gradle

This is an automated email from the ASF dual-hosted git repository.

lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 190e5c4  [NETBEANS-5484] Clear NB Non-Project cache when we have more info from Gradle
190e5c4 is described below

commit 190e5c4e4315595794ca7b78af5a1318d05c290c
Author: Laszlo Kishalmi <la...@gmail.com>
AuthorDate: Sun Mar 28 19:50:09 2021 -0700

    [NETBEANS-5484] Clear NB Non-Project cache when we have more info from Gradle
---
 extide/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/extide/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java b/extide/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java
index a64ba17..86d9b21 100644
--- a/extide/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java
+++ b/extide/gradle/src/org/netbeans/modules/gradle/GradleProjectCache.java
@@ -63,6 +63,7 @@ import org.netbeans.modules.gradle.api.NbGradleProject;
 import org.netbeans.modules.gradle.api.execute.GradleCommandLine;
 import java.util.WeakHashMap;
 import javax.swing.JLabel;
+import org.netbeans.api.project.ProjectManager;
 import org.netbeans.modules.gradle.cache.AbstractDiskCache.CacheEntry;
 import org.netbeans.modules.gradle.cache.ProjectInfoDiskCache.QualifiedProjectInfo;
 import org.netbeans.modules.gradle.api.execute.RunUtils;
@@ -412,6 +413,7 @@ public final class GradleProjectCache {
             if (baseProject.isRoot()) {
                 SubProjectDiskCache spCache = SubProjectDiskCache.get(baseProject.getRootDir());
                 spCache.storeData(new SubProjectDiskCache.SubProjectInfo(baseProject));
+                ProjectManager.getDefault().clearNonProjectCache();
             }
         }
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists