diff options
Diffstat (limited to 'pdf-as-tests/build.gradle')
-rw-r--r-- | pdf-as-tests/build.gradle | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/pdf-as-tests/build.gradle b/pdf-as-tests/build.gradle index beba0afd..8d5129ff 100644 --- a/pdf-as-tests/build.gradle +++ b/pdf-as-tests/build.gradle @@ -144,14 +144,16 @@ suiteDir.eachDir { File subDir -> delete fileTree (dir: subDir.absolutePath, include: "**/test_result.html") } - task "cleanOutFolders${dirname.capitalize()}"() << { - subDir.eachDir { File tcDir -> - File outDir = new File(tcDir, "out"); - if(outDir.exists() && outDir.isDirectory()) { - outDir.eachFileRecurse { File mfile -> - mfile.delete() + task "cleanOutFolders${dirname.capitalize()}"() { + doLast { + subDir.eachDir { File tcDir -> + File outDir = new File(tcDir, "out"); + if(outDir.exists() && outDir.isDirectory()) { + outDir.eachFileRecurse { File mfile -> + mfile.delete() + } + outDir.delete() } - outDir.delete() } } } |