diff options
| author | 2009-10-09 11:24:51 -0700 | |
|---|---|---|
| committer | 2009-10-13 13:33:31 -0700 | |
| commit | dbe7a68cc13ae135b33769918932838d2d447169 (patch) | |
| tree | 325051b0f903da2157f6c511a5b8f6608592851a /tools/aapt/Main.cpp | |
| parent | 2d295a9601315a2610a2cb759ed9a4f787e7d4b5 (diff) | |
add "junk path" -k option to aapt
Adds a "junk path" option to aapt so that you can do:
aapt add -k archive.zip path/to/some.file
and have the file stored in the zip under the name "some.file"
(without the path). Needed so that we can use 'aapt add' in place of
'zip -j' when building jar files, which will lead to smaller
incremental OTAs.
Diffstat (limited to 'tools/aapt/Main.cpp')
| -rw-r--r-- | tools/aapt/Main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt/Main.cpp b/tools/aapt/Main.cpp index e61010cd695f..98286c02d7e7 100644 --- a/tools/aapt/Main.cpp +++ b/tools/aapt/Main.cpp @@ -99,6 +99,7 @@ void usage(void) " -f force overwrite of existing files\n" " -g specify a pixel tolerance to force images to grayscale, default 0\n" " -j specify a jar or zip file containing classes to include\n" + " -k junk path of file(s) added\n" " -m make package directories under location specified by -J\n" #if 0 " -p pseudolocalize the default configuration\n" @@ -236,6 +237,9 @@ int main(int argc, char* const argv[]) bundle.setGrayscaleTolerance(tolerance); printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance); break; + case 'k': + bundle.setJunkPath(true); + break; case 'm': bundle.setMakePackageDirs(true); break; |