Package org.apache.camel.maven.packaging
Class UpdateReadmeMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.AbstractGeneratorMojo
org.apache.camel.maven.packaging.UpdateReadmeMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="update-readme",
threadSafe=true)
public class UpdateReadmeMojo
extends AbstractGeneratorMojo
Generate or updates the component/dataformat/language/eip documentation .adoc files in the project src/main/docs
directory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe project build directoryprotected FileThe component documentation directoryprotected FileThe dataformat documentation directoryprotected FileThe EIP documentation directoryprotected BooleanWhether to fail the build fast if any Warnings was detected.protected FileThe language documentation directoryprotected FileThe other language documentation directoryFields inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
buildContext, GENERATED_MSG, NL, project, projectHelperFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionUpdateReadmeMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext) -
Method Summary
Methods inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
addResourceDirectory, cache, canonicalClassName, createProperties, createProperties, findConfigurations, format, getProjectClassLoader, haveResourcesChanged, isJsonFile, loadClass, newTreeSet, refresh, refresh, updateResource, updateResource, velocityMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
buildDir
The project build directory -
componentDocDir
The component documentation directory -
dataformatDocDir
The dataformat documentation directory -
languageDocDir
The language documentation directory -
languageDocDir2
@Parameter(defaultValue="${project.basedir}/src/main/docs/modules/languages/pages") protected File languageDocDir2The other language documentation directory -
eipDocDir
The EIP documentation directory -
failFast
Whether to fail the build fast if any Warnings was detected. -
sourceRoots
-
-
Constructor Details
-
UpdateReadmeMojo
@Inject public UpdateReadmeMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext)
-
-
Method Details
-
execute
public void execute(org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException - Overrides:
executein classAbstractGeneratorMojo- Throws:
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-