org.commonjava.maven.plugins.execroot
Class AbstractDirectoryGoal

java.lang.Object
  extended by 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 Object
implements org.apache.maven.plugin.Mojo, org.apache.maven.plugin.ContextEnabled


Field Summary
protected  Map<String,Object> context
           
protected  org.apache.maven.project.MavenProject currentProject
           
protected  String property
           
protected  boolean quiet
           
protected  org.apache.maven.execution.MavenSession session
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
protected AbstractDirectoryGoal()
           
 
Method Summary
 void execute()
          
protected abstract  File findDirectory()
           
protected abstract  String getContextKey()
           
 org.apache.maven.plugin.logging.Log getLog()
          
protected abstract  String getLogLabel()
           
 Map getPluginContext()
          
 void setLog(org.apache.maven.plugin.logging.Log log)
          
 void setPluginContext(Map context)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

property

protected String property

currentProject

protected org.apache.maven.project.MavenProject currentProject

session

protected org.apache.maven.execution.MavenSession session

quiet

protected boolean quiet

context

protected Map<String,Object> context
Constructor Detail

AbstractDirectoryGoal

protected AbstractDirectoryGoal()
Method Detail

execute

public final void execute()
                   throws org.apache.maven.plugin.MojoExecutionException,
                          org.apache.maven.plugin.MojoFailureException

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
See Also:
Mojo.execute()

getLogLabel

protected abstract String getLogLabel()

findDirectory

protected abstract File findDirectory()
                               throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getContextKey

protected abstract String getContextKey()

getLog

public org.apache.maven.plugin.logging.Log getLog()

Specified by:
getLog in interface org.apache.maven.plugin.Mojo
See Also:
Mojo.getLog()

setLog

public void setLog(org.apache.maven.plugin.logging.Log log)

Specified by:
setLog in interface org.apache.maven.plugin.Mojo
See Also:
Mojo.setLog(org.apache.maven.plugin.logging.Log)

getPluginContext

public Map getPluginContext()

Specified by:
getPluginContext in interface org.apache.maven.plugin.ContextEnabled
See Also:
ContextEnabled.getPluginContext()

setPluginContext

public void setPluginContext(Map context)

Specified by:
setPluginContext in interface org.apache.maven.plugin.ContextEnabled
See Also:
ContextEnabled.setPluginContext(java.util.Map)


Copyright © 2011. All Rights Reserved.