public class JVMBuilder extends Object implements Serializable
Constructor and Description |
---|
JVMBuilder() |
Modifier and Type | Method and Description |
---|---|
ArgumentListBuilder |
args()
Arguments to the main class.
|
ClasspathBuilder |
classpath()
Returns a builder object for creating classpath arguments.
|
JVMBuilder |
debug(int port)
Enables the debugger support on the given port.
|
Launcher.ProcStarter |
launch(Launcher launcher)
Fills a
Launcher.ProcStarter with all the parameters configured by this builder. |
JVMBuilder |
mainClass(Class mainClass) |
JVMBuilder |
mainClass(String fullyQualifiedClassName) |
JVMBuilder |
pwd(File pwd)
Sets the current directory for the new JVM.
|
JVMBuilder |
pwd(FilePath pwd)
Sets the current directory for the new JVM.
|
Map<String,String> |
systemProperties() |
JVMBuilder |
systemProperties(Map<String,String> props) |
JVMBuilder |
systemProperty(String key,
String value) |
ArgumentListBuilder |
toFullArguments() |
ArgumentListBuilder |
vmopts()
JVM options.
|
public ClasspathBuilder classpath()
public JVMBuilder systemProperty(String key, String value)
public JVMBuilder systemProperties(Map<String,String> props)
public ArgumentListBuilder args()
public ArgumentListBuilder vmopts()
public JVMBuilder pwd(FilePath pwd)
public JVMBuilder debug(int port)
public JVMBuilder pwd(File pwd)
public JVMBuilder mainClass(String fullyQualifiedClassName)
public JVMBuilder mainClass(Class mainClass)
public ArgumentListBuilder toFullArguments()
public Launcher.ProcStarter launch(Launcher launcher)
Launcher.ProcStarter
with all the parameters configured by this builder.Copyright © 2004–2021. All rights reserved.