Skip to content

Commit

Permalink
Fix ManifestMergerAction test case on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Bencodes committed Mar 24, 2022
1 parent 4eb4536 commit 2d6defb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,8 @@ private static Path removePermissions(Path manifest, Path outputDir)
}
}
}
// Write resulting manifest to the output directory, maintaining full path to prevent collisions
Path output = outputDir.resolve(manifest.toString().replaceFirst("^/", ""));
Files.createDirectories(output.getParent());
// Write resulting manifest to a tmp file to prevent collisions
Path output = Files.createTempFile(outputDir, "AndroidManifest", ".xml");
TransformerFactory.newInstance()
.newTransformer()
.transform(new DOMSource(doc), new StreamResult(output.toFile()));
Expand Down

0 comments on commit 2d6defb

Please sign in to comment.