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.AbstractExecMojoParses the source code and generates source code for the csimple language.
-
-
Field Summary
Fields Modifier and Type Field Description static StringGENERATED_MSGprotected FileoutputDirThe output directory for generated source filesprotected FileoutputResourceDirThe output directory for generated resources filesprotected org.apache.maven.project.MavenProjectprojectThe maven project.static StringRESOURCE_FILEprotected FileresourceDirThe resources directory for configuration files
-
Constructor Summary
Constructors Constructor Description GenerateMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRoots
-
-
-
-
Field Detail
-
GENERATED_MSG
public static final String GENERATED_MSG
- See Also:
- Constant Field Values
-
RESOURCE_FILE
public static final String RESOURCE_FILE
- See Also:
- Constant Field Values
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectThe maven project.
-
outputDir
@Parameter(defaultValue="${project.basedir}/src/generated/java") protected File outputDirThe output directory for generated source files
-
outputResourceDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File outputResourceDirThe output directory for generated resources files
-
resourceDir
@Parameter(defaultValue="${project.basedir}/src/main/resources") protected File resourceDirThe resources directory for configuration files
-
-
Method Detail
-
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)
-
-