Package org.wurbelizer.maven
Class WurbileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.wurbelizer.maven.AbstractWurbelizerMojo
org.wurbelizer.maven.WurbileMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="wurbile",
defaultPhase=GENERATE_SOURCES)
public class WurbileMojo
extends AbstractWurbelizerMojo
Wurbile Wurblets.
The wurblet sources (wrbl-files) are translated to Java-sources and ser-files (serialized fixed text) and then compiled to Java class files.
Those class files can later be instantiated as code generators by the Wurbler.
See the wurbelizer:wurbel goal.
The wurblet sources (wrbl-files) are translated to Java-sources and ser-files (serialized fixed text) and then compiled to Java class files.
Those class files can later be instantiated as code generators by the Wurbler.
See the wurbelizer:wurbel goal.
- Author:
- harald
-
Field Summary
FieldsFields inherited from class org.wurbelizer.maven.AbstractWurbelizerMojo
charset, filesets, project, resourceDirs, session, skip, verbosity, verbosityLevel
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.wurbelizer.maven.AbstractWurbelizerMojo
createExtraProperties, determineEncoding, determineVerbosity, exportExtraProperties, findResourceDirs, getPathRelativeToBasedir, getResourceDirName, isSkipped
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
totalErrors
protected int totalErrorsTotal number of errors
-
-
Constructor Details
-
WurbileMojo
public WurbileMojo()
-
-
Method Details
-
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
-
createWurbiler
protected Wurbiler createWurbiler(File wrblFile, File outputJavaDir, File outputTextDir, Logger logger, Verbosity verbosity) throws IOException Creates an instance of a wurbiler.- Parameters:
wrblFile
- the input wurbelizer fileoutputJavaDir
- the output directory getting the Java-filesoutputTextDir
- the output directory getting the fixed text .ser-files.logger
- the loggerverbosity
- the verbosity- Returns:
- the wurbiler
- Throws:
IOException
- if source file could not be loaded
-