Package org.apache.maven.profiles
Class ProfilesRoot
- java.lang.Object
-
- org.apache.maven.profiles.ProfilesRoot
-
- All Implemented Interfaces:
Serializable
public class ProfilesRoot extends Object implements Serializable
Root element of the profiles.xml file.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProfilesRoot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddActiveProfile(String string)Method addActiveProfile.voidaddProfile(Profile profile)Method addProfile.List<String>getActiveProfiles()Method getActiveProfiles.StringgetModelEncoding()Get the modelEncoding field.List<Profile>getProfiles()Method getProfiles.voidremoveActiveProfile(String string)Method removeActiveProfile.voidremoveProfile(Profile profile)Method removeProfile.voidsetActiveProfiles(List<String> activeProfiles)Set list of manually-activated build profiles, specified in the order in which they should be applied.voidsetModelEncoding(String modelEncoding)Set the modelEncoding field.voidsetProfiles(List<Profile> profiles)Set configuration of build profiles for adjusting the build according to environmental parameters.
-
-
-
Method Detail
-
addActiveProfile
public void addActiveProfile(String string)
Method addActiveProfile.- Parameters:
string-
-
addProfile
public void addProfile(Profile profile)
Method addProfile.- Parameters:
profile-
-
getModelEncoding
public String getModelEncoding()
Get the modelEncoding field.- Returns:
- String
-
removeActiveProfile
public void removeActiveProfile(String string)
Method removeActiveProfile.- Parameters:
string-
-
removeProfile
public void removeProfile(Profile profile)
Method removeProfile.- Parameters:
profile-
-
setActiveProfiles
public void setActiveProfiles(List<String> activeProfiles)
Set list of manually-activated build profiles, specified in the order in which they should be applied.- Parameters:
activeProfiles-
-
setModelEncoding
public void setModelEncoding(String modelEncoding)
Set the modelEncoding field.- Parameters:
modelEncoding-
-
-