Package org.apache.camel.maven
Class GenerateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.exec.AbstractExecMojo
org.apache.camel.maven.GenerateMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate",
threadSafe=true,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=GENERATE_SOURCES)
public class GenerateMojo
extends org.codehaus.mojo.exec.AbstractExecMojo
Parses the source code and generates source code for the csimple language.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected FileThe output directory for generated source filesprotected FileThe output directory for generated resources filesprotected org.apache.maven.project.MavenProjectThe maven project.static final Stringprotected FileThe resources directory for configuration filesFields inherited from class org.codehaus.mojo.exec.AbstractExecMojo
classpathScope, executableDependencyFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecuteRoutes(org.apache.camel.language.csimple.CSimpleCodeGenerator generator) voidexecute()static booleanupdateResource(Path out, String data) Methods inherited from class org.codehaus.mojo.exec.AbstractExecMojo
collectProjectArtifactsAndClasspath, findExecutableArtifact, getPluginDependencies, getSession, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRootsMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
GENERATED_MSG
- See Also:
-
RESOURCE_FILE
- See Also:
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectThe maven project. -
outputDir
The output directory for generated source files -
outputResourceDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File outputResourceDirThe output directory for generated resources files -
resourceDir
The resources directory for configuration files
-
-
Constructor Details
-
GenerateMojo
public GenerateMojo()
-
-
Method Details
-
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
-
doExecuteRoutes
protected void doExecuteRoutes(org.apache.camel.language.csimple.CSimpleCodeGenerator generator) -
updateResource
-