Skip to content

Commit

Permalink
Clean up scoped temp directory
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 384626463
  • Loading branch information
jasonobrien authored and copybara-github committed Jul 14, 2021
1 parent 1bd7812 commit 958316f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,9 @@ public static void main(String[] args) throws Exception {
options.packageId == -1 || (options.packageId >= 2 && options.packageId <= 255),
"packageId must be in the range [2,255]");

ScopedTemporaryDirectory scopedTmp = new ScopedTemporaryDirectory("android_resources_tmp");
try (ExecutorServiceCloser executorService = ExecutorServiceCloser.createWithFixedPoolOf(15)) {
try (ScopedTemporaryDirectory scopedTmp =
new ScopedTemporaryDirectory("android_resources_tmp");
ExecutorServiceCloser executorService = ExecutorServiceCloser.createWithFixedPoolOf(15)) {
final Path tmp = scopedTmp.getPath();
final Path densityManifest = tmp.resolve("manifest-filtered/AndroidManifest.xml");
final Path processedManifest = tmp.resolve("manifest-processed/AndroidManifest.xml");
Expand Down

0 comments on commit 958316f

Please sign in to comment.