mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-349489 do not create log dir if compilationLogEnabled=false
GitOrigin-RevId: fc59b5abf64ce369688844ccbb3d3157b35282f2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2ddc1687d9
commit
e4b60fea05
+11
-8
@@ -246,18 +246,21 @@ class CompilationContextImpl private constructor(
|
||||
CompiledClasses.checkOptions(this)
|
||||
|
||||
val logDir = paths.logDir
|
||||
if (Files.exists(logDir)) {
|
||||
Files.newDirectoryStream(logDir).use { stream ->
|
||||
for (file in stream) {
|
||||
if (!file.endsWith("trace.json")) {
|
||||
NioFiles.deleteRecursively(file)
|
||||
if (options.compilationLogEnabled) {
|
||||
if (Files.exists(logDir)) {
|
||||
Files.newDirectoryStream(logDir).use { stream ->
|
||||
for (file in stream) {
|
||||
if (!file.endsWith("trace.json")) {
|
||||
NioFiles.deleteRecursively(file)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
Files.createDirectories(logDir)
|
||||
}
|
||||
}
|
||||
else {
|
||||
Files.createDirectories(logDir)
|
||||
}
|
||||
|
||||
overrideClassesOutputDirectory()
|
||||
if (!this::compilationData.isInitialized) {
|
||||
compilationData = JpsCompilationData(
|
||||
|
||||
Reference in New Issue
Block a user