Package org.apache.maven.settings
Class Activation
- java.lang.Object
-
- org.apache.maven.settings.Activation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Activation extends java.lang.Object implements java.io.Serializable, java.lang.CloneableThe conditions within the build runtime environment which will trigger the automatic inclusion of the parent build profile.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private booleanactiveByDefaultFlag specifying whether this profile is active as a default.private ActivationFilefileSpecifies that this profile will be activated based on existence of a file.private java.lang.StringjdkSpecifies that this profile will be activated when a matching JDK is detected.private ActivationOSosSpecifies that this profile will be activated when matching OS attributes are detected.private ActivationPropertypropertySpecifies that this profile will be activated when this System property is specified.
-
Constructor Summary
Constructors Constructor Description Activation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Activationclone()Method clone.ActivationFilegetFile()Get specifies that this profile will be activated based on existence of a file.java.lang.StringgetJdk()Get specifies that this profile will be activated when a matching JDK is detected.ActivationOSgetOs()Get specifies that this profile will be activated when matching OS attributes are detected.ActivationPropertygetProperty()Get specifies that this profile will be activated when this System property is specified.booleanisActiveByDefault()Get 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.voidsetJdk(java.lang.String jdk)Set 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 System property is specified.
-
-
-
Field Detail
-
activeByDefault
private boolean activeByDefault
Flag specifying whether this profile is active as a default.
-
jdk
private java.lang.String jdk
Specifies that this profile will be activated when a matching JDK is detected.
-
os
private ActivationOS os
Specifies that this profile will be activated when matching OS attributes are detected.
-
property
private ActivationProperty property
Specifies that this profile will be activated when this System property is specified.
-
file
private ActivationFile file
Specifies that this profile will be activated based on existence of a file.
-
-
Method Detail
-
clone
public Activation clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Activation
-
getFile
public ActivationFile getFile()
Get specifies that this profile will be activated based on existence of a file.- Returns:
- ActivationFile
-
getJdk
public java.lang.String getJdk()
Get specifies that this profile will be activated when a matching JDK is detected.- Returns:
- String
-
getOs
public ActivationOS getOs()
Get specifies that this profile will be activated when matching OS attributes are detected.- Returns:
- ActivationOS
-
getProperty
public ActivationProperty getProperty()
Get specifies that this profile will be activated when this System 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-
-
setFile
public void setFile(ActivationFile file)
Set specifies that this profile will be activated based on existence of a file.- Parameters:
file-
-
setJdk
public void setJdk(java.lang.String jdk)
Set specifies that this profile will be activated when a matching JDK is detected.- Parameters:
jdk-
-
setOs
public void setOs(ActivationOS os)
Set specifies that this profile will be activated when matching OS attributes are detected.- Parameters:
os-
-
setProperty
public void setProperty(ActivationProperty property)
Set specifies that this profile will be activated when this System property is specified.- Parameters:
property-
-
-