Class MavenProfileActivation
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenProfileActivation
A
profile activation in a MavenBuild.- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forMavenProfileActivation.static final classFile activation settings.static final classOperating System activation settings.static final classProperty activation settings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionSpecify if the profile should be activated by default, ornullto use the default value.getFile()Return the file activation settings, ornullto not enable the profile based on the presence or absence of a file.getJdk()Specify the JDK(s) that should match for the profile to be activated, ornullto not enable the profile based on the JDK.getOs()Return the operating system activation settings, ornullto not enable the profile based on the OS.Return the property to match to enable the profile, ornullto not enable the profile based on a property.booleanisEmpty()Specify if this activation has any non-default value.
-
Constructor Details
-
MavenProfileActivation
-
-
Method Details
-
isEmpty
public boolean isEmpty()Specify if this activation has any non-default value.- Returns:
trueif there are no non-default values
-
getActiveByDefault
Specify if the profile should be activated by default, ornullto use the default value.- Returns:
trueto active the profile if no other profile is active
-
getJdk
Specify the JDK(s) that should match for the profile to be activated, ornullto not enable the profile based on the JDK.- Returns:
- the jdk (or jdks range) that should match or
null
-
getOs
Return the operating system activation settings, ornullto not enable the profile based on the OS.- Returns:
- the operating system activation settings or
null
-
getProperty
Return the property to match to enable the profile, ornullto not enable the profile based on a property.- Returns:
- the property to match or
null
-
getFile
Return the file activation settings, ornullto not enable the profile based on the presence or absence of a file.- Returns:
- the file activation settings or
null
-