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,
Properties modelProperties,
String argLine,
Map<String,String> environmentVariables,
boolean debugEnabled,
int forkCount,
boolean reuseForks) |
Modifier and Type | Method and Description |
---|---|
OutputStreamFlushableCommandline |
createCommandLine(List<String> classPath,
StartupConfiguration startupConfiguration,
int threadNumber) |
Classpath |
getBootClasspath() |
String |
getDebugLine() |
static String |
getEffectiveForkMode(String forkMode) |
int |
getForkCount() |
File |
getTempDirectory() |
boolean |
isDebug() |
boolean |
isReuseForks() |
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 OutputStreamFlushableCommandline createCommandLine(List<String> classPath, StartupConfiguration startupConfiguration, int threadNumber) throws SurefireBooterForkException
classPath
- cla the classpath argumentsstartupConfiguration
- The startup configurationthreadNumber
- the thread number, to be the replacement in the argLine @return A commandlineSurefireBooterForkException
- when unable to perform the forkpublic boolean isDebug()
public String getDebugLine()
public File getTempDirectory()
public int getForkCount()
public boolean isReuseForks()
Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.