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.
Author:
harald
  • Field Details

    • totalErrors

      protected int totalErrors
      Total 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 file
      outputJavaDir - the output directory getting the Java-files
      outputTextDir - the output directory getting the fixed text .ser-files.
      logger - the logger
      verbosity - the verbosity
      Returns:
      the wurbiler
      Throws:
      IOException - if source file could not be loaded