Class ListResourcesMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.github.robtimus.maven.plugins.resourcelist.ListResourcesMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="list-resources", defaultPhase=PROCESS_RESOURCES, requiresProject=true, threadSafe=true) public class ListResourcesMojo extends org.apache.maven.plugin.AbstractMojoCreates a list of resources in the current project.- Author:
- Rob Spoor
-
-
Constructor Summary
Constructors Constructor Description ListResourcesMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()voidsetResourceBaseDir(File resourceBaseDir)The resource base directory.voidsetResourceListFile(File resourceListFile)The file to store the resource list in.
-
-
-
Method Detail
-
setResourceListFile
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/${project.artifactId}.resources", required=true) public void setResourceListFile(File resourceListFile)The file to store the resource list in.- Parameters:
resourceListFile- The file to store the resource list in.- Since:
- 1.0
-
setResourceBaseDir
@Parameter(defaultValue="${project.build.outputDirectory}", required=true) public void setResourceBaseDir(File resourceBaseDir)The resource base directory.- Parameters:
resourceBaseDir- The resource base directory.- Since:
- 1.0
-
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
-
-