Skip to content

Commit 28f14fa

Browse files
committed
post run cleanup
1 parent bec8b1f commit 28f14fa

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

build.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,11 @@ subprojects {
202202
ignoreExitValue = maybeIgnoreExitValue
203203
standardOutput = runStandardOutput
204204
errorOutput = runErrorOutput
205-
addShutdownHook {
206-
runStandardOutput.close()
207-
runErrorOutput.close()
208-
if (outFile.size() == 0) outFile.delete()
209-
if (errFile.size() == 0) errFile.delete()
210-
}
205+
} << {
206+
runStandardOutput.close()
207+
runErrorOutput.close()
208+
if (outFile.size() == 0) outFile.delete()
209+
if (errFile.size() == 0) errFile.delete()
211210
}
212211
}
213212
}

0 commit comments

Comments
 (0)