We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c26ff2b commit 86429d6Copy full SHA for 86429d6
1 file changed
build.gradle
@@ -144,10 +144,12 @@ subprojects {
144
145
String basePath = it.absolutePath.replaceAll('\\.java', '')
146
File outFile = new File(basePath + '.out')
147
+ if(outFile.exists())
148
+ outFile.delete()
149
if(tags.outputLine)
- outFile.write(tags.outputLine + "\n")
150
+ outFile << tags.outputLine + "\n"
151
File errFile = new File(basePath + '.err')
- OutputStream runStandardOutput = new TeeOutputStream(new FileOutputStream(outFile), System.out)
152
+ OutputStream runStandardOutput = new TeeOutputStream(new FileOutputStream(outFile, true), System.out)
153
OutputStream runErrorOutput = new TeeOutputStream(new FileOutputStream(errFile), System.err)
154
155
task "$tags.fileRoot"(type: JavaExec, dependsOn: tags.runFirst) {
0 commit comments