Save system properties in incremental jps tests

This commit is contained in:
Alexey Tsvetkov
2015-12-02 20:25:25 +03:00
parent 73444ce59b
commit d53cd3c70b
4 changed files with 28 additions and 52 deletions
@@ -31,22 +31,12 @@ public class IncrementalCompilation {
}
@TestOnly
public static void disableIncrementalCompilation() {
System.setProperty(INCREMENTAL_COMPILATION_PROPERTY, "false");
public static void setIsEnabled(boolean value) {
System.setProperty(INCREMENTAL_COMPILATION_PROPERTY, String.valueOf(value));
}
@TestOnly
public static void enableIncrementalCompilation() {
System.setProperty(INCREMENTAL_COMPILATION_PROPERTY, "true");
}
@TestOnly
public static void disableExperimental() {
System.setProperty(IS_EXPERIMENTAL_PROPERTY, "false");
}
@TestOnly
public static void enableExperimental() {
System.setProperty(IS_EXPERIMENTAL_PROPERTY, "true");
public static void setIsExperimental(boolean value) {
System.setProperty(IS_EXPERIMENTAL_PROPERTY, String.valueOf(value));
}
}