public class Activation extends Objectimplements Serializable , Cloneable , InputLocationTracker
| Constructor and Description |
|---|
Activation()
|
| Modifier and Type | Method and Description |
|---|---|
Activation |
clone()
Method clone.
|
ActivationFile |
getFile()
Get specifies that this profile will be activated based on existence of a file.
|
String |
getJdk()
Get specifies that this profile will be activated when a matching JDK is detected.
|
InputLocation |
getLocation(Object
Gets the location of the specified field in the input source.
|
ActivationOS |
getOs()
Get specifies that this profile will be activated when matching operating system attributes are detected.
|
ActivationProperty |
getProperty()
Get specifies that this profile will be activated when this system property is specified.
|
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.
|
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
Set specifies that this profile will be activated based on existence of a file.
|
void |
setJdk(String
Set specifies that this profile will be activated when a matching JDK is detected.
|
void |
setLocation(Object
Sets the location of the specified field.
|
void |
setOs(ActivationOS
Set specifies that this profile will be activated when matching operating system attributes are detected.
|
void |
setProperty(ActivationProperty
Set specifies that this profile will be activated when this system property is specified.
|
public Activationclone()
public ActivationFilegetFile()
public StringgetJdk()
1.4 only activates on JDKs versioned 1.4, while
!1.4 matches any JDK that is not version 1.4. Ranges are supported too:
[1.5,) activates when the JDK is 1.5 minimum.
public InputLocationgetLocation(Object key)
InputLocationTracker
getLocation in interface
InputLocationTracker
key -
public ActivationOSgetOs()
public ActivationPropertygetProperty()
public boolean isActiveByDefault()
public void setActiveByDefault(boolean activeByDefault)
activeByDefault -
public void setFile(ActivationFilefile)
file -
public void setJdk(Stringjdk)
1.4 only activates on JDKs versioned 1.4, while
!1.4 matches any JDK that is not version 1.4. Ranges are supported too:
[1.5,) activates when the JDK is 1.5 minimum.
jdk -
public void setLocation(Objectkey, InputLocation location)
InputLocationTracker
setLocation in interface
InputLocationTracker
key -
location -
public void setOs(ActivationOSos)
os -
public void setProperty(ActivationPropertyproperty)
property -