org.apache.maven.profiles
Class Activation

java.lang.Object
  extended by org.apache.maven.profiles.Activation
All Implemented Interfaces:
Serializable

public class Activation
extends Object
implements Serializable

The conditions within the build runtime environment which will trigger the automatic inclusion of the parent build profile.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Activation()
           
 
Method Summary
 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.
 ActivationOS getOs()
          Get specifies that this profile will be activated when matching OS attributes are detected.
 ActivationProperty getProperty()
          Get specifies that this profile will be activated when this System property is specified.
 boolean isActiveByDefault()
          Get flag specifying whether this profile is active as a default.
 void setActiveByDefault(boolean activeByDefault)
          Set flag specifying whether this profile is active as a default.
 void setFile(ActivationFile file)
          Set specifies that this profile will be activated based on existence of a file.
 void setJdk(String jdk)
          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 OS attributes are detected.
 void setProperty(ActivationProperty property)
          Set specifies that this profile will be activated when this System property is specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activation

public Activation()
Method Detail

getFile

public ActivationFile getFile()
Get specifies that this profile will be activated based on existence of a file.

Returns:
ActivationFile

getJdk

public 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(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 -


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.