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 SummaryConstructors
- 
Method SummaryModifier 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.booleanGet flag specifying whether this profile is active as a default.voidsetActiveByDefault(boolean activeByDefault) Set flag specifying whether this profile is active as a default.voidsetFile(ActivationFile file) Set specifies that this profile will be activated based on existence of a file.voidSet specifies that this profile will be activated when a matching JDK is detected.voidsetOs(ActivationOS os) Set specifies that this profile will be activated when matching OS attributes are detected.voidsetProperty(ActivationProperty property) Set specifies that this profile will be activated when this property is specified.
- 
Constructor Details- 
Activationpublic Activation()
 
- 
- 
Method Details- 
getFileGet specifies that this profile will be activated based on existence of a file.- Returns:
- ActivationFile
 
- 
getJdkGet specifies that this profile will be activated when a matching JDK is detected.- Returns:
- String
 
- 
getOsGet specifies that this profile will be activated when matching OS attributes are detected.- Returns:
- ActivationOS
 
- 
getPropertyGet specifies that this profile will be activated when this property is specified.- Returns:
- ActivationProperty
 
- 
isActiveByDefaultpublic boolean isActiveByDefault()Get flag specifying whether this profile is active as a default.- Returns:
- boolean
 
- 
setActiveByDefaultpublic void setActiveByDefault(boolean activeByDefault) Set flag specifying whether this profile is active as a default.- Parameters:
- activeByDefault- a activeByDefault object.
 
- 
setFileSet specifies that this profile will be activated based on existence of a file.- Parameters:
- file- a file object.
 
- 
setJdkSet specifies that this profile will be activated when a matching JDK is detected.- Parameters:
- jdk- a jdk object.
 
- 
setOsSet specifies that this profile will be activated when matching OS attributes are detected.- Parameters:
- os- a os object.
 
- 
setPropertySet specifies that this profile will be activated when this property is specified.- Parameters:
- property- a property object.
 
 
-