org.mod4j.mojo
Class Mod4jGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.mod4j.mojo.Mod4jGeneratorMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class Mod4jGeneratorMojo
- extends org.apache.maven.plugin.AbstractMojo
The Mod4j Maven plug-in is used for generating artifacts out of Mod4j model projects.
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mod4jGeneratorMojo
public Mod4jGeneratorMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
crossxDslModel
public void crossxDslModel(java.lang.String projectDir,
DslExtension dsl)
throws java.lang.Exception
- Method for processing DslExtensions within a project. The following steps will be processed:
1) Walk through
all Mod4j model files for the given DslExtension within the model project and extract reference
information (Crossx) from them.
- Parameters:
projectDir - DslExtension -
- Throws:
java.lang.Exception
processDslModel
public void processDslModel(java.lang.String projectDir,
DslExtension dsl)
throws java.lang.Exception
- Method for processing DslExtensions within a project. The following steps will be processed:
2) Run all workflow files in the project, which checks consistency
of the models and generate the code.
Note that the crossxDslModel operation should run first to make all the cross reference information available.
- Parameters:
projectDir - DslExtension -
- Throws:
java.lang.Exception
Copyright © 2010 Mod4j. All Rights Reserved.