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 709978e [NETBEANS-4396] Properly disabling Compile on Save when it is
not supported.
709978e is described below
commit 709978e07af11ce361a63702f1b9c5bcff4956a8
Author: Jan Lahoda <[email protected]>
AuthorDate: Wed Jun 3 22:22:24 2020 +0200
[NETBEANS-4396] Properly disabling Compile on Save when it is not supported.
---
.../org/netbeans/modules/java/j2semodule/J2SEModularProjectUtil.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/java/java.j2semodule/src/org/netbeans/modules/java/j2semodule/J2SEModularProjectUtil.java
b/java/java.j2semodule/src/org/netbeans/modules/java/j2semodule/J2SEModularProjectUtil.java
index 33e542e..75753de 100644
---
a/java/java.j2semodule/src/org/netbeans/modules/java/j2semodule/J2SEModularProjectUtil.java
+++
b/java/java.j2semodule/src/org/netbeans/modules/java/j2semodule/J2SEModularProjectUtil.java
@@ -28,6 +28,7 @@ import java.util.logging.Logger;
import org.netbeans.api.annotations.common.CheckForNull;
import org.netbeans.api.annotations.common.NonNull;
import org.netbeans.api.java.classpath.ClassPath;
+import org.netbeans.api.java.source.BuildArtifactMapper;
import org.netbeans.api.project.Project;
import org.netbeans.modules.java.api.common.SourceRoots;
import org.netbeans.modules.java.api.common.project.ProjectProperties;
@@ -140,7 +141,7 @@ public class J2SEModularProjectUtil {
}
}
}
- return true;
+ return BuildArtifactMapper.isCompileOnSaveSupported();
}
public static boolean isCompileOnSaveEnabled(final J2SEModularProject
project) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists