Package org.apache.maven.model
Class Activation
java.lang.Object
org.apache.maven.model.Activation
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlwaysOnActivation
The conditions within the build runtime environment which will
trigger the
automatic inclusion of the build profile.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
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.private ActivationFile
Specifies that this profile will be activated based on existence of a file.private String
Specifies that this profile will be activated when a matching JDK is detected.private ActivationOS
Specifies that this profile will be activated when matching operating system attributes are detected.private ActivationProperty
Specifies that this profile will be activated when this system property is specified. -
Constructor Summary
Constructors -
Method Summary
Modifier 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 operating system attributes are detected.Get specifies that this profile will be activated when this system property is specified.boolean
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.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.void
setFile
(ActivationFile file) Set specifies that this profile will be activated based on existence of a file.void
Set specifies that this profile will be activated when a matching JDK is detected.void
setOs
(ActivationOS os) Set specifies that this profile will be activated when matching operating system attributes are detected.void
setProperty
(ActivationProperty property) Set specifies that this profile will be activated when this system property is specified.
-
Field Details
-
activeByDefault
private boolean activeByDefaultIf 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. -
jdk
Specifies that this profile will be activated when a matching JDK is detected. For example,1.4
only activates on JDKs versioned 1.4, while!1.4
matches any JDK that is not version 1.4. -
os
Specifies that this profile will be activated when matching operating system attributes are detected. -
property
Specifies that this profile will be activated when this system property is specified. -
file
Specifies that this profile will be activated based on existence of a file.
-
-
Constructor Details
-
Activation
public Activation()
-
-
Method Details
-
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. For example,1.4
only activates on JDKs versioned 1.4, while!1.4
matches any JDK that is not version 1.4.- Returns:
- String
-
getOs
Get specifies that this profile will be activated when matching operating system attributes are detected.- Returns:
- ActivationOS
-
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
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. For example,1.4
only activates on JDKs versioned 1.4, while!1.4
matches any JDK that is not version 1.4.- Parameters:
jdk
- a jdk object.
-
setOs
Set specifies that this profile will be activated when matching operating system attributes are detected.- Parameters:
os
- a os object.
-
setProperty
Set specifies that this profile will be activated when this system property is specified.- Parameters:
property
- a property object.
-