Class AbstractInhabitantsGeneratorMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    InhabitantsGeneratorMojo, TestInhabitantsGeneratorMojo

    public abstract class AbstractInhabitantsGeneratorMojo
    extends org.apache.maven.plugin.AbstractMojo
    Abstract Mojo for inhabitant generator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String CLASSES  
      private boolean includeDate  
      private java.lang.String locator  
      protected org.apache.maven.project.MavenProject project
      The maven project.
      private java.lang.String supportedProjectTypes  
      private java.io.File targetDirectory  
      private boolean verbose  
      private static java.lang.String WAR_PACKAGING  
      private static java.lang.String WEB_INF  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      This method will compile the inhabitants file based on the classes just compiled
      private java.lang.String getBuildClasspath()  
      protected abstract boolean getNoSwap()  
      protected abstract java.io.File getOutputDirectory()  
      protected boolean isWar()  
      • 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 Detail

      • targetDirectory

        @Parameter(property="project.build.directory")
        private java.io.File targetDirectory
      • project

        @Parameter(property="project",
                   required=true,
                   readonly=true)
        protected org.apache.maven.project.MavenProject project
        The maven project.
      • verbose

        @Parameter
        private boolean verbose
      • includeDate

        @Parameter(defaultValue="true")
        private boolean includeDate
      • locator

        @Parameter
        private java.lang.String locator
      • supportedProjectTypes

        @Parameter(property="supportedProjectTypes",
                   defaultValue="jar,ejb,war")
        private java.lang.String supportedProjectTypes
    • Constructor Detail

      • AbstractInhabitantsGeneratorMojo

        public AbstractInhabitantsGeneratorMojo()
    • Method Detail

      • getNoSwap

        protected abstract boolean getNoSwap()
      • getOutputDirectory

        protected abstract java.io.File getOutputDirectory()
      • isWar

        protected boolean isWar()
      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoFailureException
        This method will compile the inhabitants file based on the classes just compiled
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • getBuildClasspath

        private java.lang.String getBuildClasspath()