aboutsummaryrefslogtreecommitdiffstats
path: root/java/app_builder.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2018-09-18 17:05:15 -0700
committerColin Cross <ccross@android.com>2018-09-21 16:08:16 -0700
commit08e28abc4ecd10a0e0ab2dcb683560f9c6331e1b (patch)
tree1c001d1aa0e8a5c60c8ce67f842ee8fc448b7d4f /java/app_builder.go
parent3f4d116496ac1dd6a844f8706fb547126f8211ef (diff)
downloadandroid_build_soong-08e28abc4ecd10a0e0ab2dcb683560f9c6331e1b.tar.gz
android_build_soong-08e28abc4ecd10a0e0ab2dcb683560f9c6331e1b.tar.bz2
android_build_soong-08e28abc4ecd10a0e0ab2dcb683560f9c6331e1b.zip
soong_zip: support globs in -f and -D arguments
-f and -D arguments can now take globs in the Soong format. Also update the use of soong_zip that jars resources to escape the globs in the arguments, and then shell-escape them when writing to the rsp file so the glob escape are not intepreted by ReadRespFile. Also remove an unused argument to the buildAAR rule that could have contained values that needed escaping. Test: m checkbuild Change-Id: I7f20bb169dc01f952d2a7681ec6ee9c05737ed37
Diffstat (limited to 'java/app_builder.go')
-rw-r--r--java/app_builder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/app_builder.go b/java/app_builder.go
index 954ca446..e27b1b70 100644
--- a/java/app_builder.go
+++ b/java/app_builder.go
@@ -103,10 +103,10 @@ var buildAAR = pctx.AndroidStaticRule("buildAAR",
`cp ${manifest} ${outDir}/AndroidManifest.xml && ` +
`cp ${classesJar} ${outDir}/classes.jar && ` +
`cp ${rTxt} ${outDir}/R.txt && ` +
- `${config.SoongZipCmd} -jar -o $out -C ${outDir} -D ${outDir} ${resArgs}`,
+ `${config.SoongZipCmd} -jar -o $out -C ${outDir} -D ${outDir}`,
CommandDeps: []string{"${config.SoongZipCmd}"},
},
- "manifest", "classesJar", "rTxt", "resArgs", "outDir")
+ "manifest", "classesJar", "rTxt", "outDir")
func BuildAAR(ctx android.ModuleContext, outputFile android.WritablePath,
classesJar, manifest, rTxt android.Path, res android.Paths) {