public class Execution extends Object implements Comparable<Execution>
| Constructor and Description |
|---|
Execution(String id,
String phase,
Configuration configuration,
String... goals)
Constructor
|
Execution(String id,
String phase,
String... goals)
Constructor for no execution-level
Configuration |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Execution other) |
boolean |
equals(Object obj) |
Configuration |
getConfiguration()
Returns this execution's configuration, if any; this is separate from any
configuration defined at the plugin level
|
Element |
getElement(Document document)
Returns the XML element for this execution within the given Maven POM
|
List<String> |
getGoals()
Returns the goals this execution will execute
|
String |
getId()
Returns the unique ID of this execution
|
String |
getPhase()
Returns the Maven lifecycle phase to which this execution is bound
|
int |
hashCode() |
String |
toString() |
public Execution(String id, String phase, Configuration configuration, String... goals)
id - the unique ID of this execution (required)phase - the Maven life-cycle phase to which this execution is bound
(required)configuration - the execution-level configuration; can be
nullgoals - the goals to execute (must be at least one)public Execution(String id, String phase, String... goals)
Configurationid - the unique ID of this execution (required)phase - the Maven life-cycle phase to which this execution is bound
(required)goals - the goals to execute (must be at least one)public int compareTo(Execution other)
compareTo in interface Comparable<Execution>public Configuration getConfiguration()
null if there is nonepublic Element getElement(Document document)
document - the Maven POM to which to add the element (required)null elementpublic List<String> getGoals()
public String getId()
public String getPhase()
Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.