Class ForkConfiguration
- java.lang.Object
-
- org.apache.maven.plugin.surefire.booterclient.ForkConfiguration
-
- Direct Known Subclasses:
DefaultForkConfiguration
public abstract class ForkConfiguration extends java.lang.Object
Configuration for forking tests.
-
-
Constructor Summary
Constructors Constructor Description ForkConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Commandline
createCommandLine(org.apache.maven.surefire.booter.StartupConfiguration config, int forkNumber, java.io.File dumpLogDirectory)
protected abstract java.lang.String
getArgLine()
protected abstract org.apache.maven.surefire.booter.Classpath
getBooterClasspath()
protected abstract java.lang.String
getDebugLine()
protected abstract java.util.Map<java.lang.String,java.lang.String>
getEnvironmentVariables()
protected abstract java.lang.String[]
getExcludedEnvironmentVariables()
protected abstract int
getForkCount()
abstract org.apache.maven.surefire.extensions.ForkNodeFactory
getForkNodeFactory()
protected abstract JdkAttributes
getJdkForTests()
protected abstract java.util.Properties
getModelProperties()
protected abstract Platform
getPluginPlatform()
abstract java.io.File
getTempDirectory()
protected abstract java.io.File
getWorkingDirectory()
protected abstract boolean
isDebug()
protected abstract boolean
isReuseForks()
-
-
-
Method Detail
-
getForkNodeFactory
@Nonnull public abstract org.apache.maven.surefire.extensions.ForkNodeFactory getForkNodeFactory()
-
getTempDirectory
@Nonnull public abstract java.io.File getTempDirectory()
-
getDebugLine
@Nullable protected abstract java.lang.String getDebugLine()
-
getWorkingDirectory
@Nonnull protected abstract java.io.File getWorkingDirectory()
-
getModelProperties
@Nonnull protected abstract java.util.Properties getModelProperties()
-
getArgLine
@Nullable protected abstract java.lang.String getArgLine()
-
getEnvironmentVariables
@Nonnull protected abstract java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()
-
getExcludedEnvironmentVariables
@Nonnull protected abstract java.lang.String[] getExcludedEnvironmentVariables()
-
isDebug
protected abstract boolean isDebug()
-
getForkCount
protected abstract int getForkCount()
-
isReuseForks
protected abstract boolean isReuseForks()
-
getPluginPlatform
@Nonnull protected abstract Platform getPluginPlatform()
-
getJdkForTests
@Nonnull protected abstract JdkAttributes getJdkForTests()
-
getBooterClasspath
@Nonnull protected abstract org.apache.maven.surefire.booter.Classpath getBooterClasspath()
-
createCommandLine
@Nonnull public abstract Commandline createCommandLine(@Nonnull org.apache.maven.surefire.booter.StartupConfiguration config, int forkNumber, @Nonnull java.io.File dumpLogDirectory) throws org.apache.maven.surefire.booter.SurefireBooterForkException
- Parameters:
config
- The startup configurationforkNumber
- index of forked JVM, to be the replacement in the argLinedumpLogDirectory
- directory for dump log file- Returns:
- CommandLine able to flush entire command going to be sent to forked JVM
- Throws:
org.apache.maven.surefire.booter.SurefireBooterForkException
- when unable to perform the fork
-
-