Class MavenProfileActivation

java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenProfileActivation

public class MavenProfileActivation extends Object
A profile activation in a MavenBuild.
Author:
Stephane Nicoll
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specify if this activation has any non-default value.
      Returns:
      true if there are no non-default values
    • getActiveByDefault

      public Boolean getActiveByDefault()
      Specify if the profile should be activated by default, or null to use the default value.
      Returns:
      true to active the profile if no other profile is active
    • getJdk

      public String getJdk()
      Specify the JDK(s) that should match for the profile to be activated, or null to not enable the profile based on the JDK.
      Returns:
      the jdk (or jdks range) that should match or null
    • getOs

      public MavenProfileActivation.Os getOs()
      Return the operating system activation settings, or null to not enable the profile based on the OS.
      Returns:
      the operating system activation settings or null
    • getProperty

      public MavenProfileActivation.Property getProperty()
      Return the property to match to enable the profile, or null to not enable the profile based on a property.
      Returns:
      the property to match or null
    • getFile

      public MavenProfileActivation.File getFile()
      Return the file activation settings, or null to not enable the profile based on the presence or absence of a file.
      Returns:
      the file activation settings or null