org.apache.maven.plugin.surefire.booterclient
Class ForkConfiguration
java.lang.Object
org.apache.maven.plugin.surefire.booterclient.ForkConfiguration
public class ForkConfiguration
- extends java.lang.Object
Configuration for forking tests.
- Author:
- Brett Porter, Kenney Westerhof, Kristian Rosenvold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORK_ONCE
public static final java.lang.String FORK_ONCE
- See Also:
- Constant Field Values
FORK_ALWAYS
public static final java.lang.String FORK_ALWAYS
- See Also:
- Constant Field Values
FORK_NEVER
public static final java.lang.String FORK_NEVER
- See Also:
- Constant Field Values
ForkConfiguration
public ForkConfiguration(Classpath bootClasspathConfiguration,
java.lang.String forkMode,
java.io.File tmpDir)
getBootClasspath
public Classpath getBootClasspath()
isForking
public boolean isForking()
setSystemProperties
public void setSystemProperties(java.util.Properties systemProperties)
setJvmExecutable
public void setJvmExecutable(java.lang.String jvmExecutable)
setArgLine
public void setArgLine(java.lang.String argLine)
setDebugLine
public void setDebugLine(java.lang.String debugLine)
setEnvironmentVariables
public void setEnvironmentVariables(java.util.Map environmentVariables)
setWorkingDirectory
public void setWorkingDirectory(java.io.File workingDirectory)
setTempDirectory
public void setTempDirectory(java.io.File tempDirectory)
getForkMode
public java.lang.String getForkMode()
getSystemProperties
public java.util.Properties getSystemProperties()
createCommandLine
public org.codehaus.plexus.util.cli.Commandline createCommandLine(java.util.List classPath,
ClassLoaderConfiguration classpathConfiguration)
throws SurefireBooterForkException
- Parameters:
classPath
- cla the classpath argumentsclasspathConfiguration
- the classpath configuration
- Returns:
- A commandline
- Throws:
SurefireBooterForkException
- when unable to perform the fork
createCommandLine
public org.codehaus.plexus.util.cli.Commandline createCommandLine(java.util.List classPath,
boolean useJar)
throws SurefireBooterForkException
- Throws:
SurefireBooterForkException
createJar
public java.io.File createJar(java.util.List classPath)
throws java.io.IOException
- Create a jar with just a manifest containing a Main-Class entry for BooterConfiguration and a Class-Path entry
for all classpath elements.
- Parameters:
classPath
- List<String> of all classpath elements.
- Returns:
- The file pointint to the jar
- Throws:
java.io.IOException
- When a file operation fails.
setDebug
public void setDebug(boolean debug)
isDebug
public boolean isDebug()
stripNewLines
public java.lang.String stripNewLines(java.lang.String argline)
getDebugLine
public java.lang.String getDebugLine()
getTempDirectory
public java.io.File getTempDirectory()
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.