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 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.
 String getModelEncoding()
           
 String getPhase()
          Get the build lifecycle phase to bind the goals in this execution to.
 void removeGoal(String string)
          Method removeGoal.
 void setGoals(List 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.
 void setModelEncoding(String modelEncoding)
          Set an encoding used for reading/writing the model.
 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 getGoals()
Method getGoals.

Returns:
java.util.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.

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 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.

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 -

setModelEncoding

public void setModelEncoding(String modelEncoding)
Set an encoding used for reading/writing the model.

Overrides:
setModelEncoding in class ConfigurationContainer
Parameters:
modelEncoding - the encoding used when reading/writing the model.

getModelEncoding

public String getModelEncoding()
Overrides:
getModelEncoding in class ConfigurationContainer
Returns:
the current encoding used when reading/writing this model.


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