Skip to content

Commit

Permalink
Merge pull request #46 from defold/delete-failing-builds
Browse files Browse the repository at this point in the history
Delete failing builds.
  • Loading branch information
king-lothman authored Jun 16, 2017
2 parents 12538d7 + 9857270 commit 02e9ed5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions server/src/main/java/com/defold/extender/ExtenderController.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,13 @@ public void buildEngine(MultipartHttpServletRequest request,

Extender extender = new Extender(platform, uploadDirectory, sdk, buildDirectory);

// Build and write output files to output stream
List<File> outputFiles = extender.build();
ZipUtils.zip(response.getOutputStream(), outputFiles);

extender.dispose();
try {
// Build and write output files to output stream
List<File> outputFiles = extender.build();
ZipUtils.zip(response.getOutputStream(), outputFiles);
} finally {
extender.dispose();
}
} finally {
// Delete temporary upload directory
FileUtils.deleteDirectory(uploadDirectory);
Expand Down

0 comments on commit 02e9ed5

Please sign in to comment.