mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
build scripts: don't use separate directory for incremental compilation caches
Since incremental compilation don't watch for changes in output directories and the both incremental and non-incremental compilation have the same output directory, using a different caches directory may lead to problems if non-incremental compilation is invoked between two incremental. Also this makes it simpler to recover from bugs in incremental compilation, we just need to run compilation in non-incremental mode and it'll clear caches.
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ class CompilationContextImpl implements CompilationContext {
|
||||
|
||||
void prepareForBuild() {
|
||||
checkCompilationOptions()
|
||||
def dataDirName = options.incrementalCompilation ? ".jps-build-data-incremental" : ".jps-build-data"
|
||||
def dataDirName = ".jps-build-data"
|
||||
def logDir = new File(paths.buildOutputRoot, "log")
|
||||
FileUtil.delete(logDir)
|
||||
compilationData = new JpsCompilationData(new File(paths.buildOutputRoot, dataDirName), new File("$logDir/compilation.log"),
|
||||
|
||||
Reference in New Issue
Block a user