build/jdk made configurable to prevent cleanup on branch change (for Cherry-Pick robot) : cleanup

This commit is contained in:
Dmitriy.Panov
2018-12-06 12:18:58 +03:00
parent feb9c65b98
commit d974c4fd0b
@@ -92,9 +92,9 @@ class CompilationContextImpl implements CompilationContext {
}
private static String jdkDir(String projectHome) {
(System.getProperty('jdk.dir')?.with {
System.getProperty('jdk.dir')?.with {
new File(it).exists() ? it : null
} ?: "$projectHome/build/jdk")
} ?: "$projectHome/build/jdk"
}
@SuppressWarnings(["GrUnresolvedAccess", "GroovyAssignabilityCheck"])