mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
external build: disable java extensions for external build process to ensure that build won't fail if incompatible version of a library used by the build process is added to extensions directory (IDEA-147368)
This commit is contained in:
@@ -135,6 +135,7 @@ public class BuildManager implements Disposable {
|
||||
private static final String COMPILER_PROCESS_JDK_PROPERTY = "compiler.process.jdk";
|
||||
public static final String SYSTEM_ROOT = "compile-server";
|
||||
public static final String TEMP_DIR_NAME = "_temp_";
|
||||
private static final String JAVA_EXT_DIRS_PROPERTY = "java.ext.dirs";
|
||||
// do not make static in order not to access application on class load
|
||||
private final boolean IS_UNIT_TEST_MODE;
|
||||
private static final String IWS_EXTENSION = ".iws";
|
||||
@@ -1163,6 +1164,10 @@ public class BuildManager implements Disposable {
|
||||
cmdLine.addParameters(args);
|
||||
}
|
||||
|
||||
if (!cmdLine.getParametersList().hasProperty(JAVA_EXT_DIRS_PROPERTY)) {
|
||||
cmdLine.getParametersList().addProperty(JAVA_EXT_DIRS_PROPERTY, "\"\"");
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnnecessaryFullyQualifiedName")
|
||||
final Class<?> launcherClass = org.jetbrains.jps.cmdline.Launcher.class;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user