Class Activation

java.lang.Object
org.apache.maven.model.Activation
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AlwaysOnActivation

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

    Fields
    Modifier and Type
    Field
    Description
    private 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.
    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.
    Specifies that this profile will be activated when this system property is specified.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 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
    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 operating system attributes are detected.
    void
    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
  • Field Details

    • activeByDefault

      private boolean activeByDefault
      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.
    • jdk

      private String 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

      private ActivationOS os
      Specifies that this profile will be activated when matching operating system attributes are detected.
    • property

      private ActivationProperty property
      Specifies that this profile will be activated when this system property is specified.
    • file

      private ActivationFile file
      Specifies that this profile will be activated based on existence of a file.
  • Constructor Details

    • Activation

      public Activation()
  • Method Details

    • 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. 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

      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 -
    • 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. 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 -
    • setOs

      public void setOs(ActivationOS os)
      Set specifies that this profile will be activated when matching operating system 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 -