[gwt-maven] r1028 committed - Added server field back

2 views
Skip to first unread message

codesite...@google.com

unread,
Nov 2, 2010, 10:42:30 PM11/2/10
to gwt-ma...@googlegroups.com
Revision: 1028
Author: kebernet
Date: Tue Nov 2 19:42:01 2010
Log: Added server field back
http://code.google.com/p/gwt-maven/source/detail?r=1028

Modified:

/trunk/maven-googlewebtoolkit2-plugin/src/main/java/com/totsp/mavenplugin/gwt/AbstractGWTMojo.java

/trunk/maven-googlewebtoolkit2-plugin/src/main/java/com/totsp/mavenplugin/gwt/scripting/ScriptWriterUnix20.java

/trunk/maven-googlewebtoolkit2-plugin/src/main/java/com/totsp/mavenplugin/gwt/scripting/ScriptWriterWindows20.java

=======================================
---
/trunk/maven-googlewebtoolkit2-plugin/src/main/java/com/totsp/mavenplugin/gwt/AbstractGWTMojo.java
Wed Dec 16 13:41:57 2009
+++
/trunk/maven-googlewebtoolkit2-plugin/src/main/java/com/totsp/mavenplugin/gwt/AbstractGWTMojo.java
Tue Nov 2 19:42:01 2010
@@ -17,818 +17,786 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
- *
+ *
*/
package com.totsp.mavenplugin.gwt;

-import java.io.File;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Locale;
+import com.totsp.mavenplugin.gwt.support.MakeCatalinaBase;
+import com.totsp.mavenplugin.gwt.util.BuildClasspathUtil;
+import com.totsp.mavenplugin.gwt.util.DependencyScope;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.project.MavenProject;
+
import org.codehaus.classworlds.ClassRealm;
import org.codehaus.classworlds.ClassWorld;
+
import org.codehaus.plexus.util.FileUtils;

-import com.totsp.mavenplugin.gwt.support.MakeCatalinaBase;
-import com.totsp.mavenplugin.gwt.util.BuildClasspathUtil;
-import com.totsp.mavenplugin.gwt.util.DependencyScope;
+import java.io.File;
+
+import java.util.Iterator;
+import java.util.List;
+import java.util.Locale;
+

