@Mojo(name="generateApplicationConstants", defaultPhase=GENERATE_SOURCES, requiresDependencyResolution=COMPILE, requiresProject=true) public class GenerateApplicationConstantsMojo extends AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.sonatype.plexus.build.incremental.BuildContext |
buildContext |
protected File |
filePath
the path to the source file
|
protected File |
outfolder
the output-folder for the generated class
|
protected boolean |
skip
skips the execution
|
protected String |
targetClass
the fully qualified name of the target class to generate
|
| Constructor and Description |
|---|
GenerateApplicationConstantsMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createConstantClass() |
void |
execute() |
protected String[] |
getArgs() |
protected String |
getMessage() |
protected boolean |
needsToBeExecuted() |
getLog, getPluginContext, setLog, setPluginContext@Parameter(property="filePath", required=true) protected File filePath
@Parameter(property="targetClass", required=true) protected String targetClass
@Parameter(property="outFolder", defaultValue="target/generated-sources/constants", required=false) protected File outfolder
@Parameter(property="skip", defaultValue="false", required=false) protected boolean skip
@Component protected org.sonatype.plexus.build.incremental.BuildContext buildContext
protected void createConstantClass()
throws IOException,
JAXBException
IOExceptionJAXBExceptionprotected String getMessage()
protected String[] getArgs()
public void execute()
throws MojoExecutionException,
MojoFailureException
protected boolean needsToBeExecuted()
Copyright © 2011–2019 aiticon GmbH. All rights reserved.