public class ForkConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FORK_ALWAYS |
static String |
FORK_NEVER |
static String |
FORK_ONCE |
static String |
FORK_PERTHREAD |
Constructor and Description |
---|
ForkConfiguration(Classpath bootClasspathConfiguration,
File tmpDir,
String debugLine,
String jvmExecutable,
File workingDirectory,
String argLine,
Map<String,String> environmentVariables,
boolean debugEnabled,
int forkCount) |
Modifier and Type | Method and Description |
---|---|
org.codehaus.plexus.util.cli.Commandline |
createCommandLine(List<String> classPath,
boolean useJar,
boolean shadefire) |
org.codehaus.plexus.util.cli.Commandline |
createCommandLine(List<String> classPath,
ClassLoaderConfiguration classpathConfiguration,
boolean shadefire) |
File |
createJar(List<String> 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() |
static String |
getEffectiveForkMode(String forkMode) |
int |
getForkCount() |
File |
getTempDirectory() |
boolean |
isDebug() |
String |
stripNewLines(String argline) |
public static final String FORK_ONCE
public static final String FORK_ALWAYS
public static final String FORK_NEVER
public static final String FORK_PERTHREAD
public Classpath getBootClasspath()
public org.codehaus.plexus.util.cli.Commandline createCommandLine(List<String> 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<String> classPath, boolean useJar, boolean shadefire) throws SurefireBooterForkException
SurefireBooterForkException
public File createJar(List<String> classPath) throws IOException
classPath
- List<String> of all classpath elements.IOException
- When a file operation fails.public boolean isDebug()
public String getDebugLine()
public File getTempDirectory()
public int getForkCount()
Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.