public static void main(String[] args) {
    Standalone instance = new Standalone();
    List<String> projectPaths;
    try {
      projectPaths = Args.parse(instance, args);
    }
    catch (Exception e) {
      printUsageAndExit();
      return;
    }

    if (projectPaths.isEmpty()) {
      System.out.println("Path to project is not specified");
      printUsageAndExit();
    }
    if (projectPaths.size() > 1) {
      System.out.println("Only one project can be specified");
      printUsageAndExit();
    }

    final String projectPath = (new File(projectPaths.get(0))).getAbsolutePath();
    int exitCode = instance.loadAndRunBuild(FileUtil.toCanonicalPath(projectPath));
    System.exit(exitCode);
  }
public static void main(String[] args)