diff options
author | 2017-09-22 02:02:35 +0200 | |
---|---|---|
committer | 2017-09-22 12:16:02 +0200 | |
commit | 54c86b4c6f29f4b0d52e1db702d30c10f3ac8b56 (patch) | |
tree | 08141e8298a2eadae818e7d8cce1198280e3c1be /src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceCompiler.java | |
parent | 87c70eef9cae2c2bb652ecc0baa16adb90a21eab (diff) |
Action for resource shrinking with aapt2
Introduces the ResourcesZip class to more easily handle processing merged resources.
RELNOTES: None
PiperOrigin-RevId: 169622715
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceCompiler.java')
-rw-r--r-- | src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceCompiler.java | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceCompiler.java b/src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceCompiler.java index 6084f6710f..5f8b842859 100644 --- a/src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceCompiler.java +++ b/src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceCompiler.java @@ -46,7 +46,7 @@ public class ResourceCompiler { private final Path aapt2; private final Revision buildToolsVersion; - public CompileTask( + private CompileTask( Path file, Path compiledResourcesOut, Path aapt2, Revision buildToolsVersion) { this.file = file; this.compiledResourcesOut = compiledResourcesOut; @@ -56,17 +56,16 @@ public class ResourceCompiler { @Override public Path call() throws Exception { - logger.fine( - new AaptCommandBuilder(aapt2) - .forBuildToolsVersion(buildToolsVersion) - .forVariantType(VariantType.LIBRARY) - .add("compile") - .add("-v") - .add("--legacy") - .add("-o", compiledResourcesOut.toString()) - .add(file.toString()) - .execute("Compiling " + file)); - + logger.fine( + new AaptCommandBuilder(aapt2) + .forBuildToolsVersion(buildToolsVersion) + .forVariantType(VariantType.LIBRARY) + .add("compile") + .add("-v") + .add("--legacy") + .add("-o", compiledResourcesOut.toString()) + .add(file.toString()) + .execute("Compiling " + file)); String type = file.getParent().getFileName().toString(); String filename = file.getFileName().toString(); |