org.apache.maven.surefire.booter
Class ForkConfiguration

java.lang.Object
  extended by org.apache.maven.surefire.booter.ForkConfiguration

public class ForkConfiguration
extends Object

Configuration for forking tests.

Author:
Brett Porter, Kenney Westerhof

Field Summary
static String FORK_ALWAYS
           
static String FORK_NEVER
           
static String FORK_ONCE
           
 
Constructor Summary
ForkConfiguration()
           
 
Method Summary
 Commandline createCommandLine(List classPath)
          Deprecated. use the 2-arg alternative.
 Commandline createCommandLine(List classPath, boolean useJar)
           
 String getForkMode()
           
 Properties getSystemProperties()
           
 boolean isDebug()
           
 boolean isForking()
           
 boolean isUseManifestOnlyJar()
           
 boolean isUseSystemClassLoader()
           
 void setArgLine(String argLine)
           
 void setDebug(boolean debug)
           
 void setDebugLine(String debugLine)
           
 void setEnvironmentVariables(Map environmentVariables)
           
 void setForkMode(String forkMode)
           
 void setJvmExecutable(String jvmExecutable)
           
 void setSystemProperties(Properties systemProperties)
           
 void setUseManifestOnlyJar(boolean useManifestOnlyJar)
           
 void setUseSystemClassLoader(boolean useSystemClassLoader)
           
 void setWorkingDirectory(File workingDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORK_ONCE

public static final String FORK_ONCE
See Also:
Constant Field Values

FORK_ALWAYS

public static final String FORK_ALWAYS
See Also:
Constant Field Values

FORK_NEVER

public static final String FORK_NEVER
See Also:
Constant Field Values
Constructor Detail

ForkConfiguration

public ForkConfiguration()
Method Detail

setForkMode

public void setForkMode(String forkMode)

isForking

public boolean isForking()

setUseSystemClassLoader

public void setUseSystemClassLoader(boolean useSystemClassLoader)

isUseSystemClassLoader

public boolean isUseSystemClassLoader()

setSystemProperties

public void setSystemProperties(Properties systemProperties)

setJvmExecutable

public void setJvmExecutable(String jvmExecutable)

setArgLine

public void setArgLine(String argLine)

setDebugLine

public void setDebugLine(String debugLine)

setEnvironmentVariables

public void setEnvironmentVariables(Map environmentVariables)

setWorkingDirectory

public void setWorkingDirectory(File workingDirectory)

getForkMode

public String getForkMode()

getSystemProperties

public Properties getSystemProperties()

createCommandLine

public Commandline createCommandLine(List classPath)
                              throws SurefireBooterForkException
Deprecated. use the 2-arg alternative.

Throws:
SurefireBooterForkException

createCommandLine

public Commandline createCommandLine(List classPath,
                                     boolean useJar)
                              throws SurefireBooterForkException
Throws:
SurefireBooterForkException

setDebug

public void setDebug(boolean debug)

isDebug

public boolean isDebug()

setUseManifestOnlyJar

public void setUseManifestOnlyJar(boolean useManifestOnlyJar)

isUseManifestOnlyJar

public boolean isUseManifestOnlyJar()


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.