Package org.apache.maven.model
Class Activation
- java.lang.Object
-
- org.apache.maven.model.Activation
-
- All Implemented Interfaces:
java.io.Serializable
public class Activation extends java.lang.Object implements java.io.SerializableThe conditions within the build runtime environment which will trigger the automatic inclusion of the build profile.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Activation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 operating system attributes are detected.ActivationPropertygetProperty()Get specifies that this profile will be activated when this system property is specified.booleanisActiveByDefault()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.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.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 operating system attributes are detected.voidsetProperty(ActivationProperty property)Set specifies that this profile will be activated when this system property is specified.
-
-
-
Method Detail
-
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. For example,1.4only activates on JDKs versioned 1.4, while!1.4matches any JDK that is not version 1.4.- Returns:
- String
-
getOs
public ActivationOS getOs()
Get specifies that this profile will be activated when matching operating system 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 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
-
setActiveByDefault
public 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.
-
setFile
public void setFile(ActivationFile file)
Set specifies that this profile will be activated based on existence of a file.- Parameters:
file- a file object.
-
setJdk
public void setJdk(java.lang.String jdk)
Set 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.- Parameters:
jdk- a jdk object.
-
setOs
public void setOs(ActivationOS os)
Set specifies that this profile will be activated when matching operating system attributes are detected.- Parameters:
os- a os object.
-
setProperty
public void setProperty(ActivationProperty property)
Set specifies that this profile will be activated when this system property is specified.- Parameters:
property- a property object.
-
-