appinventor/buildserver/src/com/google/appinventor/buildserver/Main.java
public static void main(String[] args) {

    CmdLineParser cmdLineParser = new CmdLineParser(commandLineOptions);
    try {
      cmdLineParser.parseArgument(args);
    } catch (CmdLineException e) {
      System.err.println(e.getMessage());
      cmdLineParser.printUsage(System.err);
      System.exit(1);
    }

    ProjectBuilder projectBuilder = new ProjectBuilder();
    ZipFile zip = null;
    try {
      zip = new ZipFile(commandLineOptions.inputZipFile);
    } catch (IOException e) {
      LOG.severe("Problem opening inout zip file: " + commandLineOptions.inputZipFile.getName());
      System.exit(1);
    }
    Result result = projectBuilder.build(commandLineOptions.userName,
                                         zip,
                                         commandLineOptions.outputDir,
                                         commandLineOptions.outputFileName,
                                         commandLineOptions.isForCompanion,
                                         commandLineOptions.isForEmulator,
                                         commandLineOptions.includeDangerousPermissions,
                                         commandLineOptions.extensions,
                                         commandLineOptions.childProcessRamMb,
                                         commandLineOptions.dexCacheDir,
                                         null,
                                         commandLineOptions.ext);
    System.exit(result.getResult());
  }
/**
   * Main entry point.
   *
   * @param args command line arguments
   */
Main entry point.
@param args command line arguments
Main entry point . @param args command line arguments
public static void main(String[] args) {
    CmdLineParser cmdLineParser = new CmdLineParser(commandLineOptions);
    try {
      cmdLineParser.parseArgument(args);
    } catch (CmdLineException e) {
      System.err.println(e.getMessage());
      cmdLineParser.printUsage(System.err);
      System.exit(1);
    }
    ProjectBuilder projectBuilder = new ProjectBuilder();
    ZipFile zip = null;
    try {
      zip = new ZipFile(commandLineOptions.inputZipFile);
    } catch (IOException e) {
      LOG.severe("Problem opening inout zip file: " + commandLineOptions.inputZipFile.getName());
      System.exit(1);
    }
    Result result = projectBuilder.build(commandLineOptions.userName,
                                         zip,
                                         commandLineOptions.outputDir,
                                         commandLineOptions.outputFileName,
                                         commandLineOptions.isForCompanion,
                                         commandLineOptions.isForEmulator,
                                         commandLineOptions.includeDangerousPermissions,
                                         commandLineOptions.extensions,
                                         commandLineOptions.childProcessRamMb,
                                         commandLineOptions.dexCacheDir,
                                         null,
                                         commandLineOptions.ext);
    System.exit(result.getResult());
  }
public static void main ( String [ ] args ) { CmdLineParser cmdLineParser = new CmdLineParser ( commandLineOptions ) ; try { cmdLineParser . parseArgument ( args ) ; } catch ( CmdLineException e ) { System . err . println ( e . getMessage ( ) ) ; cmdLineParser . printUsage ( System . err ) ; System . exit ( 1 ) ; } ProjectBuilder projectBuilder = new ProjectBuilder ( ) ; ZipFile zip = null ; try { zip = new ZipFile ( commandLineOptions . inputZipFile ) ; } catch ( IOException e ) { LOG . severe ( "Problem opening inout zip file: " + commandLineOptions . inputZipFile . getName ( ) ) ; System . exit ( 1 ) ; } Result result = projectBuilder . build ( commandLineOptions . userName , zip , commandLineOptions . outputDir , commandLineOptions . outputFileName , commandLineOptions . isForCompanion , commandLineOptions . isForEmulator , commandLineOptions . includeDangerousPermissions , commandLineOptions . extensions , commandLineOptions . childProcessRamMb , commandLineOptions . dexCacheDir , null , commandLineOptions . ext ) ; System . exit ( result . getResult ( ) ) ; }
Main entry point.
Main entry point .