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
FieldsModifier and TypeFieldDescriptionprotected StringThe dependency scope to use for the classpath.protected BooleanOnly succeed if no input files have errors.Requirements for this jdk toolchain, ifjvmis not set.protected StringPath to the Java executable to use.Arguments to be passed to the forked JVM (e.g.protected StringSets the level of logging detail.protected StringComma-delimited list of the modules to run.protected org.apache.maven.project.MavenProjectprotected StringComma-delimited list of the reactor projects to run.protected List<org.apache.maven.project.MavenProject> protected org.apache.maven.execution.MavenSessionprotected StringSpecifies Java source level.protected StringScript output style: OBFUSCATED, PRETTY, or DETAILED.List of system properties to pass to the GWT compiler.protected org.apache.maven.toolchain.ToolchainManagerFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected abstract voidprotected abstract Stringprotected abstract Collection<String> getSpecificArguments(Set<String> sources) protected abstract Fileprotected booleanMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
failOnError
Only succeed if no input files have errors. -
logLevel
Sets the level of logging detail. -
modules
Comma-delimited list of the modules to run.Defaults to the discovered module names from
gwt-appprojects. -
projects
Comma-delimited list of the reactor projects to run.Defaults to all the
gwt-appprojects in the reactor. -
classpathScope
The 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
Specifies Java source level. -
style
Script output style: OBFUSCATED, PRETTY, or DETAILED. -
jvmArgs
Arguments to be passed to the forked JVM (e.g.-Xmx) -
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
Requirements for this jdk toolchain, ifjvmis not set.This overrides the toolchain selected by the maven-toolchains-plugin.
-
systemProperties
List of system properties to pass to the GWT compiler. -
reactorProjects
@Parameter(defaultValue="${reactorProjects}", required=true, readonly=true) protected 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
@Inject protected org.apache.maven.toolchain.ToolchainManager toolchainManager
-
-
Constructor Details
-
AbstractDevModeMojo
public AbstractDevModeMojo()
-
-
Method Details
-
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
-
getWorkDir
-
getSpecificArguments
-
prependSourcesToClasspath
protected boolean prependSourcesToClasspath() -
forceMkdirs
- Throws:
IOException
-