Package org.apache.maven.plugins.jmod
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 AbstractJModMojoThis goal is to support the usage ofjmod listto show the content of ajmodfile.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.FilejmodFileThe name of the jmod file which is examined viajmod list jmodFile.private java.io.FileoutputDirectory
-
Constructor Summary
Constructors Constructor Description JModListMojo(org.apache.maven.toolchain.ToolchainManager toolchainManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.apache.maven.shared.utils.cli.CommandlinecreateJModListCommandLine()voidexecute()-
Methods inherited from class org.apache.maven.plugins.jmod.AbstractJModMojo
executeCommand, getCommaSeparatedList, getJModExecutable, getProject, getSession, getToolchain, projectHasAlreadySetAnArtifact
-
-
-
-
Field Detail
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}", required=true, readonly=true) private java.io.File outputDirectory
-
jmodFile
@Parameter(defaultValue="${project.build.directory}/jmods/${project.artifactId}.jmod", property="jmodfile", required=true) private java.io.File jmodFileThe name of the jmod file which is examined viajmod list jmodFile.
-
-
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
-
createJModListCommandLine
private org.apache.maven.shared.utils.cli.Commandline createJModListCommandLine() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-
-