platform_build_soong/java
Nan Zhang 674dd932d8 Add Respfile support for soong_zip.
Sometime the size of our command line passed to soong_zip go program
exceeds the cmdline size limit. So add an RespFile support with "@" special
character prefix.

The args in the cmdline will be considered together with the
args in RespFile during soong_zip running.

Test: real tests in my local machine, and compare the
res/libphonenumber.jar before and after changes.

./cmd -o test.zip '""'-C -> [./cmd,-o,test.zip,""-C]
./cmd -o test.zip '-C -f -> [./cmd,-o,test.zip,-C -f]
./cmd -o test.zip '\"'-C -f -> [./cmd,-o,test.zip,\"-C -f]
./cmd -o test.zip '\\'-C -f -> [./cmd,-o,test.zip,\\-C -f]
./cmd -o test.zip '\a'-C -f -> [./cmd,-o,test.zip,\a-C -f]

./cmd -o test.zip \'-C -> [./cmd,-o,test.zip,'-C]
./cmd -o test.zip \\-C -> [./cmd,-o,test.zip,\-C]
./cmd -o test.zip \"-C -> [./cmd,-o,test.zip,"-C]

./cmd -o test.zip "'"-C -> [./cmd,-o,test.zip,'-C]
./cmd -o test.zip "\\"-C -f -> [./cmd,-o,test.zip,\a-C -f]
./cmd -o test.zip "\""-C -f -> [./cmd,-o,test.zip,"a-C -f]

Bug: b/72484223

Change-Id: I83c3630b70c8396c8e8a3f266244d868d754c4e8
2018-02-13 15:13:01 -08:00
..
config Add R8 support 2018-01-03 14:15:57 -08:00
aapt2.go Sort compiled resources by output path 2017-12-01 19:16:42 +00:00
androidmk.go Add R8 support 2018-01-03 14:15:57 -08:00
app.go Fix ordering of overlays 2018-01-04 14:52:45 -08:00
app_builder.go Export app certificates to Make for apkcerts list 2017-12-14 12:28:41 -08:00
app_test.go Fix ordering of overlays 2018-01-04 14:52:45 -08:00
builder.go Add Respfile support for soong_zip. 2018-02-13 15:13:01 -08:00
dex.go Add EMMA_INSTRUMENT_STATIC support 2018-01-04 14:52:45 -08:00
gen.go When compiling with the lite protobuf option, pass the option to aprotoc to force the lite runtime. 2017-12-15 08:40:27 -08:00
genrule.go Add java_genrules to use jars as inputs and outputs 2017-12-06 03:55:20 +00:00
jacoco.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
jacoco_test.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
java.go Revert "Support filegroup in exclude_srcs" 2018-02-09 09:46:11 +00:00
java_test.go Revert "Support filegroup in exclude_srcs" 2018-02-09 09:46:11 +00:00
proto.go Support output params in java proto 2017-12-15 13:42:09 -08:00
resources.go Correctly add dependencies to java_resource_dirs files 2017-10-04 17:19:43 -07:00
system_modules.go Export system module library list to Make 2018-01-25 14:51:50 -08:00