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) |
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, @Nonnull File dumpLogDirectory) throws SurefireBooterForkException
SurefireBooterForkException
@Nonnull public OutputStreamFlushableCommandline createCommandLine(@Nonnull StartupConfiguration config, int forkNumber, @Nonnull File dumpLogDirectory) throws SurefireBooterForkException
createCommandLine
in class ForkConfiguration
config
- The startup configurationforkNumber
- index of forked JVM, to be the replacement in the argLinedumpLogDirectory
- directory for dump log fileSurefireBooterForkException
- when unable to perform the forkprotected org.apache.maven.plugin.surefire.log.api.ConsoleLogger getLogger()
@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.