public class ForkConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FORK_ALWAYS |
static java.lang.String |
FORK_NEVER |
static java.lang.String |
FORK_ONCE |
| Constructor and Description |
|---|
ForkConfiguration(Classpath bootClasspathConfiguration,
java.lang.String forkMode,
java.io.File tmpDir) |
| Modifier and Type | Method and Description |
|---|---|
org.codehaus.plexus.util.cli.Commandline |
createCommandLine(java.util.List classPath,
boolean useJar) |
org.codehaus.plexus.util.cli.Commandline |
createCommandLine(java.util.List classPath,
ClassLoaderConfiguration classpathConfiguration) |
java.io.File |
createJar(java.util.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() |
java.lang.String |
getDebugLine() |
java.lang.String |
getForkMode() |
java.util.Properties |
getSystemProperties() |
java.io.File |
getTempDirectory() |
boolean |
isDebug() |
boolean |
isForking() |
void |
setArgLine(java.lang.String argLine) |
void |
setDebug(boolean debug) |
void |
setDebugLine(java.lang.String debugLine) |
void |
setEnvironmentVariables(java.util.Map environmentVariables) |
void |
setJvmExecutable(java.lang.String jvmExecutable) |
void |
setSystemProperties(java.util.Properties systemProperties) |
void |
setTempDirectory(java.io.File tempDirectory) |
void |
setWorkingDirectory(java.io.File workingDirectory) |
java.lang.String |
stripNewLines(java.lang.String argline) |
public static final java.lang.String FORK_ONCE
public static final java.lang.String FORK_ALWAYS
public static final java.lang.String FORK_NEVER
public ForkConfiguration(Classpath bootClasspathConfiguration, java.lang.String forkMode, java.io.File tmpDir)
public Classpath getBootClasspath()
public boolean isForking()
public void setSystemProperties(java.util.Properties systemProperties)
public void setJvmExecutable(java.lang.String jvmExecutable)
public void setArgLine(java.lang.String argLine)
public void setDebugLine(java.lang.String debugLine)
public void setEnvironmentVariables(java.util.Map environmentVariables)
public void setWorkingDirectory(java.io.File workingDirectory)
public void setTempDirectory(java.io.File tempDirectory)
public java.lang.String getForkMode()
public java.util.Properties getSystemProperties()
public org.codehaus.plexus.util.cli.Commandline createCommandLine(java.util.List classPath,
ClassLoaderConfiguration classpathConfiguration)
throws SurefireBooterForkException
classPath - cla the classpath argumentsclasspathConfiguration - the classpath configurationSurefireBooterForkException - when unable to perform the forkpublic org.codehaus.plexus.util.cli.Commandline createCommandLine(java.util.List classPath,
boolean useJar)
throws SurefireBooterForkException
SurefireBooterForkExceptionpublic java.io.File createJar(java.util.List classPath)
throws java.io.IOException
classPath - List<String> of all classpath elements.java.io.IOException - When a file operation fails.public void setDebug(boolean debug)
public boolean isDebug()
public java.lang.String stripNewLines(java.lang.String argline)
public java.lang.String getDebugLine()
public java.io.File getTempDirectory()
Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.