Package org.apache.maven.settings
Class Activation
java.lang.Object
org.apache.maven.settings.Activation
- All Implemented Interfaces:
Serializable,Cloneable
The conditions within the build runtime environment
which will trigger
the automatic inclusion of the parent build profile.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanFlag specifying whether this profile is active as a default.private ActivationFileSpecifies that this profile will be activated based on existence of a file.private StringSpecifies that this profile will be activated when a matching JDK is detected.private ActivationOSSpecifies that this profile will be activated when matching OS attributes are detected.private ActivationPropertySpecifies that this profile will be activated when this property is specified. -
Constructor Summary
Constructors -
Method Summary
Modifier 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.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.
-
Field Details
-
activeByDefault
private boolean activeByDefaultFlag specifying whether this profile is active as a default. -
jdk
Specifies that this profile will be activated when a matching JDK is detected. -
os
Specifies that this profile will be activated when matching OS attributes are detected. -
property
Specifies that this profile will be activated when this property is specified. -
file
Specifies that this profile will be activated based on existence of a file.
-
-
Constructor Details
-
Activation
public Activation()
-
-
Method Details
-
clone
Method clone. -
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.
-