Skip to content

Commit ede10f7

Browse files
committed
Remove .out files without /* Output: line
1 parent 98fafd4 commit ede10f7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ subprojects {
162162
errorOutput = new TeeOutputStream(new FileOutputStream(errFile), System.err)
163163
}
164164
doLast {
165-
if (outFile.size() == 0) outFile.delete()
166-
if (errFile.size() == 0) errFile.delete()
165+
if(outFile.size() == 0)
166+
outFile.delete()
167+
else if(!outFile.text.contains("/* Output:"))
168+
outFile.delete()
169+
if(errFile.size() == 0) errFile.delete()
167170
}
168171
}
169172
}

0 commit comments

Comments
 (0)