org.apache.maven.model.PluginExecution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.0.1 on 2009-08-06 15:13:09,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.model;
/**
*
*
* The <execution>
element contains
* informations required for the
* execution of a plugin.
*
*
*
* @version $Revision$ $Date$
*/
public class PluginExecution
extends ConfigurationContainer
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* The identifier of this execution for labelling the goals
* during the build,
* and for matching executions to merge during
* inheritance and profile injection.
*/
private String id = "default";
/**
* 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.
*/
private String phase;
/**
* Field goals.
*/
private java.util.List goals;
//-----------/
//- Methods -/
//-----------/
/**
* Method addGoal.
*
* @param string
*/
public void addGoal( String string )
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "PluginExecution.addGoals(string) parameter must be instanceof " + String.class.getName() );
}
getGoals().add( string );
} //-- void addGoal( String )
/**
* Method getGoals.
*
* @return List
*/
public java.util.List getGoals()
{
if ( this.goals == null )
{
this.goals = new java.util.ArrayList();
}
return this.goals;
} //-- java.util.List getGoals()
/**
* Get the identifier of this execution for labelling the goals
* during the build,
* and for matching executions to merge during
* inheritance and profile injection.
*
* @return String
*/
public String getId()
{
return this.id;
} //-- String getId()
/**
* 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.
*
* @return String
*/
public String getPhase()
{
return this.phase;
} //-- String getPhase()
/**
* Method removeGoal.
*
* @param string
*/
public void removeGoal( String string )
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "PluginExecution.removeGoals(string) parameter must be instanceof " + String.class.getName() );
}
getGoals().remove( string );
} //-- void removeGoal( String )
/**
* Set the goals to execute with the given configuration.
*
* @param goals
*/
public void setGoals( java.util.List goals )
{
this.goals = goals;
} //-- void setGoals( java.util.List )
/**
* Set the identifier of this execution for labelling the goals
* during the build,
* and for matching executions to merge during
* inheritance and profile injection.
*
* @param id
*/
public void setId( String id )
{
this.id = id;
} //-- void setId( String )
/**
* 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.
*
* @param phase
*/
public void setPhase( String phase )
{
this.phase = phase;
} //-- void setPhase( String )
public static final String DEFAULT_EXECUTION_ID = "default";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy