public class TerracottaCommandLineEnvironment extends Object
| Modifier and Type | Field and Description |
|---|---|
static TerracottaCommandLineEnvironment |
DEFAULT |
static Set<String> |
DEFAULT_ALLOWED_JDK_VENDORS
Deprecated.
Use
DEFAULT instead. |
static String |
DEFAULT_JDK_VERSION
Deprecated.
Use
DEFAULT instead. |
| Constructor and Description |
|---|
TerracottaCommandLineEnvironment(String javaVersion,
Set<String> javaVendors,
List<String> javaOpts)
Create a new instance that contains whatever is necessary to build a JVM command line, minus classpath and main class.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getJavaOpts() |
Set<String> |
getJavaVendors() |
String |
getJavaVersion() |
String |
toString() |
TerracottaCommandLineEnvironment |
withJavaOpts(List<String> javaOpts) |
TerracottaCommandLineEnvironment |
withJavaVendor(String javaVendor) |
TerracottaCommandLineEnvironment |
withJavaVendors(Set<String> javaVendors) |
TerracottaCommandLineEnvironment |
withJavaVersion(String javaVersion) |
@Deprecated public static final Set<String> DEFAULT_ALLOWED_JDK_VENDORS
DEFAULT instead.@Deprecated public static final String DEFAULT_JDK_VERSION
DEFAULT instead.public static final TerracottaCommandLineEnvironment DEFAULT
public TerracottaCommandLineEnvironment(String javaVersion, Set<String> javaVendors, List<String> javaOpts)
javaVersion - the java version specified in toolchains.xml, can be null if any version will fit.javaVendors - a set of acceptable java vendors specified in toolchains.xml, can be null if any vendor will fit.javaOpts - some command line arguments to give to the JVM, like -Xmx2G, -XX:Whatevever or -Dsomething=abc.
Can be null if no JVM argument is needed.public String getJavaVersion()
public TerracottaCommandLineEnvironment withJavaVersion(String javaVersion)
public TerracottaCommandLineEnvironment withJavaVendors(Set<String> javaVendors)
public TerracottaCommandLineEnvironment withJavaVendor(String javaVendor)
public TerracottaCommandLineEnvironment withJavaOpts(List<String> javaOpts)
Copyright © 2020. All rights reserved.