mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
older projects compatibility: read build process heap size from workspace.xml as a fallback value (IDEA-147362)
This commit is contained in:
@@ -685,6 +685,11 @@ public class CompilerConfigurationImpl extends CompilerConfiguration implements
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (myState.BUILD_PROCESS_HEAP_SIZE == DEFAULT_BUILD_PROCESS_HEAP_SIZE) {
|
||||
final CompilerWorkspaceConfiguration workspace = CompilerWorkspaceConfiguration.getInstance(myProject);
|
||||
// older version compatibility: as a fallback load this setting from workspace
|
||||
myState.BUILD_PROCESS_HEAP_SIZE = workspace.COMPILER_PROCESS_HEAP_SIZE;
|
||||
}
|
||||
}
|
||||
|
||||
final Element notNullAssertions = parentNode.getChild(JpsJavaCompilerConfigurationSerializer.ADD_NOTNULL_ASSERTIONS);
|
||||
|
||||
@@ -45,6 +45,11 @@ public class CompilerWorkspaceConfiguration implements PersistentStateComponent<
|
||||
public boolean CLEAR_OUTPUT_DIRECTORY = true;
|
||||
public boolean MAKE_PROJECT_ON_SAVE = false; // until we fix problems with several open projects (IDEA-104064), daemon slowness (IDEA-104666)
|
||||
public boolean PARALLEL_COMPILATION = false;
|
||||
/**
|
||||
* @Deprecated. Use corresponding value from CompilerConfiguration
|
||||
* This field is left here for compatibility with older projects
|
||||
*/
|
||||
public int COMPILER_PROCESS_HEAP_SIZE = 700;
|
||||
public String COMPILER_PROCESS_ADDITIONAL_VM_OPTIONS = "";
|
||||
public boolean REBUILD_ON_DEPENDENCY_CHANGE = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user