Class AbstractDirectoryGoal

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.commonjava.maven.plugins.execroot.AbstractDirectoryGoal
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DirectoryOfGoal, ExecutionRootGoal, HighestBasedirGoal

public abstract class AbstractDirectoryGoal extends org.apache.maven.plugin.AbstractMojo
The Class AbstractDirectoryGoal.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.maven.project.MavenProject
    The current project.
    protected String
    The property.
    protected boolean
    The quiet.
    protected org.apache.maven.execution.MavenSession
    The session.
    protected boolean
    The system property.

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
     
    protected abstract File
    Find directory.
    protected abstract String
    Gets the context key.
    protected abstract String
    Gets the log label.

    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

    • property

      @Parameter(defaultValue="dirProperty", required=true) protected String property
      The property.
    • currentProject

      @Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject currentProject
      The current project.
    • session

      @Parameter(defaultValue="${session}", readonly=true) protected org.apache.maven.execution.MavenSession session
      The session.
    • quiet

      @Parameter(defaultValue="false") protected boolean quiet
      The quiet.
    • systemProperty

      @Parameter(defaultValue="false") protected boolean systemProperty
      The system property.
  • Constructor Details

    • AbstractDirectoryGoal

      public AbstractDirectoryGoal()
  • Method Details

    • execute

      public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getLogLabel

      protected abstract String getLogLabel()
      Gets the log label.
      Returns:
      the log label
    • findDirectory

      protected abstract File findDirectory() throws org.apache.maven.plugin.MojoExecutionException
      Find directory.
      Returns:
      the file
      Throws:
      org.apache.maven.plugin.MojoExecutionException - the mojo execution exception
    • getContextKey

      protected abstract String getContextKey()
      Gets the context key.
      Returns:
      the context key