Merge change 26329 into eclair

* changes:
  Distinguish jar folders and jar files in ApkBuilder script
This commit is contained in:
Android (Google) Code Review
2009-09-22 14:44:28 -04:00

View File

@@ -133,7 +133,12 @@ public final class ApkBuilderImpl {
throw new WrongOptionException("Missing value for -rj"); throw new WrongOptionException("Missing value for -rj");
} }
processJarFolder(args[index++], resourcesJars); File f = new File(args[index]);
if (f.isDirectory()) {
processJarFolder(args[index++], resourcesJars);
} else if (f.isFile()) {
processJarFile(args[index++], resourcesJars);
}
} else if ("-nf".equals(argument)) { } else if ("-nf".equals(argument)) {
// quick check on the next argument. // quick check on the next argument.
if (index == args.length) { if (index == args.length) {