Package org.apache.maven.model
Class Profile
- java.lang.Object
-
- org.apache.maven.model.ModelBase
-
- org.apache.maven.model.Profile
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class Profile extends ModelBase implements java.io.Serializable, java.lang.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 private ActivationactivationThe conditional logic which will automatically trigger the inclusion of this profile.private BuildBasebuildInformation required to build the project.private java.lang.StringidThe identifier of this build profile.private java.lang.Stringsourcestatic java.lang.StringSOURCE_POMstatic java.lang.StringSOURCE_SETTINGS
-
Constructor Summary
Constructors Constructor Description Profile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Profileclone()Method clone.ActivationgetActivation()Get the conditional logic which will automatically trigger the inclusion of this profile.BuildBasegetBuild()Get information required to build the project.java.lang.StringgetId()Get the identifier of this build profile.java.lang.StringgetSource()voidsetActivation(Activation activation)Set the conditional logic which will automatically trigger the inclusion of this profile.voidsetBuild(BuildBase build)Set information required to build the project.voidsetId(java.lang.String id)Set the identifier of this build profile.voidsetSource(java.lang.String source)java.lang.StringtoString()-
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
-
id
private java.lang.String id
The identifier of this build profile. This is used for command line activation, and identifies profiles to be merged.
-
activation
private Activation activation
The conditional logic which will automatically trigger the inclusion of this profile.
-
build
private BuildBase build
Information required to build the project.
-
SOURCE_POM
public static final java.lang.String SOURCE_POM
- See Also:
- Constant Field Values
-
SOURCE_SETTINGS
public static final java.lang.String SOURCE_SETTINGS
- See Also:
- Constant Field Values
-
source
private java.lang.String source
-
-
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 java.lang.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-
-
setBuild
public void setBuild(BuildBase build)
Set information required to build the project.- Parameters:
build-
-
setId
public void setId(java.lang.String id)
Set the identifier of this build profile. This is used for command line activation, and identifies profiles to be merged.- Parameters:
id-
-
setSource
public void setSource(java.lang.String source)
-
getSource
public java.lang.String getSource()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-