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

public class PluginExecution
extends ConfigurationContainer
implements Serializable

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.
 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.
 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.
 
Methods inherited from class org.apache.maven.model.ConfigurationContainer
getConfiguration, getInherited, isInheritanceApplied, setConfiguration, setInherited, unsetInheritanceApplied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 -

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

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 -


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