if (getNextValue()) { lastValue = current; return true; } else { System.err.println("Missing value after parameter " + prefix); throw new UsageException();
public static File convertJarToDex(String jarFile) throws IOException { File f = File.createTempFile("convert", ".dex"); //f.deleteOnExit(); System.err.println(f); com.android.dx.command.Main.main(new String[]{"--dex", "--output=" + f.getAbsolutePath(), jarFile}); return f; }
ArgumentsParser parser = new ArgumentsParser(args); parseFlags(parser); fileNames = parser.getRemaining(); if(inputList != null && !inputList.isEmpty()) { if (!emptyOk) { context.err.println("no input files specified"); throw new UsageException(); makeOptionsObjects();
com.android.dx.command.dexer.Main.main(without(args, i)); break; } else if (arg.equals("--dump")) { com.android.dx.command.dump.Main.main(without(args, i)); break; } else if (arg.equals("--annotool")) { com.android.dx.command.annotool.Main.main( without(args, i)); break; } else if (arg.equals("--find-usages")) { com.android.dx.command.findusages.Main.main(without(args, i)); break; } else if (arg.equals("--version")) { version(); break; } else if (arg.equals("--help")) { usage(); System.exit(1);
ArgumentsParser parser = new ArgumentsParser(args); while(parser.getNext()) { if (parser.isArg("--debug")) { debug = true; } else if (parser.isArg("--verbose")) { verbose = true; } else if (parser.isArg("--verbose-dump")) { verboseDump = true; } else if (parser.isArg("--no-files")) { emptyOk = true; } else if (parser.isArg("--no-optimize")) { optimize = false; } else if (parser.isArg("--no-strict")) { strictNameCheck = false; } else if (parser.isArg("--core-library")) { coreLibrary = true; } else if (parser.isArg("--statistics")) { statistics = true; } else if (parser.isArg("--optimize-list=")) { if (dontOptimizeListFile != null) { System.err.println("--optimize-list and " + "--no-optimize-list are incompatible."); throw new UsageException(); optimizeListFile = parser.getLastValue(); } else if (parser.isArg("--no-optimize-list=")) { if (dontOptimizeListFile != null) { System.err.println("--optimize-list and "
while(parser.getNext()) { if (parser.isArg("--debug")) { debug = true; } else if (parser.isArg("--no-warning")) { warnings = false; } else if (parser.isArg("--verbose")) { verbose = true; } else if (parser.isArg("--verbose-dump")) { verboseDump = true; } else if (parser.isArg("--no-files")) { emptyOk = true; } else if (parser.isArg("--no-optimize")) { optimize = false; } else if (parser.isArg("--no-strict")) { strictNameCheck = false; } else if (parser.isArg("--core-library")) { coreLibrary = true; } else if (parser.isArg("--statistics")) { statistics = true; } else if (parser.isArg("--optimize-list=")) { if (dontOptimizeListFile != null) { context.err.println("--optimize-list and " + "--no-optimize-list are incompatible."); throw new UsageException(); optimizeListFile = parser.getLastValue(); } else if (parser.isArg("--no-optimize-list=")) { if (dontOptimizeListFile != null) { context.err.println("--optimize-list and "
System.err.println("--optimize-list and " + "--no-optimize-list are incompatible."); throw new UsageException(); System.err.println("--optimize-list and " + "--no-optimize-list are incompatible."); throw new UsageException(); System.err.println("unknown output extension: " + outName); throw new UsageException(); System.err.println("unknown positions option: " + pstr); throw new UsageException(); } else { System.err.println("unknown option: " + arg); throw new UsageException(); if (!emptyOk) { System.err.println("no input files specified"); throw new UsageException(); makeCfOptions();
com.android.dx.command.dexer.Main.main(without(args, i)); break; } else if (arg.equals("--dump")) { com.android.dx.command.dump.Main.main(without(args, i)); break; } else if (arg.equals("--annotool")) { com.android.dx.command.annotool.Main.main( without(args, i)); break; } else if (arg.equals("--find-usages")) { com.android.dx.command.findusages.Main.main(without(args, i)); break; } else if (arg.equals("--version")) { version(); break; } else if (arg.equals("--help")) { usage(); System.exit(1);
ArgumentsParser parser = new ArgumentsParser(args); while(parser.getNext()) { if (parser.isArg("--debug")) { debug = true; } else if (parser.isArg("--verbose")) { verbose = true; } else if (parser.isArg("--verbose-dump")) { verboseDump = true; } else if (parser.isArg("--no-files")) { emptyOk = true; } else if (parser.isArg("--no-optimize")) { optimize = false; } else if (parser.isArg("--no-strict")) { strictNameCheck = false; } else if (parser.isArg("--core-library")) { coreLibrary = true; } else if (parser.isArg("--statistics")) { statistics = true; } else if (parser.isArg("--optimize-list=")) { if (dontOptimizeListFile != null) { System.err.println("--optimize-list and " + "--no-optimize-list are incompatible."); throw new UsageException(); optimizeListFile = parser.getLastValue(); } else if (parser.isArg("--no-optimize-list=")) { if (dontOptimizeListFile != null) { System.err.println("--optimize-list and "
while(parser.getNext()) { if (parser.isArg("--debug")) { debug = true; } else if (parser.isArg("--no-warning")) { warnings = false; } else if (parser.isArg("--verbose")) { verbose = true; } else if (parser.isArg("--verbose-dump")) { verboseDump = true; } else if (parser.isArg("--no-files")) { emptyOk = true; } else if (parser.isArg("--no-optimize")) { optimize = false; } else if (parser.isArg("--no-strict")) { strictNameCheck = false; } else if (parser.isArg("--core-library")) { coreLibrary = true; } else if (parser.isArg("--statistics")) { statistics = true; } else if (parser.isArg("--optimize-list=")) { if (dontOptimizeListFile != null) { context.err.println("--optimize-list and " + "--no-optimize-list are incompatible."); throw new UsageException(); optimizeListFile = parser.getLastValue(); } else if (parser.isArg("--no-optimize-list=")) { if (dontOptimizeListFile != null) { context.err.println("--optimize-list and "
ArgumentsParser parser = new ArgumentsParser(args); OutputOptions outputOptions = parseFlags(parser); fileNames = parser.getRemaining(); if(inputList != null && !inputList.isEmpty()) { if (!emptyOk) { err.println("no input files specified"); throw new UsageException(); err.println(MAIN_DEX_LIST_OPTION + " is only supported in combination with " + MULTI_DEX_OPTION); throw new UsageException(); err.println(MINIMAL_MAIN_DEX_OPTION + " is only supported in combination with " + MULTI_DEX_OPTION + " and " + MAIN_DEX_LIST_OPTION); throw new UsageException(); err.println(INCREMENTAL_OPTION + " is not supported with " + MULTI_DEX_OPTION); throw new UsageException(); err.println("Unsupported output \"" + outName +"\". " + MULTI_DEX_OPTION + " supports only archive or directory output"); throw new UsageException(); makeOptionsObjects(context);
if (getNextValue()) { lastValue = current; return true; } else { err.println("Missing value after parameter " + prefix); throw new UsageException();
com.android.dx.command.dexer.Main.main(without(args, i)); break; } else if (arg.equals("--dump")) { com.android.dx.command.dump.Main.main(without(args, i)); break; } else if (arg.equals("--annotool")) { com.android.dx.command.annotool.Main.main( without(args, i)); break; } else if (arg.equals("--find-usages")) { com.android.dx.command.findusages.Main.main(without(args, i)); break; } else if (arg.equals("--version")) { version(); break; } else if (arg.equals("--help")) { usage(); System.exit(1);
@NonNull private OutputOptions parseFlags(ArgumentsParser parser) { OutputOptions outputOptions = new OutputOptions(); while(parser.getNext()) { if (parser.isArg("--debug")) { debug = true; } else if (parser.isArg("--no-warning")) { warnings = false; } else if (parser.isArg("--verbose")) { verbose = true; } else if (parser.isArg("--verbose-dump")) { verboseDump = true; } else if (parser.isArg("--no-files")) { emptyOk = true; } else if (parser.isArg("--no-optimize")) { optimize = false; } else if (parser.isArg("--no-strict")) { strictNameCheck = false; } else if (parser.isArg("--core-library")) { coreLibrary = true; } else if (parser.isArg("--statistics")) { statistics = true; } else if (parser.isArg("--optimize-list=")) { if (dontOptimizeListFile != null) { err.println("--optimize-list and " + "--no-optimize-list are incompatible."); throw new UsageException(); optimizeListFile = parser.getLastValue();
ArgumentsParser parser = new ArgumentsParser(args); parseFlags(parser); fileNames = parser.getRemaining(); if(inputList != null && !inputList.isEmpty()) { if (!emptyOk) { context.err.println("no input files specified"); throw new UsageException(); context.err.println(MAIN_DEX_LIST_OPTION + " is only supported in combination with " + MULTI_DEX_OPTION); throw new UsageException(); context.err.println(MINIMAL_MAIN_DEX_OPTION + " is only supported in combination with " + MULTI_DEX_OPTION + " and " + MAIN_DEX_LIST_OPTION); throw new UsageException(); context.err.println(INCREMENTAL_OPTION + " is not supported with " + MULTI_DEX_OPTION); throw new UsageException(); context.err.println("Unsupported output \"" + outName +"\". " + MULTI_DEX_OPTION + " supports only archive or directory output"); throw new UsageException(); makeOptionsObjects();
if (getNextValue()) { lastValue = current; return true; } else { System.err.println("Missing value after parameter " + prefix); throw new UsageException();
com.android.dx.command.dexer.Main.main(without(args, i)); break; } else if (arg.equals("--dump")) { com.android.dx.command.dump.Main.main(without(args, i)); break; } else if (arg.equals("--annotool")) { com.android.dx.command.annotool.Main.main( without(args, i)); break; } else if (arg.equals("--junit")) { TestRunner.main(without(args, i)); break; } else if (arg.equals("--version")) { version(); break; } else if (arg.equals("--help")) { usage(); System.exit(1);
if (getNextValue()) { lastValue = current; return true; } else { System.err.println("Missing value after parameter " + prefix); throw new UsageException();
com.android.dx.command.dexer.Main.main(without(args, i)); break; } else if (arg.equals("--dump")) { com.android.dx.command.dump.Main.main(without(args, i)); break; } else if (arg.equals("--annotool")) { com.android.dx.command.annotool.Main.main( without(args, i)); break; } else if (arg.equals("--junit")) { TestRunner.main(without(args, i)); break; } else if (arg.equals("--find-usages")) { com.android.dx.command.findusages.Main.main(without(args, i)); break; } else if (arg.equals("--version")) { version(); break; } else if (arg.equals("--help")) { usage(); System.exit(1);
if (getNextValue()) { lastValue = current; return true; } else { System.err.println("Missing value after parameter " + prefix); throw new UsageException();