public class ForkConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FORK_ALWAYS |
static String |
FORK_NEVER |
static String |
FORK_ONCE |
Constructor and Description |
---|
ForkConfiguration(Classpath bootClasspathConfiguration,
String forkMode,
File tmpDir) |
Modifier and Type | Method and Description |
---|---|
org.codehaus.plexus.util.cli.Commandline |
createCommandLine(List classPath,
boolean useJar,
boolean shadefire) |
org.codehaus.plexus.util.cli.Commandline |
createCommandLine(List classPath,
ClassLoaderConfiguration classpathConfiguration,
boolean shadefire) |
File |
createJar(List classPath)
Create a jar with just a manifest containing a Main-Class entry for BooterConfiguration and a Class-Path entry
for all classpath elements.
|
Classpath |
getBootClasspath() |
String |
getDebugLine() |
String |
getForkMode() |
Properties |
getSystemProperties() |
File |
getTempDirectory() |
boolean |
isDebug() |
boolean |
isForking() |
void |
setArgLine(String argLine) |
void |
setDebug(boolean debug) |
void |
setDebugLine(String debugLine) |
void |
setEnvironmentVariables(Map environmentVariables) |
void |
setJvmExecutable(String jvmExecutable) |
void |
setSystemProperties(Properties systemProperties) |
void |
setTempDirectory(File tempDirectory) |
void |
setWorkingDirectory(File workingDirectory) |
String |
stripNewLines(String argline) |
public static final String FORK_ONCE
public static final String FORK_ALWAYS
public static final String FORK_NEVER
public Classpath getBootClasspath()
public boolean isForking()
public void setSystemProperties(Properties systemProperties)
public void setJvmExecutable(String jvmExecutable)
public void setArgLine(String argLine)
public void setDebugLine(String debugLine)
public void setEnvironmentVariables(Map environmentVariables)
public void setWorkingDirectory(File workingDirectory)
public void setTempDirectory(File tempDirectory)
public String getForkMode()
public Properties getSystemProperties()
public org.codehaus.plexus.util.cli.Commandline createCommandLine(List classPath, ClassLoaderConfiguration classpathConfiguration, boolean shadefire) throws SurefireBooterForkException
classPath
- cla the classpath argumentsclasspathConfiguration
- the classpath configurationshadefire
- true if running shadefireSurefireBooterForkException
- when unable to perform the forkpublic org.codehaus.plexus.util.cli.Commandline createCommandLine(List classPath, boolean useJar, boolean shadefire) throws SurefireBooterForkException
SurefireBooterForkException
public File createJar(List classPath) throws IOException
classPath
- List<String> of all classpath elements.IOException
- When a file operation fails.public void setDebug(boolean debug)
public boolean isDebug()
public String getDebugLine()
public File getTempDirectory()
Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.