Class JModListMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.jmod.AbstractJModMojo
org.apache.maven.plugins.jmod.JModListMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="list",
requiresDependencyResolution=NONE,
defaultPhase=NONE)
public class JModListMojo
extends AbstractJModMojo
This goal is to support the usage of
jmod list to show the content of a jmod file.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileThe name of the jmod file which is used to be examined viajmod list jmodFileprivate FileFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.codehaus.plexus.util.cli.CommandlinecreateJModListCommandLine(File resultingJModFile) voidexecute()Methods inherited from class AbstractJModMojo
executeCommand, getCommaSeparatedList, getJModExecutable, getProject, getSession, getToolchain, projectHasAlreadySetAnArtifactMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}", required=true, readonly=true) private File outputDirectory -
jmodFile
@Parameter(defaultValue="${project.build.directory}/jmods/${project.artifactId}.jmod", property="jmodfile", required=true) private File jmodFileThe name of the jmod file which is used to be examined viajmod list jmodFile
-
-
Constructor Details
-
JModListMojo
public JModListMojo()
-
-
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
-
createJModListCommandLine
private org.codehaus.plexus.util.cli.Commandline createJModListCommandLine(File resultingJModFile) throws IOException - Throws:
IOException
-