Package org.apache.maven.model
Class Activation
java.lang.Object
org.apache.maven.model.Activation
- All Implemented Interfaces:
- Serializable,- Cloneable,- InputLocationTracker
The conditions within the build runtime environment which will
 trigger the
         automatic inclusion of the build profile. Multiple
 conditions can be defined, which must
         be all satisfied to activate the profile.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Method clone.getFile()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.getLocation(Object key) Gets the location of the specified field in the input source.getOs()Get specifies that this profile will be activated when matching operating system attributes are detected.Get specifies that this profile will be activated when this property is specified.booleanGet if set to true, this profile will be active unless another profile in this pom is activated using the command line -P option or by one of that profile's activators.voidsetActiveByDefault(boolean activeByDefault) Set if set to true, this profile will be active unless another profile in this pom is activated using the command line -P option or by one of that profile's activators.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.voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetOs(ActivationOS os) Set specifies that this profile will be activated when matching operating system attributes are detected.voidsetOtherLocation(Object key, InputLocation location) voidsetProperty(ActivationProperty property) Set specifies that this profile will be activated when this property is specified.
- 
Constructor Details- 
Activationpublic Activation()
 
- 
- 
Method Details- 
cloneMethod clone.
- 
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. For example,1.4only activates on JDKs versioned 1.4, while!1.4matches any JDK that is not version 1.4. Ranges are supported too:[1.5,)activates when the JDK is 1.5 minimum.- Returns:
- String
 
- 
getLocationDescription copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Parameters:
- key- a key object.
- Returns:
- InputLocation
 
- 
getOsGet specifies that this profile will be activated when matching operating system attributes are detected.- Returns:
- ActivationOS
 
- 
setLocationDescription copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
- setLocationin interface- InputLocationTracker
- Parameters:
- key- a key object.
- location- a location object.
 
- 
setOtherLocation- Parameters:
- key- a key object.
- location- a location object.
 
- 
getPropertyGet specifies that this profile will be activated when this property is specified.- Returns:
- ActivationProperty
 
- 
isActiveByDefaultpublic boolean isActiveByDefault()Get if set to true, this profile will be active unless another profile in this pom is activated using the command line -P option or by one of that profile's activators.- Returns:
- boolean
 
- 
setActiveByDefaultpublic void setActiveByDefault(boolean activeByDefault) Set if set to true, this profile will be active unless another profile in this pom is activated using the command line -P option or by one of that profile's activators.- 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. For example,1.4only activates on JDKs versioned 1.4, while!1.4matches any JDK that is not version 1.4. Ranges are supported too:[1.5,)activates when the JDK is 1.5 minimum.- Parameters:
- jdk- a jdk object.
 
- 
setOsSet specifies that this profile will be activated when matching operating system 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.
 
 
-