public class PrepareCatalogMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected File |
archetypesDir
The archetypes directory where all the Apache Camel Maven archetypes are
|
protected File |
archetypesOutDir
The output directory for archetypes catalog
|
protected File |
blueprintSchemaDir
The directory where the camel-blueprint XML schema are
|
static int |
BUFFER_SIZE |
protected File |
componentsDir
The components directory where all the Apache Camel components are
|
protected File |
componentsOutDir
The output directory for components catalog
|
protected File |
coreDir
The camel-core directory where camel-core components are
|
protected File |
dataFormatsOutDir
The output directory for dataformats catalog
|
protected File |
documentsOutDir
The output directory for documents catalog
|
protected File |
languagesOutDir
The output directory for languages catalog
|
protected File |
modelsOutDir
The output directory for models catalog
|
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
protected File |
schemasOutDir
The output directory for XML schemas catalog
|
protected File |
springDir
The directory where the camel-spring XML models are
|
protected File |
springSchemaDir
The directory where the camel-spring XML schema are
|
protected Boolean |
validate
Whether to validate if the components, data formats, and languages are properly documented and have all the needed details.
|
Constructor and Description |
---|
PrepareCatalogMojo() |
Modifier and Type | Method and Description |
---|---|
static void |
copyFile(File from,
File to) |
void |
execute()
Execute goal.
|
protected void |
executeArchetypes() |
protected Set<String> |
executeComponents() |
protected Set<String> |
executeDataFormats() |
protected void |
executeDocuments(Set<String> components,
Set<String> dataformats,
Set<String> languages) |
protected Set<String> |
executeLanguages() |
protected void |
executeModel() |
protected void |
executeXmlSchemas() |
public static final int BUFFER_SIZE
protected org.apache.maven.project.MavenProject project
protected Boolean validate
protected File componentsOutDir
protected File dataFormatsOutDir
protected File languagesOutDir
protected File documentsOutDir
protected File modelsOutDir
protected File archetypesOutDir
protected File schemasOutDir
protected File componentsDir
protected File coreDir
protected File springDir
protected File archetypesDir
protected File springSchemaDir
protected File blueprintSchemaDir
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
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...protected void executeModel() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected Set<String> executeComponents() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected Set<String> executeDataFormats() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected Set<String> executeLanguages() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void executeArchetypes() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void executeXmlSchemas() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void executeDocuments(Set<String> components, Set<String> dataformats, Set<String> languages) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public static void copyFile(File from, File to) throws IOException
IOException
Apache Camel