AndrolibResources.aaptPackage(): added assetDir argument.

This commit is contained in:
Ryszard Wiśniewski 2010-03-27 19:44:48 +01:00
parent 43b28c7ee5
commit a955495284

View File

@ -83,12 +83,13 @@ final public class AndrolibResources {
public void aaptPackage(File apkFile, File manifest, File resDir)
throws AndrolibException {
aaptPackage(apkFile, manifest, resDir, null, false);
aaptPackage(apkFile, manifest, resDir, null, null, false);
}
public void aaptPackage(File apkFile, File manifest, File resDir,
File rawDir, boolean update) throws AndrolibException {
String[] cmd = new String[12];
File rawDir, File assetDir, boolean update)
throws AndrolibException {
String[] cmd = new String[13];
int i = 0;
cmd[i++] = "aapt";
cmd[i++] = "p";
@ -107,6 +108,10 @@ final public class AndrolibResources {
cmd[i++] = "-S";
cmd[i++] = resDir.getAbsolutePath();
}
if (assetDir != null) {
cmd[i++] = "-A";
cmd[i++] = assetDir.getAbsolutePath();
}
if (rawDir != null) {
cmd[i++] = rawDir.getAbsolutePath();
}