public static class MavenProfileActivation.Builder extends Object
MavenProfileActivation.| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MavenProfileActivation.Builder |
activeByDefault(Boolean activeByDefault)
Specify if the profile should be enabled if no profile is active.
|
MavenProfileActivation |
build()
Create a
MavenProfileActivation with the current state of this builder. |
MavenProfileActivation.Builder |
fileExists(String existingFile)
Specify the file that should exist to enable the profile.
|
MavenProfileActivation.Builder |
fileMissing(String missingFile)
Specify the file that should be missing to enable the profile.
|
MavenProfileActivation.Builder |
jdk(String jdk)
Specify the JDK(s) to match to enable the profile.
|
MavenProfileActivation.Builder |
os(String name,
String family,
String arch,
String version)
Specify the OS to match to enable the profile.
|
MavenProfileActivation.Builder |
property(String name,
String value)
Specify the property to match to enable the profile.
|
public MavenProfileActivation.Builder activeByDefault(Boolean activeByDefault)
activeByDefault - whether to enable the profile is no profile is activepublic MavenProfileActivation.Builder jdk(String jdk)
jdk - the jdk (or JDKs range) to matchpublic MavenProfileActivation.Builder os(String name, String family, String arch, String version)
name - the name of the OSfamily - the family os OSarch - the cpu architectureversion - the version of the OSpublic MavenProfileActivation.Builder property(String name, String value)
name - the name of the propertyvalue - the value of the propertypublic MavenProfileActivation.Builder fileExists(String existingFile)
existingFile - the file that should existpublic MavenProfileActivation.Builder fileMissing(String missingFile)
missingFile - the file that should be missingpublic MavenProfileActivation build()
MavenProfileActivation with the current state of this builder.MavenProfileActivation.Copyright © 2022 Pivotal Software, Inc.. All rights reserved.