public abstract class DefaultForkConfiguration extends ForkConfiguration
Modifier | Constructor and Description |
---|---|
protected |
DefaultForkConfiguration(Classpath booterClasspath,
File tempDirectory,
String debugLine,
File workingDirectory,
Properties modelProperties,
String argLine,
Map<String,String> environmentVariables,
boolean debug,
int forkCount,
boolean reuseForks,
Platform pluginPlatform,
org.apache.maven.plugin.surefire.log.api.ConsoleLogger log) |
Modifier and Type | Method and Description |
---|---|
OutputStreamFlushableCommandline |
createCommandLine(StartupConfiguration config,
int forkNumber) |
protected String |
extendJvmArgLine(String jvmArgLine) |
protected String |
getArgLine() |
protected Classpath |
getBooterClasspath() |
protected String |
getDebugLine() |
protected Map<String,String> |
getEnvironmentVariables() |
protected int |
getForkCount() |
protected JdkAttributes |
getJdkForTests() |
protected Properties |
getModelProperties() |
protected Platform |
getPluginPlatform() |
File |
getTempDirectory() |
protected File |
getWorkingDirectory() |
protected boolean |
isDebug() |
protected boolean |
isReuseForks() |
protected abstract void |
resolveClasspath(OutputStreamFlushableCommandline cli,
String booterThatHasMainMethod,
StartupConfiguration config) |
protected List<String> |
toCompleteClasspath(StartupConfiguration conf) |
protected DefaultForkConfiguration(@Nonnull Classpath booterClasspath, @Nonnull File tempDirectory, @Nullable String debugLine, @Nonnull File workingDirectory, @Nonnull Properties modelProperties, @Nullable String argLine, @Nonnull Map<String,String> environmentVariables, boolean debug, int forkCount, boolean reuseForks, @Nonnull Platform pluginPlatform, @Nonnull org.apache.maven.plugin.surefire.log.api.ConsoleLogger log)
protected abstract void resolveClasspath(@Nonnull OutputStreamFlushableCommandline cli, @Nonnull String booterThatHasMainMethod, @Nonnull StartupConfiguration config) throws SurefireBooterForkException
SurefireBooterForkException
@Nonnull public OutputStreamFlushableCommandline createCommandLine(@Nonnull StartupConfiguration config, int forkNumber) throws SurefireBooterForkException
createCommandLine
in class ForkConfiguration
config
- The startup configurationforkNumber
- index of forked JVM, to be the replacement in the argLineSurefireBooterForkException
- when unable to perform the fork@Nonnull protected List<String> toCompleteClasspath(StartupConfiguration conf) throws SurefireBooterForkException
SurefireBooterForkException
@Nonnull public File getTempDirectory()
getTempDirectory
in class ForkConfiguration
@Nullable protected String getDebugLine()
getDebugLine
in class ForkConfiguration
@Nonnull protected File getWorkingDirectory()
getWorkingDirectory
in class ForkConfiguration
@Nonnull protected Properties getModelProperties()
getModelProperties
in class ForkConfiguration
@Nullable protected String getArgLine()
getArgLine
in class ForkConfiguration
@Nonnull protected Map<String,String> getEnvironmentVariables()
getEnvironmentVariables
in class ForkConfiguration
protected boolean isDebug()
isDebug
in class ForkConfiguration
protected int getForkCount()
getForkCount
in class ForkConfiguration
protected boolean isReuseForks()
isReuseForks
in class ForkConfiguration
@Nonnull protected Platform getPluginPlatform()
getPluginPlatform
in class ForkConfiguration
@Nonnull protected JdkAttributes getJdkForTests()
getJdkForTests
in class ForkConfiguration
@Nonnull protected Classpath getBooterClasspath()
getBooterClasspath
in class ForkConfiguration
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.