Exemple #1
0
 protected void runGWTCodeServer(String[] args) throws Exception {
   Options options = new Options();
   if (!options.parseArgs(args)) {
     System.exit(1);
   }
   options.setJobChangeListener(recompileListener);
   //		options.addTags("-XnoenforceStrictResources");
   try {
     com.google.gwt.dev.codeserver.CodeServer.main(options);
   } catch (Throwable t) {
     logger.error("Error running code server", t);
   }
 }
Exemple #2
0
  @Override
  public void startup(String[] args) throws Exception {
    Options options = new Options();

    if (!options.parseArgs(args)) {
      throw new RuntimeException("Cannot parse gwt code server options");
    }
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    Thread.currentThread().setContextClassLoader(CodeServerWrapper.class.getClassLoader());
    try {
      server = CodeServer.start(options);
    } finally {
      Thread.currentThread().setContextClassLoader(cl);
    }
  }