Class Activation

java.lang.Object
org.apache.maven.settings.Activation
All Implemented Interfaces:
Serializable, Cloneable

public class Activation extends Object implements Serializable, Cloneable
The conditions within the build runtime environment which will trigger the automatic inclusion of the parent build profile.
Version:
$Revision$ $Date$
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Method clone.
    Get specifies that this profile will be activated based on existence of a file.
    Get specifies that this profile will be activated when a matching JDK is detected.
    Get specifies that this profile will be activated when matching OS attributes are detected.
    Get specifies that this profile will be activated when this property is specified.
    boolean
    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
    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
    Set specifies that this profile will be activated when matching OS attributes are detected.
    void
    Set specifies that this profile will be activated when this property is specified.

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Activation

      public Activation()
  • Method Details

    • clone

      public Activation clone()
      Method clone.
      Overrides:
      clone in class 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 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 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 - 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(String jdk)
      Set specifies that this profile will be activated when a matching JDK is detected.
      Parameters:
      jdk - a jdk object.
    • setOs

      public void setOs(ActivationOS os)
      Set specifies that this profile will be activated when matching OS attributes are detected.
      Parameters:
      os - a os object.
    • setProperty

      public void setProperty(ActivationProperty property)
      Set specifies that this profile will be activated when this property is specified.
      Parameters:
      property - a property object.