Package org.apache.maven.model
Class Profile
- java.lang.Object
-
- org.apache.maven.model.ModelBase
-
- org.apache.maven.model.Profile
-
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
public class Profile extends ModelBase implements Serializable, Cloneable
Modifications to the build process which is activated based on environmental parameters or command line arguments.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
SOURCE_POM
static String
SOURCE_SETTINGS
-
Constructor Summary
Constructors Constructor Description Profile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Profile
clone()
Method clone.Activation
getActivation()
Get the conditional logic which will automatically trigger the inclusion of this profile.BuildBase
getBuild()
Get information required to build the project.String
getId()
Get the identifier of this build profile.String
getSource()
void
setActivation(Activation activation)
Set the conditional logic which will automatically trigger the inclusion of this profile.void
setBuild(BuildBase build)
Set information required to build the project.void
setId(String id)
Set the identifier of this build profile.void
setSource(String source)
String
toString()
-
Methods inherited from class org.apache.maven.model.ModelBase
addDependency, addModule, addPluginRepository, addProperty, addRepository, getDependencies, getDependencyManagement, getDistributionManagement, getLocation, getModules, getPluginRepositories, getProperties, getReporting, getReports, getRepositories, removeDependency, removeModule, removePluginRepository, removeRepository, setDependencies, setDependencyManagement, setDistributionManagement, setLocation, setModules, setOtherLocation, setPluginRepositories, setProperties, setReporting, setReports, setRepositories
-
-
-
-
Field Detail
-
SOURCE_POM
public static final String SOURCE_POM
- See Also:
- Constant Field Values
-
SOURCE_SETTINGS
public static final String SOURCE_SETTINGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActivation
public Activation getActivation()
Get the conditional logic which will automatically trigger the inclusion of this profile.- Returns:
- Activation
-
getBuild
public BuildBase getBuild()
Get information required to build the project.- Returns:
- BuildBase
-
getId
public String getId()
Get the identifier of this build profile. This is used for command line activation, and identifies profiles to be merged.- Returns:
- String
-
setActivation
public void setActivation(Activation activation)
Set the conditional logic which will automatically trigger the inclusion of this profile.- Parameters:
activation
- a activation object.
-
setBuild
public void setBuild(BuildBase build)
Set information required to build the project.- Parameters:
build
- a build object.
-
setId
public void setId(String id)
Set the identifier of this build profile. This is used for command line activation, and identifies profiles to be merged.- Parameters:
id
- a id object.
-
setSource
public void setSource(String source)
-
getSource
public String getSource()
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-