Package org.apache.maven.profiles
Class ProfilesRoot
java.lang.Object
org.apache.maven.profiles.ProfilesRoot
- All Implemented Interfaces:
Serializable
Root element of the profiles.xml file.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionField activeProfiles.private String
Field modelEncoding.Field profiles. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActiveProfile
(String string) Method addActiveProfile.void
addProfile
(Profile profile) Method addProfile.Method getActiveProfiles.Get the modelEncoding field.Method getProfiles.void
removeActiveProfile
(String string) Method removeActiveProfile.void
removeProfile
(Profile profile) Method removeProfile.void
setActiveProfiles
(List<String> activeProfiles) Set list of manually-activated build profiles, specified in the order in which they should be applied.void
setModelEncoding
(String modelEncoding) Set the modelEncoding field.void
setProfiles
(List<Profile> profiles) Set configuration of build profiles for adjusting the build according to environmental parameters.
-
Field Details
-
profiles
Field profiles. -
activeProfiles
Field activeProfiles. -
modelEncoding
Field modelEncoding.
-
-
Constructor Details
-
ProfilesRoot
public ProfilesRoot()
-
-
Method Details
-
addActiveProfile
Method addActiveProfile.- Parameters:
string
-
-
addProfile
Method addProfile.- Parameters:
profile
-
-
getActiveProfiles
Method getActiveProfiles.- Returns:
- List
-
getModelEncoding
Get the modelEncoding field.- Returns:
- String
-
getProfiles
Method getProfiles.- Returns:
- List
-
removeActiveProfile
Method removeActiveProfile.- Parameters:
string
-
-
removeProfile
Method removeProfile.- Parameters:
profile
-
-
setActiveProfiles
Set list of manually-activated build profiles, specified in the order in which they should be applied.- Parameters:
activeProfiles
-
-
setModelEncoding
Set the modelEncoding field.- Parameters:
modelEncoding
-
-
setProfiles
Set configuration of build profiles for adjusting the build according to environmental parameters.- Parameters:
profiles
-
-