mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
build scripts cleanup: removed obsolete method
dataStorageRoot is now cleaned in JpsGantProjectBuilder#cleanOutput.
This commit is contained in:
@@ -36,7 +36,6 @@ target(compile: "Compile project") {
|
||||
}
|
||||
|
||||
if (!isDefined("avoid.project.rebuild")) {
|
||||
clearBuildCaches()
|
||||
projectBuilder.cleanOutput()
|
||||
projectBuilder.buildAll()
|
||||
}
|
||||
|
||||
@@ -204,15 +204,6 @@ binding.setVariable("prepareOutputFolder", {
|
||||
}
|
||||
})
|
||||
|
||||
binding.setVariable("clearBuildCaches", {
|
||||
//todo[nik] this is temporary solution until we update bootstrap jps-builders jars to the new version where cleaning is performed in JpsGantProjectBuilder#cleanOutput
|
||||
if (projectBuilder.buildIncrementally && !Boolean.parseBoolean(p("jps.build.clear.incremental.caches", "false"))) return
|
||||
def storageRoot = projectBuilder.dataStorageRoot
|
||||
if (storageRoot != null) {
|
||||
FileUtil.delete(storageRoot)
|
||||
}
|
||||
})
|
||||
|
||||
binding.setVariable("findModule", {String name ->
|
||||
project.modules.find { it.name == name }
|
||||
})
|
||||
@@ -350,7 +341,6 @@ binding.setVariable("buildModulesAndCollectUsedJars", { List modules, List appro
|
||||
def modulesToBuild = []
|
||||
def modulesNames = modules.contains(javaRT) ? modules : [*modules, javaRT]
|
||||
def usedJars = collectUsedJars(modulesNames, approvedJars, forbiddenJars, modulesToBuild)
|
||||
clearBuildCaches()
|
||||
projectBuilder.cleanOutput()
|
||||
projectBuilder.buildModules(modulesToBuild)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user