/**
* Abstract Mojo for GWT-Maven.
- *
+ *
* @author ccollins
* @author cooper
* @author willpugh
*/
public abstract class AbstractGWTMojo extends AbstractMojo {
-
- public static final String OS_NAME =
System.getProperty("os.name").toLowerCase(Locale.US);
- public static final String GWT_GROUP_ID = "com.google.gwt";
- public static final String WINDOWS = "windows";
- public static final String LINUX = "linux";
- public static final String MAC = "mac";
- public static final String LEOPARD = "leopard";
- public static final String GOOGLE_WEBTOOLKIT_HOME
= "google.webtoolkit.home";
-
- private static final String JAVA_COMMAND =
(System.getProperty("java.home") != null) ? FileUtils.normalize(System
- .getProperty("java.home")
- + File.separator + "bin" + File.separator + "java") : "java";
-
- // Maven properties
-
- /**
- * Project instance, used to add new source directory to the build.
- *
- * @parameter default-value="${project}"
- * @required
- * @readonly
- */
- private MavenProject project;
-
- /**
- * Project instance, used to add new source directory to the build.
- *
- * @parameter default-value="false"
- */
- private boolean useOophm;
-
- /**
- * <i>Maven Internal</i>: List of artifacts for the plugin.
- *
- * @parameter expression="${plugin.artifacts}"
- * @required
- * @readonly
- */
- private List pluginClasspathList;
- /**
- * @component
- */
- private org.apache.maven.artifact.factory.ArtifactFactory
artifactFactory;
- /**
- * @component
- */
- private org.apache.maven.artifact.resolver.ArtifactResolver resolver;
- /**
- * @parameter expression="${localRepository}"
- */
- private org.apache.maven.artifact.repository.ArtifactRepository
localRepository;
- /**
- * @parameter expression="${project.remoteArtifactRepositories}"
- */
- private java.util.List remoteRepositories;
-
- // GWT-Maven properties
-
- /**
- * Location on filesystem where project should be built.
- *
- * @parameter expression="${project.build.directory}"
- */
- private File buildDir;
- /**
- * Set the GWT version number - used to build dependency paths, should
match
- * the "version" in the Maven repo.
- *
- * @parameter default-value="1.5.3"
- */
- private String gwtVersion;
- /**
- * Location on filesystem where GWT is installed - for manual mode
(existing
- * GWT on machine - not needed for automatic mode).
- *
- * @parameter expression="${google.webtoolkit.home}"
- */
- private File gwtHome;
- /**
- * Location on filesystem where GWT will write output files (-out
option to
- * GWTCompiler).
- *
- * @parameter
- *
expression="${project.build.directory}/${project.build.finalName}"
- */
- private File output;
- /**
- * Location on filesystem where GWT will write generated content for
review
- * (-gen option to GWTCompiler).
- *
- * @parameter expression="${project.build.directory}/.generated"
- */
- private File gen;
- /**
- * List of GWT module names that should be compiled with the GWT
compiler.
- *
- * @parameter property="compileTargets"
- * @required
- */
- private String[] compileTarget;
- /**
- * URL that should be automatically opened by default in the GWT shell.
- *
- * @parameter
- * @required
- */
- private String runTarget;
- /**
- * GWT logging level (-logLevel ERROR, WARN, INFO, TRACE, DEBUG, SPAM,
or
- * ALL).
- *
- * @parameter default-value="INFO"
- */
- private String logLevel;
- /**
- * GWT JavaScript compiler output style (-style OBF[USCATED], PRETTY, or
- * DETAILED).
- *
- * @parameter default-value="OBF"
- */
- private String style;
- /**
- * Prevents the embedded GWT Tomcat server from running (even if a port
is
- * specified).
- *
- * @parameter default-value="false"
- */
- private boolean noServer;
- /**
- * Runs the embedded GWT Tomcat server on the specified port.
- *
- * @parameter default-value="8888"
- */
- private int port;
- /**
- * Specify the location on the filesystem for the generated embedded
Tomcat
- * directory.
- *
- * @parameter expression="${project.build.directory}/tomcat"
- */
- private File tomcat;
- /**
- * Port to listen for debugger connection on.
- *
- * @parameter default-value="8000"
- */
- private int debugPort;
- /**
- * Source Tomcat context.xml for GWT shell - copied to
- * /gwt/localhost/ROOT.xml (used as the context.xml for the SHELL -
requires
- * Tomcat 5.0.x format - hence no default).
- *
- * @parameter
- */
- private File contextXml;
- /**
- * Source web.xml deployment descriptor that is used for GWT shell and
for
- * deployment WAR to "merge" servlet entries.
- *
- * @parameter expression="${basedir}/src/main/webapp/WEB-INF/web.xml"
- */
- private File webXml;
- /**
- * Specifies whether or not to add the module name as a prefix to the
- * servlet path when merging web.xml. If you set this to false the
exact
- * path from the GWT module will be used, nothing else will be
prepended.
- *
- * @parameter default-value="false"
- */
- private boolean webXmlServletPathAsIs;
- /**
- * Whether or not to suspend execution until a debugger connects.
- *
- * @parameter default-value="true"
- */
- private boolean debugSuspend;
- /**
- * Option to specify the jvm (or path to the java executable) to use
with the test cases.
- * For the default, the jvm will be the same as JAVA_HOME.
- *
- * @parameter expression="${google.webtoolkit.jvm}"
- */
- private String jvm;
- /**
- * Extra JVM arguments that are passed to the GWT-Maven generated
scripts
- * (for compiler, shell, etc - typically use -Xmx512m here, or
- * -XstartOnFirstThread, etc).
- *
- * @parameter expression="${google.webtoolkit.extrajvmargs}"
- */
- private String extraJvmArgs;
- /**
- * Simple string filter for classes that should be treated as
GWTTestCase
- * type (and therefore invoked during gwtTest goal).
- *
- * @parameter default-value="GwtTest*"
- */
- private String testFilter;
- /**
- * Extra JVM arguments that are passed only to the GWT-Maven generated
test
- * scripts (in addition to std extraJvmArgs).
- *
- * @parameter default-value=""
- */
- private String extraTestArgs;
- /**
- * Whether or not to skip GWT testing.
- *
- * @parameter expression="${google.webtoolkit.testSkip}"
default-value="false"
- */
- private boolean testSkip;
+ public static final String OS_NAME = System.getProperty("os.name")
+ .toLowerCase(Locale.US);
+ public static final String GWT_GROUP_ID = "com.google.gwt";
+ public static final String WINDOWS = "windows";
+ public static final String LINUX = "linux";
+ public static final String MAC = "mac";
+ public static final String LEOPARD = "leopard";
+ public static final String GOOGLE_WEBTOOLKIT_HOME
= "google.webtoolkit.home";
+ private static final String JAVA_COMMAND =
(System.getProperty("java.home") != null)
+ ? FileUtils.normalize(System.getProperty("java.home") +
File.separator + "bin" + File.separator + "java") : "java";
+
+ /**
+ * @component
+ */
+ private org.apache.maven.artifact.factory.ArtifactFactory
artifactFactory;
+
+ /**
+ * @parameter expression="${localRepository}"
+ */
+ private org.apache.maven.artifact.repository.ArtifactRepository
localRepository;
+
+ /**
+ * @parameter expression="${project.remoteArtifactRepositories}"
+ */
+ private java.util.List remoteRepositories;
+
+ /**
+ * @component
+ */
+ private org.apache.maven.artifact.resolver.ArtifactResolver resolver;
+
+ // GWT-Maven properties
+
+ /**
+ * Location on filesystem where project should be built.
+ *
+ * @parameter expression="${project.build.directory}"
+ */
+ private File buildDir;
+
+ /**
+ * Source Tomcat context.xml for GWT shell - copied to
+ * /gwt/localhost/ROOT.xml (used as the context.xml for the SHELL -
requires
+ * Tomcat 5.0.x format - hence no default).
+ *
+ * @parameter
+ */
+ private File contextXml;
+
+ /**
+ * Non-deployable files directory (1.6+)
+ * @parameter default-value="${project.build.directory}/gwtExtra"
+ */
+ private File extraDir;

/**
- * Whether or not to skip GWT compilation.
- *
- * @parameter expression="${google.webtoolkit.compileSkip}"
default-value="false"
+ * Location on filesystem where GWT will write generated content for
review
+ * (-gen option to GWTCompiler).
+ *
+ * @parameter expression="${project.build.directory}/.generated"
*/
- private boolean compileSkip;
-
- /**
- * Whether or not to add compile source root to classpath.
- *
- * @parameter default-value="true"
- */
- private boolean sourcesOnPath;
- /**
- * Whether or not to add resources root to classpath.
- *
- * @parameter default-value="true"
- */
- private boolean resourcesOnPath;
- /**
- * Whether or not to enable assertions in generated scripts (-ea).
- *
- * @parameter default-value="false"
- */
- private boolean enableAssertions;
- /**
- * Specifies the mapping URL to be used with the shell servlet.
- *
- * @parameter default-value="/*"
- */
- private String shellServletMappingURL;
- /**
- * Location on filesystem to output generated i18n Constants and
Messages
- * interfaces.
- *
- * @parameter expression="${basedir}/src/main/java/"
- */
- private File i18nOutputDir;
- /**
- * Whether or not to generate i18n Constants interfaces with the added
- * ability to look up values at runtime with a string key.
- *
- * @parameter default-value="false"
- */
- private boolean i18nConstantsWithLookup;
- /**
- * List of names of properties files that should be used to generate
i18n
- * Messages interfaces.
- *
- * @parameter
- */
- private String[] i18nMessagesNames;
- /**
- * List of names of properties files that should be used to generate
i18n
- * Constants interfaces.
- *
- * @parameter
- */
- private String[] i18nConstantsNames;
- /**
- * Top level (root) of classes to begin generation from.
- *
- * @parameter property="generatorRootClasses"
- */
- private String[] generatorRootClasses;
- /**
- * Destination package for generated classes.
- *
- * @parameter
- */
- private String generatorDestinationPackage;
- /**
- * Whether or not to generate getter/setter methods for generated
classes.
- *
- * @parameter
- */
- private boolean generateGettersAndSetters;
- /**
- * Whether or not to generate PropertyChangeSupport handling for
generated
- * classes.
- *
- * @parameter
- */
- private boolean generatePropertyChangeSupport;
- /**
- * Whether or not to overwrite generated classes if they exist.
- *
- * @parameter
- */
- private boolean overwriteGeneratedClasses;
-
- /**
- * Whitelist URL pattern for GWTShell and JUnitShell
- *
- * @parameter
- */
- private String whitelist;
-
- /**
- * Whitelist URL pattern for GWTShell and JUnitShell
- *
- * @parameter
- */
- private String blacklist;
-
-
- /**
- * Toggles the graphical logger (1.6+)
- *
- * @parameter default-value="false"
- *
- */
- private boolean showTreeLogger;
-
- /**
- * Specifies the number of worker threads to use to compile (1.6+)
- * @parameter default-value="2"
- */
- private int localWorkers;
-
- /**
- * Compiler work directory (1.6+)
- * @parameter default-value="${project.build.directory}/gwtWork"
- */
- private File workDir;
-
- /**
- * Non-deployable files directory (1.6+)
- * @parameter default-value="${project.build.directory}/gwtExtra"
- */
- private File extraDir;
-
-
- /**
- * Toggles HTMLUnit testing (GWT 2.0+)
- * @parameter
- */
- private boolean useHtmlUnit;
-
- /**
- * Browser configs to use in HTML unit
- * @parameter
- */
- private String[] htmlUnitBrowsers;
-
-
- // ctor
-
-
-
- /** Creates a new instance of AbstractGWTMojo */
- public AbstractGWTMojo() {
- }
-
- // methods
-
- /**
- * Helper hack for classpath problems, used as a fallback.
- *
- * @return
- */
- protected ClassLoader fixThreadClasspath() {
-
- try {
- ClassWorld world = new ClassWorld();
-
- //use the existing ContextClassLoader in a realm of the
classloading space
- ClassRealm root = world.newRealm("gwt-plugin",
Thread.currentThread().getContextClassLoader());
- ClassRealm realm = root.createChildRealm("gwt-project");
-
- for (Iterator it = BuildClasspathUtil.buildClasspathList(this,
DependencyScope.COMPILE).iterator(); it
- .hasNext();) {
- realm.addConstituent(((File) it.next()).toURI().toURL());
- }
-
-
Thread.currentThread().setContextClassLoader(realm.getClassLoader());
- ///System.out.println("AbstractGwtMojo realm classloader = " +
realm.getClassLoader().toString());
-
- return realm.getClassLoader();
- }
- catch (Exception e) {
- e.printStackTrace();
- throw new RuntimeException(e);
- }
- }
-
- /**
- * Create embedded GWT tomcat base dir based on properties.
- *
- * @throws Exception
- */
- public void makeCatalinaBase() throws Exception {
- getLog().debug("make catalina base for embedded Tomcat");
-
- if (this.getWebXml() != null && this.getWebXml().exists()) {
- this.getLog().info("source web.xml present - " +
this.getWebXml() + " - using it with embedded Tomcat");
- } else {
- this.getLog().info("source web.xml NOT present, using default
empty web.xml for shell");
- }
-
- // note that MakeCatalinaBase (support jar) will use emptyWeb.xml
if webXml does not exist
- String[] args = { this.getTomcat().getAbsolutePath(),
this.getWebXml().getAbsolutePath(), this.getShellServletMappingURL() };
- MakeCatalinaBase.main(args);
-
- if ((this.getContextXml() != null) &&
this.getContextXml().exists()) {
- this.getLog().info("contextXml parameter present - " +
this.getContextXml() + " - using it for embedded Tomcat ROOT.xml");
- FileUtils.copyFile(this.getContextXml(), new
File(this.getTomcat(), "conf/gwt/localhost/ROOT.xml"));
- }
- }
-
- //
- // accessors/mutators
- //
-
- public void setBuildDir(File buildDir) {
- this.buildDir = buildDir;
- }
-
- public File getBuildDir() {
- return this.buildDir;
- }
-
- public void setCompileTarget(String[] compileTarget) {
- this.compileTarget = compileTarget;
- }
-
- public String[] getCompileTarget() {
- return this.compileTarget;
- }
-
- public void setContextXml(File contextXml) {
- this.contextXml = contextXml;
- }
-
- public File getContextXml() {
- return this.contextXml;
- }
-
- public void setJvm(String jvm) {
- this.jvm = jvm;
- }
-
- public String getJvm() {
- return this.jvm;
- }
-
- public void setExtraJvmArgs(String extraJvmArgs) {
- this.extraJvmArgs = extraJvmArgs;
- }
-
- public String getExtraJvmArgs() {
- return this.extraJvmArgs;
- }
-
- public void setGen(File gen) {
- this.gen = gen;
- }
-
- public File getGen() {
- return this.gen;
- }
-
- public void setGwtHome(File gwtHome) {
- this.gwtHome = gwtHome;
- }
-
- public File getGwtHome() {
- return this.gwtHome;
- }
-
- public void setLogLevel(String logLevel) {
- this.logLevel = logLevel;
- }
-
- public String getLogLevel() {
- return this.logLevel;
- }
-
- public void setNoServer(boolean noServer) {
- this.noServer = noServer;
- }
-
- public boolean isNoServer() {
- return this.noServer;
- }
-
- public void setOutput(File output) {
- this.output = output;
- }
-
- public File getOutput() {
- return this.output;
- }
-
- public void setPort(int port) {
- this.port = port;
- }
-
- public int getPort() {
- return this.port;
- }
-
- public void setProject(MavenProject project) {
- this.project = project;
- }
-
- public MavenProject getProject() {
- return this.project;
- }
-
- public void setRunTarget(String runTarget) {
- this.runTarget = runTarget;
- }
-
- public String getRunTarget() {
- return this.runTarget;
- }
-
- public void setStyle(String style) {
- this.style = style;
- }
-
- public String getStyle() {
- return this.style;
- }
-
- public void setTomcat(File tomcat) {
- this.tomcat = tomcat;
- }
-
- public File getTomcat() {
- return this.tomcat;
- }
-
- public void setWebXml(File webXml) {
- this.webXml = webXml;
- }
-
- public File getWebXml() {
- return this.webXml;
- }
-
- public boolean isWebXmlServletPathAsIs() {
- return this.webXmlServletPathAsIs;
- }
-
- public void setWebXmlServletPathAsIs(boolean webXmlServletPathAsIs) {
- this.webXmlServletPathAsIs = webXmlServletPathAsIs;
- }
-
- public String getShellServletMappingURL() {
- return this.shellServletMappingURL;
- }
-
- public void setShellServletMappingURL(String shellServletMappingURL) {
- this.shellServletMappingURL = shellServletMappingURL;
- }
-
- public String[] getGeneratorRootClasses() {
- return this.generatorRootClasses;
- }
-
- public void setGeneratorRootClasses(String[] generatorRootClasses) {
- this.generatorRootClasses = generatorRootClasses;
- }
-
- public String getGeneratorDestinationPackage() {
- return this.generatorDestinationPackage;
- }
-
- public void setGeneratorDestinationPackage(String
generatorDestinationPackage) {
- this.generatorDestinationPackage = generatorDestinationPackage;
- }
-
- public boolean isGenerateGettersAndSetters() {
- return this.generateGettersAndSetters;
- }
-
- public void setGenerateGettersAndSetters(boolean
generateGettersAndSetters) {
- this.generateGettersAndSetters = generateGettersAndSetters;
- }
-
- public boolean isGeneratePropertyChangeSupport() {
- return this.generatePropertyChangeSupport;
- }
-
- public void setGeneratePropertyChangeSupport(boolean
generatePropertyChangeSupport) {
- this.generatePropertyChangeSupport = generatePropertyChangeSupport;
- }
-
- public boolean isOverwriteGeneratedClasses() {
- return this.overwriteGeneratedClasses;
- }
-
- public void setOverwriteGeneratedClasses(boolean
overwriteGeneratedClasses) {
- this.overwriteGeneratedClasses = overwriteGeneratedClasses;
- }
-
- public int getDebugPort() {
- return this.debugPort;
- }
-
- public void setDebugPort(int debugPort) {
- this.debugPort = debugPort;
- }
-
- public boolean isDebugSuspend() {
- return this.debugSuspend;
- }
-
- public void setDebugSuspend(boolean debugSuspend) {
- this.debugSuspend = debugSuspend;
- }
-
- public String getGwtVersion() {
- return this.gwtVersion;
- }
-
- public void setGwtVersion(String gwtVersion) {
- this.gwtVersion = gwtVersion;
- }
-
- public void setCompileTargets(String[] targets) {
- this.compileTarget = targets;
- }
-
- public String getTestFilter() {
- return this.testFilter;
- }
-
- public void setTestFilter(String testFilter) {
- this.testFilter = testFilter;
- }
-
- public boolean getSourcesOnPath() {
- return this.sourcesOnPath;
- }
-
- public void setSourcesOnPath(boolean value) {
- this.sourcesOnPath = value;
- }
-
- public boolean getResourcesOnPath() {
- return this.resourcesOnPath;
+ private File gen;
+
+ /**
+ * Location on filesystem where GWT is installed - for manual mode
(existing
+ * GWT on machine - not needed for automatic mode).
+ *
+ * @parameter expression="${google.webtoolkit.home}"
+ */
+ private File gwtHome;
+
+ /**
+ * Location on filesystem to output generated i18n Constants and
Messages
+ * interfaces.
+ *
+ * @parameter expression="${basedir}/src/main/java/"
+ */
+ private File i18nOutputDir;
+
+ /**
+ * Location on filesystem where GWT will write output files (-out
option to
+ * GWTCompiler).
+ *
+ * @parameter
+ *
expression="${project.build.directory}/${project.build.finalName}"
+ */
+ private File output;
+
+ /**
+ * Specify the location on the filesystem for the generated embedded
Tomcat
+ * directory.
+ *
+ * @parameter expression="${project.build.directory}/tomcat"
+ */
+ private File tomcat;
+
+ /**
+ * Source web.xml deployment descriptor that is used for GWT shell and
for
+ * deployment WAR to "merge" servlet entries.
+ *
+ * @parameter expression="${basedir}/src/main/webapp/WEB-INF/web.xml"
+ */
+ private File webXml;
+
+ /**
+ * Compiler work directory (1.6+)
+ * @parameter default-value="${project.build.directory}/gwtWork"
+ */
+ private File workDir;
+
+ /**
+ * <i>Maven Internal</i>: List of artifacts for the plugin.
+ *
+ * @parameter expression="${plugin.artifacts}"
+ * @required
+ * @readonly
+ */
+ private List pluginClasspathList;
+
+ // Maven properties
+
+ /**
+ * Project instance, used to add new source directory to the build.
+ *
+ * @parameter default-value="${project}"
+ * @required
+ * @readonly
+ */
+ private MavenProject project;
+
+ /**
+ * Whitelist URL pattern for GWTShell and JUnitShell
+ *
+ * @parameter
+ */
+ private String blacklist;
+
+ /**
+ * Extra JVM arguments that are passed to the GWT-Maven generated
scripts
+ * (for compiler, shell, etc - typically use -Xmx512m here, or
+ * -XstartOnFirstThread, etc).
+ *
+ * @parameter expression="${google.webtoolkit.extrajvmargs}"
+ */
+ private String extraJvmArgs;
+
+ /**
+ * Extra JVM arguments that are passed only to the GWT-Maven generated
test
+ * scripts (in addition to std extraJvmArgs).
+ *
+ * @parameter default-value=""
+ */
+ private String extraTestArgs;
+
+ /**
+ * Destination package for generated classes.
+ *
+ * @parameter
+ */
+ private String generatorDestinationPackage;
+
+ /**
+ * Set the GWT version number - used to build dependency paths, should
match
+ * the "version" in the Maven repo.
+ *
+ * @parameter default-value="1.5.3"
+ */
+ private String gwtVersion;
+
+ /**
+ * Option to specify the jvm (or path to the java executable) to use
with the test cases.
+ * For the default, the jvm will be the same as JAVA_HOME.
+ *
+ * @parameter expression="${google.webtoolkit.jvm}"
+ */
+ private String jvm;
+
+ /**
+ * GWT logging level (-logLevel ERROR, WARN, INFO, TRACE, DEBUG, SPAM,
or
+ * ALL).
+ *
+ * @parameter default-value="INFO"
+ */
+ private String logLevel;
+
+ /**
+ * URL that should be automatically opened by default in the GWT shell.
+ *
+ * @parameter
+ * @required
+ */
+ private String runTarget;
+
+ /**
+ * @parameter
+ */
+ private String server;
+
+ /**
+ * Specifies the mapping URL to be used with the shell servlet.
+ *
+ * @parameter default-value="/*"
+ */
+ private String shellServletMappingURL;
+
+ /**
+ * GWT JavaScript compiler output style (-style OBF[USCATED], PRETTY,
or
+ * DETAILED).
+ *
+ * @parameter default-value="OBF"
+ */
+ private String style;
+
+ /**
+ * Simple string filter for classes that should be treated as
GWTTestCase
+ * type (and therefore invoked during gwtTest goal).
+ *
+ * @parameter default-value="GwtTest*"
+ */
+ private String testFilter;
+
+ /**
+ * Whitelist URL pattern for GWTShell and JUnitShell
+ *
+ * @parameter
+ */
+ private String whitelist;
+
+ /**
+ * List of GWT module names that should be compiled with the GWT
compiler.
+ *
+ * @parameter property="compileTargets"
+ * @required
+ */
+ private String[] compileTarget;
+
+ /**
+ * Top level (root) of classes to begin generation from.
+ *
+ * @parameter property="generatorRootClasses"
+ */
+ private String[] generatorRootClasses;
+
+ /**
+ * Browser configs to use in HTML unit
+ * @parameter
+ */
+ private String[] htmlUnitBrowsers;
+
+ /**
+ * List of names of properties files that should be used to generate
i18n
+ * Constants interfaces.
+ *
+ * @parameter
+ */
+ private String[] i18nConstantsNames;
+
+ /**
+ * List of names of properties files that should be used to generate
i18n
+ * Messages interfaces.
+ *
+ * @parameter
+ */
+ private String[] i18nMessagesNames;
+
+ /**
+ * Whether or not to skip GWT compilation.
+ *
+ * @parameter expression="${google.webtoolkit.compileSkip}"
default-value="false"
+ */
+ private boolean compileSkip;
+
+ /**
+ * Whether or not to suspend execution until a debugger connects.
+ *
+ * @parameter default-value="true"
+ */
+ private boolean debugSuspend;
+
+ /**
+ * Whether or not to enable assertions in generated scripts (-ea).
+ *
+ * @parameter default-value="false"
+ */
+ private boolean enableAssertions;
+
+ /**
+ * Whether or not to generate getter/setter methods for generated
classes.
+ *
+ * @parameter
+ */
+ private boolean generateGettersAndSetters;
+
+ /**
+ * Whether or not to generate PropertyChangeSupport handling for
generated
+ * classes.
+ *
+ * @parameter
+ */
+ private boolean generatePropertyChangeSupport;
+
+ /**
***The diff for this file has been truncated for email.***
=======================================
---
/trunk/maven-googlewebtoolkit2-plugin/src/main/java/com/totsp/mavenplugin/gwt/scripting/ScriptWriterUnix20.java
Wed Dec 16 13:41:57 2009
+++
/trunk/maven-googlewebtoolkit2-plugin/src/main/java/com/totsp/mavenplugin/gwt/scripting/ScriptWriterUnix20.java
Tue Nov 2 19:42:01 2010
@@ -57,6 +57,11 @@
}

writer.print(" com.google.gwt.dev.DevMode");
+ if(mojo.getServer() != null){
+ writer.print( " -server ");
+ writer.print(mojo.getServer());
+ writer.print(" ");
+ }
writer.print(" -logLevel ");
writer.print(mojo.getLogLevel());
if (mojo.isEnableAssertions()) {
=======================================
---
/trunk/maven-googlewebtoolkit2-plugin/src/main/java/com/totsp/mavenplugin/gwt/scripting/ScriptWriterWindows20.java
Mon Aug 23 11:20:33 2010
+++
/trunk/maven-googlewebtoolkit2-plugin/src/main/java/com/totsp/mavenplugin/gwt/scripting/ScriptWriterWindows20.java
Tue Nov 2 19:42:01 2010
@@ -56,6 +56,11 @@
}

writer.print(" com.google.gwt.dev.DevMode");
+ if(mojo.getServer() != null){
+ writer.print( " -server ");
+ writer.print(mojo.getServer());
+ writer.print(" ");
+ }
writer.print(" -logLevel ");
writer.print(mojo.getLogLevel());
if (mojo.isEnableAssertions()) {

Reply all
Reply to author
Forward
0 new messages