You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/10/09 11:48:23 UTC

[groovy] branch master updated: clean up tmpJar

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 50d14ea  clean up tmpJar
50d14ea is described below

commit 50d14ea8e2512c23de8698bc464ace546a8f71ce
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Oct 9 21:48:15 2020 +1000

    clean up tmpJar
---
 buildSrc/src/main/groovy/org/apache/groovy/gradle/JarJarTask.groovy | 1 +
 1 file changed, 1 insertion(+)

diff --git a/buildSrc/src/main/groovy/org/apache/groovy/gradle/JarJarTask.groovy b/buildSrc/src/main/groovy/org/apache/groovy/gradle/JarJarTask.groovy
index 75de724..993cb0b 100644
--- a/buildSrc/src/main/groovy/org/apache/groovy/gradle/JarJarTask.groovy
+++ b/buildSrc/src/main/groovy/org/apache/groovy/gradle/JarJarTask.groovy
@@ -108,6 +108,7 @@ class JarJarTask extends DefaultTask {
         def originalJar = from.get()
         def outputFile = this.outputFile.get().asFile
         def tmpJar = new File(temporaryDir, "${outputFile.name}.${Integer.toHexString(UUID.randomUUID().hashCode())}.tmp")
+        tmpJar.deleteOnExit()
         def manifestFile = new File(temporaryDir, 'MANIFEST.MF')
         // First step is to create a repackaged jar
         outputFile.parentFile.mkdirs()