Package org.apache.maven.model
Class PluginExecution
- java.lang.Object
-
- org.apache.maven.model.ConfigurationContainer
-
- org.apache.maven.model.PluginExecution
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class PluginExecution extends ConfigurationContainer implements java.io.Serializable, java.lang.Cloneable
The<execution>element contains informations required for the execution of a plugin.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_EXECUTION_IDprivate java.util.List<java.lang.String>goalsField goals.private java.lang.StringidThe identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.private java.lang.StringphaseThe build lifecycle phase to bind the goals in this execution to.private intpriorityThe priority of this execution compared to other executions which are bound to the same phase.
-
Constructor Summary
Constructors Constructor Description PluginExecution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGoal(java.lang.String string)Method addGoal.PluginExecutionclone()Method clone.java.util.List<java.lang.String>getGoals()Method getGoals.java.lang.StringgetId()Get the identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.java.lang.StringgetPhase()Get the build lifecycle phase to bind the goals in this execution to.intgetPriority()Get the priority of this execution compared to other executions which are bound to the same phase.voidremoveGoal(java.lang.String string)Method removeGoal.voidsetGoals(java.util.List<java.lang.String> goals)Set the goals to execute with the given configuration.voidsetId(java.lang.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.voidsetPhase(java.lang.String phase)Set the build lifecycle phase to bind the goals in this execution to.voidsetPriority(int priority)Set the priority of this execution compared to other executions which are bound to the same phase.java.lang.StringtoString()-
Methods inherited from class org.apache.maven.model.ConfigurationContainer
getConfiguration, getInherited, getLocation, isInheritanceApplied, isInherited, setConfiguration, setInherited, setInherited, setLocation, setOtherLocation, unsetInheritanceApplied
-
-
-
-
Field Detail
-
id
private java.lang.String id
The identifier of this execution for labelling the goals during the build, and for matching executions to merge during inheritance and profile injection.
-
phase
private java.lang.String phase
The build lifecycle phase to bind the goals in this execution to. If omitted, the goals will be bound to the default phase specified by the plugin.
-
priority
private int priority
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.
-
goals
private java.util.List<java.lang.String> goals
Field goals.
-
DEFAULT_EXECUTION_ID
public static final java.lang.String DEFAULT_EXECUTION_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
addGoal
public void addGoal(java.lang.String string)
Method addGoal.- Parameters:
string-
-
clone
public PluginExecution clone()
Method clone.- Overrides:
clonein classConfigurationContainer- Returns:
- PluginExecution
-
getGoals
public java.util.List<java.lang.String> getGoals()
Method getGoals.- Returns:
- List
-
getId
public java.lang.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 java.lang.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 by the plugin.- 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(java.lang.String string)
Method removeGoal.- Parameters:
string-
-
setGoals
public void setGoals(java.util.List<java.lang.String> goals)
Set the goals to execute with the given configuration.- Parameters:
goals-
-
setId
public void setId(java.lang.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(java.lang.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 by the plugin.- 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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-