org.apache.maven.plugin.announcement
Class AbstractAnnouncementMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.announcement.AbstractAnnouncementMojo
All Implemented Interfaces:
ContextEnabled, Mojo
Direct Known Subclasses:
AnnouncementMailMojo, AnnouncementMojo

public abstract class AbstractAnnouncementMojo
extends AbstractMojo

Abstract superclass for announcement mojos.

Since:
2.3
Version:
$Id: AbstractAnnouncementMojo.java 1050209 2010-12-16 22:53:04Z dennisl $

Field Summary
protected  String basedir
          The current project base directory.
protected  MavenSession mavenSession
          The Maven Session.
protected  boolean runOnlyAtExecutionRoot
          This will cause the execution to be run only at the top of a given module tree.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractAnnouncementMojo()
           
 
Method Summary
protected  boolean isThisTheExecutionRoot()
          Returns true if the current project is located at the Execution Root Directory (where mvn was launched).
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

basedir

protected String basedir
The current project base directory.

Since:
2.1
Is defined by:
expression:
${basedir}
Is required.

mavenSession

protected MavenSession mavenSession
The Maven Session.

Since:
2.3
Is defined by:
expression:
${session}
Is readonly.
Is required.

runOnlyAtExecutionRoot

protected boolean runOnlyAtExecutionRoot
This will cause the execution to be run only at the top of a given module tree. That is, run in the project contained in the same folder where the mvn execution was launched.

Since:
2.3
Is defined by:
expression:
${announcement.runOnlyAtExecutionRoot}
default-value:
false
Constructor Detail

AbstractAnnouncementMojo

public AbstractAnnouncementMojo()
Method Detail

isThisTheExecutionRoot

protected boolean isThisTheExecutionRoot()
Returns true if the current project is located at the Execution Root Directory (where mvn was launched).

Returns:
true if the current project is at the Execution Root


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.