
org.apache.maven.plugin.lifecycle.Phase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-plugin-api Show documentation
Show all versions of maven-plugin-api Show documentation
The API for plugins - Mojos - development.
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.maven.plugin.lifecycle;
/**
* A phase mapping definition.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings("all")
public class Phase implements java.io.Serializable {
// --------------------------/
// - Class/Member Variables -/
// --------------------------/
/**
* The ID of this phase, e.g., generate-sources
.
*/
private String id;
/**
* Field executions.
*/
private java.util.List executions;
/**
* Configuration to pass to all goals run in this phase.
*/
private Object configuration;
// -----------/
// - Methods -/
// -----------/
/**
* Method addExecution.
*
* @param execution a execution object.
*/
public void addExecution(Execution execution) {
getExecutions().add(execution);
} // -- void addExecution( Execution )
/**
* Get configuration to pass to all goals run in this phase.
*
* @return Object
*/
public Object getConfiguration() {
return this.configuration;
} // -- Object getConfiguration()
/**
* Method getExecutions.
*
* @return List
*/
public java.util.List getExecutions() {
if (this.executions == null) {
this.executions = new java.util.ArrayList();
}
return this.executions;
} // -- java.util.List getExecutions()
/**
* Get the ID of this phase, e.g.,
* generate-sources
.
*
* @return String
*/
public String getId() {
return this.id;
} // -- String getId()
/**
* Method removeExecution.
*
* @param execution a execution object.
*/
public void removeExecution(Execution execution) {
getExecutions().remove(execution);
} // -- void removeExecution( Execution )
/**
* Set configuration to pass to all goals run in this phase.
*
* @param configuration a configuration object.
*/
public void setConfiguration(Object configuration) {
this.configuration = configuration;
} // -- void setConfiguration( Object )
/**
* Set the goals to execute within the phase.
*
* @param executions a executions object.
*/
public void setExecutions(java.util.List executions) {
this.executions = executions;
} // -- void setExecutions( java.util.List )
/**
* Set the ID of this phase, e.g.,
* generate-sources
.
*
* @param id a id object.
*/
public void setId(String id) {
this.id = id;
} // -- void setId( String )
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy