am b824d519: am 36ee5daf: Merge change 26329 into eclair

Merge commit 'b824d519146a813dff72f4baa4a1c7abbf78b962'

* commit 'b824d519146a813dff72f4baa4a1c7abbf78b962':
  Distinguish jar folders and jar files in ApkBuilder script
This commit is contained in:
Piotr Gurgul
2009-09-23 11:29:52 -07:00
committed by Android Git Automerger

View File

@@ -133,7 +133,12 @@ public final class ApkBuilderImpl {
throw new WrongOptionException("Missing value for -rj"); throw new WrongOptionException("Missing value for -rj");
} }
File f = new File(args[index]);
if (f.isDirectory()) {
processJarFolder(args[index++], resourcesJars); 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) {