Package org.apache.camel.maven.packaging
Class PrepareExampleMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.PrepareExampleMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="prepare-example",
threadSafe=true)
public class PrepareExampleMojo
extends org.apache.maven.plugin.AbstractMojo
Prepares the readme.md files content up to date with all the examples that Apache Camel ships.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected org.apache.maven.project.MavenProjectThe maven project.protected StringFields 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
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectThe maven project. -
startingFolder
@Parameter(property="startingFolder", required=true, readonly=true, defaultValue="examples") protected String startingFolder -
filter
@Parameter(property="filter", required=true, readonly=true, defaultValue="camel-example") protected String filter -
filterMiddleFolder
@Parameter(property="filterMiddleFolder", required=false, readonly=true) protected String filterMiddleFolder
-
-
Constructor Details
-
PrepareExampleMojo
public PrepareExampleMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionExecute goal.- Throws:
org.apache.maven.plugin.MojoExecutionException- execution of the main class or one of the threads it generated failed.org.apache.maven.plugin.MojoFailureException- something bad happened...
-
executeExamplesReadme
protected void executeExamplesReadme() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-