Class ExecMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.glassfish.build.ExecMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="exec",
requiresProject=true,
requiresDependencyResolution=RUNTIME,
defaultPhase=PROCESS_RESOURCES)
public final class ExecMojo
extends org.apache.maven.plugin.AbstractMojo
Execute a command.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classBuilderListenerimplementation to log Ant events. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringCommand line argument.private StringExecutable to execute.private org.apache.maven.project.MavenProjectThe maven project.private FileWorking dir.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject projectThe maven project. -
executable
Executable to execute. -
workingDir
@Parameter(property="workingDir", defaultValue="${project.build.directory}") private File workingDirWorking dir. -
commandlineArgs
Command line argument.
-
-
Constructor Details
-
ExecMojo
public ExecMojo()
-
-
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
-