Example usage for com.google.gwt.eclipse.core.compile GWTCompileSettings getVmArgs

List of usage examples for com.google.gwt.eclipse.core.compile GWTCompileSettings getVmArgs

Introduction

In this page you can find the example usage for com.google.gwt.eclipse.core.compile GWTCompileSettings getVmArgs.

Prototype

public String getVmArgs() 

Source Link

Usage

From source file:org.jboss.tools.maven.gwt.GWTProjectConfigurator.java

License:Open Source License

private void setErraiVmParams(IProject project, String path) {
    GWTCompileSettings settings = GWTProjectProperties.getGwtCompileSettings(project);
    if (settings == null) {
        settings = new GWTCompileSettings(project);
    }// www  .j a  v a 2s .com
    String vmArgs = (settings.getVmArgs() == null) ? "" : settings.getVmArgs();
    if (!vmArgs.contains(ERRAI_MARSHALLING_SERVER_CLASS_OUTPUT)) {
        vmArgs += ERRAI_MARSHALLING_SERVER_CLASS_OUTPUT + path;
        settings.setVmArgs(vmArgs);

        try {
            GWTProjectProperties.setGwtCompileSettings(project, settings);
        } catch (BackingStoreException e) {
            logError("Exception in Maven GWT Configurator, cannot set VM Parameters for Errai", e);
        }
    }
}