Example usage for com.google.gwt.dev DevMode main

List of usage examples for com.google.gwt.dev DevMode main

Introduction

In this page you can find the example usage for com.google.gwt.dev DevMode main.

Prototype

public static void main(String[] args) 

Source Link

Document

Startup development mode.

Usage

From source file:com.eclecticlogic.gwt.launcher.DevModeLauncher.java

License:Apache License

public void start() {
    List<String> params = new ArrayList<String>();
    // Internal//from  w  w w.  j  a  v a2  s .  c  o m
    params.add("-server");
    params.add(JettyServletContainerLauncher.class.getName());

    // Required
    params.add("-startupUrl");
    params.add(getStartupUrl());
    params.add("-war");
    params.add(getWarPath());

    // Optional but important
    params.add("-port");
    params.add(Integer.toString(getPort()));
    params.add("-codeServerPort");
    params.add(Integer.toString(getCodeServerPort()));

    // See comment in JettyServletContainerLauncher for this uglyness.
    JettyServletContainerLauncher.setContextPath(getContextPath());

    if (isNotBlank(getCompilerWorkingDir())) {
        params.add("-workDir");
        params.add(getCompilerWorkingDir());
    }
    if (isNotBlank(getGeneratedFilesDir())) {
        params.add("-gen");
        params.add(getGeneratedFilesDir());
    }
    if (isNotBlank(getBindAddress())) {
        params.add("-bindAddress");
        params.add(getBindAddress());
    }

    if (isNotBlank(getLogLevel())) {
        params.add("-logLevel");
        params.add(getLogLevel());
    }

    if (isNotBlank(getLogDir())) {
        params.add("-logdir");
        params.add(getLogDir());
    }

    // Modules are required but are added to the end.
    for (String module : getModules()) {
        params.add(module);
    }

    DevMode.main(params.toArray(new String[] {}));
}

From source file:org.cruxframework.crux.module.launch.ModulesLauncher.java

License:Apache License

/**
 * //from  w  ww. j a v  a  2 s.  c  o m
 * @param args
 * @throws MalformedURLException 
 */
public static void main(String[] args) throws MalformedURLException {
    log.warn("ModulesLauncher is deprecated. Use " + DevMode.class.getCanonicalName());
    DevMode.main(args);
}

From source file:stroom.Startup.java

License:Apache License

public static void main(final String[] args) {
    addSourcesToClasspath();/*from   w w  w . j ava 2 s .  co m*/
    FileUtil.useDevTempDir();
    fixArgs(args, "gwt-DevMode", true);
    System.out.println("Starting DevMode with arguments: ");
    for (String arg : args) {
        System.out.println("  " + arg);
    }
    DevMode.main(args);
}