Class AbstractGenerateBdmMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.bonitasoft.plugin.bdm.codegen.AbstractGenerateBdmMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GenerateBdmDaoClientSourceMojo, GenerateBdmModelSourceMojo

public abstract class AbstractGenerateBdmMojo extends org.apache.maven.plugin.AbstractMojo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected File
    The path to a Business Object Model descriptor file.
    protected File
    The path to the output folder where the source code is generated.
    protected org.apache.maven.project.MavenProject
     

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract Predicate<Path>
     
    void
     

    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
  • Field Details

    • bdmModelFile

      @Parameter(required=true) protected File bdmModelFile
      The path to a Business Object Model descriptor file.
      Since:
      0.1.0
    • outputFolder

      @Parameter(defaultValue="${project.build.directory}/generated-sources/java") protected File outputFolder
      The path to the output folder where the source code is generated.
      Since:
      0.1.0
    • project

      @Parameter(defaultValue="${project}", required=true, readonly=true) protected org.apache.maven.project.MavenProject project
  • 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
    • excludedGeneratedSources

      protected abstract Predicate<Path> excludedGeneratedSources()