JavaScript is disabled on your browser.
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.micronaut.sourcegen.example.plugin.maven.AbstractGenerateSimpleResourceMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GenerateSimpleResourceMojo
public abstract class AbstractGenerateSimpleResourceMojo
extends org.apache.maven.plugin.AbstractMojo
This is a configuration for another plugin task run.
In this case it is a class instead of a record.
The properties are parameters and the single method defines the task execution.
The plugin generates a simple record.
Field Summary
Fields
protected boolean
Determines if this mojo must be executed.
protected org.apache.maven.project.MavenProject
Configure generating repeated file.
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods
void
Generate a simple record in the supplied package and with the specified version.
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Details
project
@Parameter(defaultValue="${project}",
required=true,
readonly=true)
protected org.apache.maven.project.MavenProject project
enabled
@Parameter(property="test.generate.simple.resource.enabled",
defaultValue="true")
protected boolean enabled
Determines if this mojo must be executed. The value is true if the mojo is enabled.
fileName
@Parameter(required=true,
property="test.generate.simple.resource.file.name")
protected String fileName
The generated file name.
content
@Parameter(required=true,
property="test.generate.simple.resource.content")
protected String content
The content of the file.
ending
@Parameter(defaultValue="NONE")
protected Ending ending
How the file ends.
repeat
@Parameter
protected Repeat repeat
Configure generating repeated file.
Constructor Details
AbstractGenerateSimpleResourceMojo
public AbstractGenerateSimpleResourceMojo ()
Method Details
getOutputFolder
protected abstract File getOutputFolder ()
The output folder.
execute
public void execute ()
Generate a simple record in the supplied package and with the specified version.
This javadoc will be copied to the respected plugin implementations.