Package net.ltgt.gwt.maven
Class AbstractDevModeMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- net.ltgt.gwt.maven.AbstractDevModeMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
CodeServerMojo,DevModeMojo
public abstract class AbstractDevModeMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringclasspathScopeThe dependency scope to use for the classpath.protected java.lang.BooleanfailOnErrorOnly succeed if no input files have errors.protected java.util.Map<java.lang.String,java.lang.String>jdkToolchainRequirements for this jdk toolchain, ifjvmis not set.protected java.lang.StringjvmPath to the Java executable to use.protected java.util.List<java.lang.String>jvmArgsArguments to be passed to the forked JVM (e.g.protected java.lang.StringlogLevelSets the level of logging detail.protected java.lang.StringmodulesComma-delimited list of the modules to run.protected org.apache.maven.project.MavenProjectprojectprotected java.lang.StringprojectsComma-delimited list of the reactor projects to run.protected java.util.List<org.apache.maven.project.MavenProject>reactorProjectsprotected org.apache.maven.execution.MavenSessionsessionprotected java.lang.StringsourceLevelSpecifies Java source level.protected java.lang.StringstyleScript output style: OBFUSCATED, PRETTY, or DETAILED.protected java.util.Map<java.lang.String,java.lang.String>systemPropertiesList of system properties to pass to the GWT compiler.protected org.apache.maven.toolchain.ToolchainManagertoolchainManager
-
Constructor Summary
Constructors Constructor Description AbstractDevModeMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexecute()protected abstract voidforceMkdirs()protected abstract java.lang.StringgetMainClass()protected abstract java.util.Collection<java.lang.String>getSpecificArguments(java.util.Set<java.lang.String> sources)protected abstract java.io.FilegetWorkDir()protected booleanprependSourcesToClasspath()
-
-
-
Field Detail
-
failOnError
@Parameter(property="gwt.failOnError") protected java.lang.Boolean failOnError
Only succeed if no input files have errors.
-
logLevel
@Parameter(property="gwt.logLevel") protected java.lang.String logLevel
Sets the level of logging detail.
-
modules
@Parameter(property="gwt.modules") protected java.lang.String modules
Comma-delimited list of the modules to run.Defaults to the discovered module names from
gwt-appprojects.
-
projects
@Parameter(property="gwt.projects") protected java.lang.String projects
Comma-delimited list of the reactor projects to run.Defaults to all the
gwt-appprojects in the reactor.
-
classpathScope
@Parameter(defaultValue="runtime", required=true) protected java.lang.String classpathScopeThe dependency scope to use for the classpath.The scope should be one of the scopes defined by org.apache.maven.artifact.Artifact. This includes the following:
- compile - system, provided, compile
- runtime - compile, runtime
- compile+runtime - system, provided, compile, runtime
- runtime+system - system, compile, runtime
- test - system, provided, compile, runtime, test
-
sourceLevel
@Parameter(property="maven.compiler.source") protected java.lang.String sourceLevel
Specifies Java source level.
-
style
@Parameter(property="gwt.style") protected java.lang.String style
Script output style: OBFUSCATED, PRETTY, or DETAILED.
-
jvmArgs
@Parameter protected java.util.List<java.lang.String> jvmArgs
Arguments to be passed to the forked JVM (e.g.-Xmx)
-
jvm
@Parameter protected java.lang.String jvm
Path to the Java executable to use. By default, will use the configured toolchain, or fallback to the same JVM as the one used to run Maven.
-
jdkToolchain
@Parameter protected java.util.Map<java.lang.String,java.lang.String> jdkToolchain
Requirements for this jdk toolchain, ifjvmis not set.This overrides the toolchain selected by the maven-toolchains-plugin.
-
systemProperties
@Parameter protected java.util.Map<java.lang.String,java.lang.String> systemProperties
List of system properties to pass to the GWT compiler.
-
reactorProjects
@Parameter(defaultValue="${reactorProjects}", required=true, readonly=true) protected java.util.List<org.apache.maven.project.MavenProject> reactorProjects
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) protected org.apache.maven.project.MavenProject project
-
session
@Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session
-
toolchainManager
@Component protected org.apache.maven.toolchain.ToolchainManager toolchainManager
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getMainClass
protected abstract java.lang.String getMainClass()
-
getWorkDir
protected abstract java.io.File getWorkDir()
-
getSpecificArguments
protected abstract java.util.Collection<java.lang.String> getSpecificArguments(java.util.Set<java.lang.String> sources)
-
prependSourcesToClasspath
protected boolean prependSourcesToClasspath()
-
forceMkdirs
protected abstract void forceMkdirs() throws java.io.IOException- Throws:
java.io.IOException
-
-