Runs special (non surefire) test phase for GWTTestCase derived tests. This is necessary because of several complications with regard to surefire and the classpath for GWTTestCase/JUnitShell. See further notes in source.
Mojo Attributes:
testtest| Name | Type | Description |
|---|---|---|
| compileTargets | String[] |
List of GWT module names that should be compiled with the GWT compiler. |
| runTarget | String |
URL that should be automatically opened by default in the GWT shell. |
| Name | Type | Description |
|---|---|---|
| artifactFactory | ArtifactFactory |
No description. |
| blacklist | String |
Whitelist URL pattern for GWTShell and JUnitShell |
| buildDir | File |
Location on filesystem where project should be built. |
| compileSkip | boolean |
Whether or not to skip GWT compilation. Default value is false. |
| contextXml | File |
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). |
| debugPort | int |
Port to listen for debugger connection on. Default value is 8000. |
| debugSuspend | boolean |
Whether or not to suspend execution until a debugger connects. Default value is true. |
| enableAssertions | boolean |
Whether or not to enable assertions in generated scripts (-ea). Default value is false. |
| extraDir | File |
Non-deployable files directory (1.6+) Default value is ${project.build.directory}/gwtExtra. |
| extraJvmArgs | String |
Extra JVM arguments that are passed to the GWT-Maven generated scripts (for compiler, shell, etc - typically use -Xmx512m here, or -XstartOnFirstThread, etc). |
| extraTestArgs | String |
Extra JVM arguments that are passed only to the GWT-Maven generated test scripts (in addition to std extraJvmArgs). |
| gen | File |
Location on filesystem where GWT will write generated content for review (-gen option to GWTCompiler). |
| generateGettersAndSetters | boolean |
Whether or not to generate getter/setter methods for generated classes. |
| generatePropertyChangeSupport | boolean |
Whether or not to generate PropertyChangeSupport handling for generated classes. |
| generatorDestinationPackage | String |
Destination package for generated classes. |
| generatorRootClasses | String[] |
Top level (root) of classes to begin generation from. |
| gwtHome | File |
Location on filesystem where GWT is installed - for manual mode (existing GWT on machine - not needed for automatic mode). |
| gwtVersion | String |
Set the GWT version number - used to build dependency paths, should match
the "version" in the Maven repo. Default value is 1.5.3. |
| i18nConstantsNames | String[] |
List of names of properties files that should be used to generate i18n Constants interfaces. |
| i18nConstantsWithLookup | boolean |
Whether or not to generate i18n Constants interfaces with the added
ability to look up values at runtime with a string key. Default value is false. |
| i18nMessagesNames | String[] |
List of names of properties files that should be used to generate i18n Messages interfaces. |
| i18nOutputDir | File |
Location on filesystem to output generated i18n Constants and Messages interfaces. |
| jvm | String |
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. |
| localRepository | ArtifactRepository |
No description. |
| localWorkers | int |
Specifies the number of worker threads to use to compile (1.6+) Default value is 2. |
| logLevel | String |
GWT logging level (-logLevel ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or
ALL). Default value is INFO. |
| noServer | boolean |
Prevents the embedded GWT Tomcat server from running (even if a port is
specified). Default value is false. |
| output | File |
Location on filesystem where GWT will write output files (-out option to GWTCompiler). |
| overwriteGeneratedClasses | boolean |
Whether or not to overwrite generated classes if they exist. |
| port | int |
Runs the embedded GWT Tomcat server on the specified port. Default value is 8888. |
| remoteRepositories | List |
No description. |
| resolver | ArtifactResolver |
No description. |
| resourcesOnPath | boolean |
Whether or not to add resources root to classpath. Default value is true. |
| shellServletMappingURL | String |
Specifies the mapping URL to be used with the shell servlet. Default value is /*. |
| showTreeLogger | boolean |
Toggles the graphical logger (1.6+) Default value is false. |
| sourcesOnPath | boolean |
Whether or not to add compile source root to classpath. Default value is true. |
| style | String |
GWT JavaScript compiler output style (-style OBF[USCATED], PRETTY, or
DETAILED). Default value is OBF. |
| testFilter | String |
Simple string filter for classes that should be treated as GWTTestCase
type (and therefore invoked during gwtTest goal). Default value is GwtTest*. |
| testSkip | boolean |
Whether or not to skip GWT testing. Default value is false. |
| tomcat | File |
Specify the location on the filesystem for the generated embedded Tomcat directory. |
| webXml | File |
Source web.xml deployment descriptor that is used for GWT shell and for deployment WAR to "merge" servlet entries. |
| webXmlServletPathAsIs | boolean |
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. Default value is false. |
| whitelist | String |
Whitelist URL pattern for GWTShell and JUnitShell |
| workDir | File |
Compiler work directory (1.6+) Default value is ${project.build.directory}/gwtWork. |
No Description.
org.apache.maven.artifact.factory.ArtifactFactoryNoWhitelist URL pattern for GWTShell and JUnitShell
java.lang.StringNoLocation on filesystem where project should be built.
java.io.FileNo${project.build.directory}Whether or not to skip GWT compilation.
booleanNo${google.webtoolkit.compileSkip}falseList of GWT module names that should be compiled with the GWT compiler.
java.lang.String[]YesSource 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).
java.io.FileNoPort to listen for debugger connection on.
intNo8000Whether or not to suspend execution until a debugger connects.
booleanNotrueWhether or not to enable assertions in generated scripts (-ea).
booleanNofalseNon-deployable files directory (1.6+)
java.io.FileNo${project.build.directory}/gwtExtraExtra JVM arguments that are passed to the GWT-Maven generated scripts (for compiler, shell, etc - typically use -Xmx512m here, or -XstartOnFirstThread, etc).
java.lang.StringNo${google.webtoolkit.extrajvmargs}Extra JVM arguments that are passed only to the GWT-Maven generated test scripts (in addition to std extraJvmArgs).
java.lang.StringNoLocation on filesystem where GWT will write generated content for review (-gen option to GWTCompiler).
java.io.FileNo${project.build.directory}/.generatedWhether or not to generate getter/setter methods for generated classes.
booleanNoWhether or not to generate PropertyChangeSupport handling for generated classes.
booleanNoDestination package for generated classes.
java.lang.StringNoTop level (root) of classes to begin generation from.
java.lang.String[]NoLocation on filesystem where GWT is installed - for manual mode (existing GWT on machine - not needed for automatic mode).
java.io.FileNo${google.webtoolkit.home}Set the GWT version number - used to build dependency paths, should match the "version" in the Maven repo.
java.lang.StringNo1.5.3List of names of properties files that should be used to generate i18n Constants interfaces.
java.lang.String[]NoWhether or not to generate i18n Constants interfaces with the added ability to look up values at runtime with a string key.
booleanNofalseList of names of properties files that should be used to generate i18n Messages interfaces.
java.lang.String[]NoLocation on filesystem to output generated i18n Constants and Messages interfaces.
java.io.FileNo${basedir}/src/main/java/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.
java.lang.StringNo${google.webtoolkit.jvm}No Description.
org.apache.maven.artifact.repository.ArtifactRepositoryNo${localRepository}Specifies the number of worker threads to use to compile (1.6+)
intNo2GWT logging level (-logLevel ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL).
java.lang.StringNoINFOPrevents the embedded GWT Tomcat server from running (even if a port is specified).
booleanNofalseLocation on filesystem where GWT will write output files (-out option to GWTCompiler).
java.io.FileNo${project.build.directory}/${project.build.finalName}Whether or not to overwrite generated classes if they exist.
booleanNoRuns the embedded GWT Tomcat server on the specified port.
intNo8888No Description.
java.util.ListNo${project.remoteArtifactRepositories}No Description.
org.apache.maven.artifact.resolver.ArtifactResolverNoWhether or not to add resources root to classpath.
booleanNotrueURL that should be automatically opened by default in the GWT shell.
java.lang.StringYesSpecifies the mapping URL to be used with the shell servlet.
java.lang.StringNo/*Toggles the graphical logger (1.6+)
booleanNofalseWhether or not to add compile source root to classpath.
booleanNotrueGWT JavaScript compiler output style (-style OBF[USCATED], PRETTY, or DETAILED).
java.lang.StringNoOBFSimple string filter for classes that should be treated as GWTTestCase type (and therefore invoked during gwtTest goal).
java.lang.StringNoGwtTest*Whether or not to skip GWT testing.
booleanNo${google.webtoolkit.testSkip}falseSpecify the location on the filesystem for the generated embedded Tomcat directory.
java.io.FileNo${project.build.directory}/tomcatSource web.xml deployment descriptor that is used for GWT shell and for deployment WAR to "merge" servlet entries.
java.io.FileNo${basedir}/src/main/webapp/WEB-INF/web.xmlSpecifies 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.
booleanNofalseWhitelist URL pattern for GWTShell and JUnitShell
java.lang.StringNoCompiler work directory (1.6+)
java.io.FileNo${project.build.directory}/gwtWork