Package com.thoughtworks.paranamer.mojo
Class ParanamerGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.thoughtworks.paranamer.mojo.ParanamerGeneratorMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generate",
defaultPhase=COMPILE,
requiresDependencyResolution=COMPILE)
public class ParanamerGeneratorMojo
extends org.apache.maven.plugin.AbstractMojo
Mojo to generate parameter names via ParanamerGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ParanamerGenerator
The Paranamer generatorprotected String
The directory where the Paranamer generator will write the outputstatic final String
THe system property name, which if set, will skip execution of this mojoprotected String
The directory containing the Java source filesFields 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
-
skipProp
THe system property name, which if set, will skip execution of this mojo- See Also:
-
sourceDirectory
@Parameter(defaultValue="${project.build.sourceDirectory}", required=true) protected String sourceDirectoryThe directory containing the Java source files -
outputDirectory
@Parameter(defaultValue="${project.build.outputDirectory}", required=true) protected String outputDirectoryThe directory where the Paranamer generator will write the output -
generator
The Paranamer generator
-
-
Constructor Details
-
ParanamerGeneratorMojo
public ParanamerGeneratorMojo()
-
-
Method Details
-
skip
public boolean skip()Determines if the skip property is set- Returns:
- true if the skip property is set, false otherwise
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-