public class JVMStarter extends Object
The goal of this class is to start a new JVM based on the given parameters
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.shared.utils.cli.Commandline |
commandline |
| Constructor and Description |
|---|
JVMStarter(org.apache.maven.plugin.logging.Log log) |
| Modifier and Type | Method and Description |
|---|---|
JVMStarter |
addEnvironmentVariables(Map<String,String> environmentVariables) |
int |
execute(org.apache.maven.shared.utils.cli.StreamConsumer outStreamConsumer,
org.apache.maven.shared.utils.cli.StreamConsumer errStreamConsumer) |
JVMStarter |
withArgLines(List<String> argLines) |
JVMStarter |
withArgLines(Map<String,File> argLines) |
JVMStarter |
withJar(File jarFile) |
JVMStarter |
withJVM(String jvm) |
JVMStarter |
withSystemProperties(Map<String,String> systemProperties) |
JVMStarter |
withWorkingDirectory(File workingDirectory) |
public JVMStarter(org.apache.maven.plugin.logging.Log log)
throws IOException
IOExceptionpublic JVMStarter withJVM(String jvm)
public JVMStarter withJar(File jarFile)
public JVMStarter withWorkingDirectory(File workingDirectory)
public JVMStarter withArgLines(List<String> argLines)
public JVMStarter withArgLines(Map<String,File> argLines)
public JVMStarter withSystemProperties(Map<String,String> systemProperties)
public JVMStarter addEnvironmentVariables(Map<String,String> environmentVariables)
public int execute(org.apache.maven.shared.utils.cli.StreamConsumer outStreamConsumer,
org.apache.maven.shared.utils.cli.StreamConsumer errStreamConsumer)
throws org.apache.maven.shared.utils.cli.CommandLineException
org.apache.maven.shared.utils.cli.CommandLineExceptionCopyright © 2019. All rights reserved.