Package org.apache.maven.profiles
Class Activation
java.lang.Object
org.apache.maven.profiles.Activation
- All Implemented Interfaces:
Serializable
The conditions within the build runtime environment
which will trigger
the automatic inclusion of the parent build profile.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFile()
Get specifies that this profile will be activated based on existence of a file.getJdk()
Get specifies that this profile will be activated when a matching JDK is detected.getOs()
Get specifies that this profile will be activated when matching OS attributes are detected.Get specifies that this profile will be activated when this property is specified.boolean
Get flag specifying whether this profile is active as a default.void
setActiveByDefault
(boolean activeByDefault) Set flag specifying whether this profile is active as a default.void
setFile
(ActivationFile file) Set specifies that this profile will be activated based on existence of a file.void
Set specifies that this profile will be activated when a matching JDK is detected.void
setOs
(ActivationOS os) Set specifies that this profile will be activated when matching OS attributes are detected.void
setProperty
(ActivationProperty property) Set specifies that this profile will be activated when this property is specified.
-
Constructor Details
-
Activation
public Activation()
-
-
Method Details
-
getFile
Get specifies that this profile will be activated based on existence of a file.- Returns:
- ActivationFile
-
getJdk
Get specifies that this profile will be activated when a matching JDK is detected.- Returns:
- String
-
getOs
Get specifies that this profile will be activated when matching OS attributes are detected.- Returns:
- ActivationOS
-
getProperty
Get specifies that this profile will be activated when this property is specified.- Returns:
- ActivationProperty
-
isActiveByDefault
public boolean isActiveByDefault()Get flag specifying whether this profile is active as a default.- Returns:
- boolean
-
setActiveByDefault
public void setActiveByDefault(boolean activeByDefault) Set flag specifying whether this profile is active as a default.- Parameters:
activeByDefault
- a activeByDefault object.
-
setFile
Set specifies that this profile will be activated based on existence of a file.- Parameters:
file
- a file object.
-
setJdk
Set specifies that this profile will be activated when a matching JDK is detected.- Parameters:
jdk
- a jdk object.
-
setOs
Set specifies that this profile will be activated when matching OS attributes are detected.- Parameters:
os
- a os object.
-
setProperty
Set specifies that this profile will be activated when this property is specified.- Parameters:
property
- a property object.
-