public class MavenProfileActivation extends Object
profile
activation in a MavenBuild
.Modifier and Type | Class and Description |
---|---|
static class |
MavenProfileActivation.Builder
Builder for
MavenProfileActivation . |
static class |
MavenProfileActivation.File
File activation settings.
|
static class |
MavenProfileActivation.Os
Operating System activation settings.
|
static class |
MavenProfileActivation.Property
Property activation settings.
|
Modifier | Constructor and Description |
---|---|
protected |
MavenProfileActivation(MavenProfileActivation.Builder builder) |
Modifier and Type | Method and Description |
---|---|
Boolean |
getActiveByDefault()
Specify if the profile should be activated by default, or
null to use the
default value. |
MavenProfileActivation.File |
getFile()
Return the file activation settings, or
null to not enable the profile
based on the presence or absence of a file. |
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. |
MavenProfileActivation.Os |
getOs()
Return the operating system activation settings, or
null to not enable the
profile based on the OS. |
MavenProfileActivation.Property |
getProperty()
Return the property to match to enable the profile, or
null to not enable
the profile based on a property. |
boolean |
isEmpty()
Specify if this activation has any non-default value.
|
protected MavenProfileActivation(MavenProfileActivation.Builder builder)
public boolean isEmpty()
true
if there are no non-default valuespublic Boolean getActiveByDefault()
null
to use the
default value.true
to active the profile if no other profile is activepublic String getJdk()
null
to not enable the profile based on the JDK.null
public MavenProfileActivation.Os getOs()
null
to not enable the
profile based on the OS.null
public MavenProfileActivation.Property getProperty()
null
to not enable
the profile based on a property.null
public MavenProfileActivation.File getFile()
null
to not enable the profile
based on the presence or absence of a file.null
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.