aboutsummaryrefslogtreecommitdiffstats
path: root/java/config/config.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-08-10 17:58:12 -0700
committerColin Cross <ccross@android.com>2017-08-14 10:07:53 -0700
commitb852a58aa6fe6063c78656569b0292b6e6d21ad7 (patch)
tree8c5c6730493bc990c0e93b630d36d22ba70428ec /java/config/config.go
parent10a0349d98b8ece1e54d48b0e1d647ae3c0f1910 (diff)
downloadbuild_soong-b852a58aa6fe6063c78656569b0292b6e6d21ad7.tar.gz
build_soong-b852a58aa6fe6063c78656569b0292b6e6d21ad7.tar.bz2
build_soong-b852a58aa6fe6063c78656569b0292b6e6d21ad7.zip
Convert soong java from soong_zip to jar
soong_zip produces jar files that are not compatible with java's ZipInputStream. Switch to jar using ugly sed scripts to munge file lists into the alternating -C and file arguments required by jar. Bug: 64536066 Test: m -j checkbuild Test: build/soong/scripts/jar_args.sh --test Change-Id: Ifcc4bdab25e7d02342720eb246c673ff9a58bddb
Diffstat (limited to 'java/config/config.go')
-rw-r--r--java/config/config.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/config/config.go b/java/config/config.go
index 44651cb4..90d0fb51 100644
--- a/java/config/config.go
+++ b/java/config/config.go
@@ -53,7 +53,8 @@ func init() {
pctx.SourcePathVariable("JarCmd", "${JavaToolchain}/jar")
pctx.SourcePathVariable("JavadocCmd", "${JavaToolchain}/javadoc")
- pctx.StaticVariable("SoongZipCmd", filepath.Join("${bootstrap.ToolDir}", "soong_zip"))
+ pctx.StaticVariable("Zip2ZipCmd", filepath.Join("${bootstrap.ToolDir}", "zip2zip"))
+ pctx.SourcePathVariable("JarArgsCmd", "build/soong/scripts/jar-args.sh")
pctx.HostBinToolVariable("DxCmd", "dx")
pctx.HostJavaToolVariable("JarjarCmd", "jarjar.jar")