org.apache.maven.model
Class PluginExecution

java.lang.Object
  extended by org.apache.maven.model.ConfigurationContainer
      extended by org.apache.maven.model.PluginExecution
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

public class PluginExecution
extends ConfigurationContainer
implements Serializable, Cloneable

The <execution> element contains informations required for the execution of a plugin.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
static String DEFAULT_EXECUTION_ID
           
 
Constructor Summary
PluginExecution()
           
 
Method Summary
 void addGoal(String string)
          Method addGoal.
 PluginExecution clone()
          Method clone.
 List<String> getGoals()
          Method getGoals.
 String getId()
          Get the identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.
 String getPhase()
          Get the build lifecycle phase to bind the goals in this execution to.
 int getPriority()
          Get the priority of this execution compared to other executions which are bound to the same phase.
 void removeGoal(String string)
          Method removeGoal.
 void setGoals(List<String> goals)
          Set the goals to execute with the given configuration.
 void setId(String id)
          Set the identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.
 void setPhase(String phase)
          Set the build lifecycle phase to bind the goals in this execution to.
 void setPriority(int priority)
          Set the priority of this execution compared to other executions which are bound to the same phase.
 String toString()
           
 
Methods inherited from class org.apache.maven.model.ConfigurationContainer
getConfiguration, getInherited, getLocation, isInheritanceApplied, isInherited, setConfiguration, setInherited, setInherited, setLocation, unsetInheritanceApplied
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_EXECUTION_ID

public static final String DEFAULT_EXECUTION_ID
See Also:
Constant Field Values
Constructor Detail

PluginExecution

public PluginExecution()
Method Detail

addGoal

public void addGoal(String string)
Method addGoal.

Parameters:
string -

clone

public PluginExecution clone()
Method clone.

Overrides:
clone in class ConfigurationContainer
Returns:
PluginExecution

getGoals

public List<String> getGoals()
Method getGoals.

Returns:
List

getId

public String getId()
Get the identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.

Returns:
String

getPhase

public String getPhase()
Get the build lifecycle phase to bind the goals in this execution to. If omitted, the goals will be bound to the default phase specified in their metadata.

Returns:
String

getPriority

public int getPriority()
Get the priority of this execution compared to other executions which are bound to the same phase. Warning: This is an internal utility property that is only public for technical reasons, it is not part of the public API. In particular, this property can be changed or deleted without prior notice.

Returns:
int

removeGoal

public void removeGoal(String string)
Method removeGoal.

Parameters:
string -

setGoals

public void setGoals(List<String> goals)
Set the goals to execute with the given configuration.

Parameters:
goals -

setId

public void setId(String id)
Set the identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.

Parameters:
id -

setPhase

public void setPhase(String phase)
Set the build lifecycle phase to bind the goals in this execution to. If omitted, the goals will be bound to the default phase specified in their metadata.

Parameters:
phase -

setPriority

public void setPriority(int priority)
Set the priority of this execution compared to other executions which are bound to the same phase. Warning: This is an internal utility property that is only public for technical reasons, it is not part of the public API. In particular, this property can be changed or deleted without prior notice.

Parameters:
priority -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.