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 class
Builder forMavenProfileActivation
.static final class
File activation settings.static final class
Operating System activation settings.static final class
Property activation settings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionSpecify if the profile should be activated by default, ornull
to use the default value.getFile()
Return the file activation settings, ornull
to 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, ornull
to not enable the profile based on the JDK.getOs()
Return the operating system activation settings, ornull
to not enable the profile based on the OS.Return the property to match to enable the profile, ornull
to not enable the profile based on a property.boolean
isEmpty()
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:
true
if there are no non-default values
-
getActiveByDefault
Specify if the profile should be activated by default, ornull
to use the default value.- Returns:
true
to active the profile if no other profile is active
-
getJdk
Specify the JDK(s) that should match for the profile to be activated, ornull
to 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, ornull
to 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, ornull
to not enable the profile based on a property.- Returns:
- the property to match or
null
-
getFile
Return the file activation settings, ornull
to not enable the profile based on the presence or absence of a file.- Returns:
- the file activation settings or
null
-