public final class JarManifestForkConfiguration extends AbstractClasspathForkConfiguration
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
JarManifestForkConfiguration.ClasspathElementUri |
DEFAULT_PROVIDER_CLASS| Constructor and Description |
|---|
JarManifestForkConfiguration(Classpath bootClasspath,
java.io.File tempDirectory,
java.lang.String debugLine,
java.io.File workingDirectory,
java.util.Properties modelProperties,
java.lang.String argLine,
java.util.Map<java.lang.String,java.lang.String> environmentVariables,
boolean debug,
int forkCount,
boolean reuseForks,
Platform pluginPlatform,
ConsoleLogger log) |
| Modifier and Type | Method and Description |
|---|---|
private java.io.File |
createJar(java.util.List<java.lang.String> classPath,
java.lang.String startClassName,
java.io.File dumpLogDirectory)
Create a jar with just a manifest containing a Main-Class entry for BooterConfiguration and a Class-Path entry
for all classpath elements.
|
(package private) static java.lang.String |
relativize(java.nio.file.Path parent,
java.nio.file.Path child) |
protected void |
resolveClasspath(OutputStreamFlushableCommandline cli,
java.lang.String booterThatHasMainMethod,
StartupConfiguration config,
java.io.File dumpLogDirectory) |
(package private) static java.lang.String |
toAbsoluteUri(java.nio.file.Path absolutePath) |
(package private) static JarManifestForkConfiguration.ClasspathElementUri |
toClasspathElementUri(java.nio.file.Path parent,
java.nio.file.Path classPathElement,
java.io.File dumpLogDirectory,
boolean dumpError) |
extendJvmArgLinecreateCommandLine, getArgLine, getBooterClasspath, getDebugLine, getEnvironmentVariables, getForkCount, getJdkForTests, getLogger, getModelProperties, getPluginPlatform, getTempDirectory, getWorkingDirectory, isDebug, isReuseForks, toCompleteClasspathpublic JarManifestForkConfiguration(@Nonnull
Classpath bootClasspath,
@Nonnull
java.io.File tempDirectory,
@Nullable
java.lang.String debugLine,
@Nonnull
java.io.File workingDirectory,
@Nonnull
java.util.Properties modelProperties,
@Nullable
java.lang.String argLine,
@Nonnull
java.util.Map<java.lang.String,java.lang.String> environmentVariables,
boolean debug,
int forkCount,
boolean reuseForks,
@Nonnull
Platform pluginPlatform,
@Nonnull
ConsoleLogger log)
protected void resolveClasspath(@Nonnull
OutputStreamFlushableCommandline cli,
@Nonnull
java.lang.String booterThatHasMainMethod,
@Nonnull
StartupConfiguration config,
@Nonnull
java.io.File dumpLogDirectory)
throws SurefireBooterForkException
resolveClasspath in class DefaultForkConfigurationSurefireBooterForkException@Nonnull
private java.io.File createJar(@Nonnull
java.util.List<java.lang.String> classPath,
@Nonnull
java.lang.String startClassName,
@Nonnull
java.io.File dumpLogDirectory)
throws java.io.IOException
classPath - List<String> of all classpath elements.startClassName - The class name to start (main-class)java.io.IOException - When a file operation fails.static java.lang.String relativize(@Nonnull
java.nio.file.Path parent,
@Nonnull
java.nio.file.Path child)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionstatic java.lang.String toAbsoluteUri(@Nonnull
java.nio.file.Path absolutePath)
static JarManifestForkConfiguration.ClasspathElementUri toClasspathElementUri(@Nonnull java.nio.file.Path parent, @Nonnull java.nio.file.Path classPathElement, @Nonnull java.io.File dumpLogDirectory, boolean dumpError) throws java.io.IOException
java.io.IOException