Skip to content

Commit

Permalink
feat(abg): clean up temporary files after jar creation (#1617)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire authored Sep 8, 2024
1 parent bc1d82e commit 2b60e3a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ internal fun buildJars(
val pathWithJarContents = compileBinding(sourceFilePaths = sourceFilePaths)
val mainJarByteArrayOutputStream = ByteArrayOutputStream()
mainJarByteArrayOutputStream.createZipFile(pathWithJarContents)
pathWithJarContents.toFile().deleteRecursively()

val sourcesJarByteArrayOutputStream = ByteArrayOutputStream()
sourcesJarByteArrayOutputStream.createZipFile(compilationInputDir)
compilationInputDir.toFile().deleteRecursively()

return Jars(
mainJar = mainJarByteArrayOutputStream.toByteArray(),
Expand Down

0 comments on commit 2b60e3a

Please sign in to comment.