Class JarManifestForkConfiguration
- java.lang.Object
-
- org.apache.maven.plugin.surefire.booterclient.ForkConfiguration
-
- org.apache.maven.plugin.surefire.booterclient.DefaultForkConfiguration
-
- org.apache.maven.plugin.surefire.booterclient.AbstractClasspathForkConfiguration
-
- org.apache.maven.plugin.surefire.booterclient.JarManifestForkConfiguration
-
public final class JarManifestForkConfiguration extends AbstractClasspathForkConfiguration
- Since:
- 2.21.0.Jigsaw
-
-
Field Summary
-
Fields inherited from class org.apache.maven.plugin.surefire.booterclient.ForkConfiguration
DEFAULT_PROVIDER_CLASS
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.io.File
createJar(java.util.List<java.lang.String> classPath, java.lang.String startClassName)
Create a jar with just a manifest containing a Main-Class entry for BooterConfiguration and a Class-Path entry for all classpath elements.protected void
resolveClasspath(OutputStreamFlushableCommandline cli, java.lang.String booterThatHasMainMethod, StartupConfiguration config)
-
Methods inherited from class org.apache.maven.plugin.surefire.booterclient.AbstractClasspathForkConfiguration
extendJvmArgLine
-
Methods inherited from class org.apache.maven.plugin.surefire.booterclient.DefaultForkConfiguration
createCommandLine, getArgLine, getBooterClasspath, getDebugLine, getEnvironmentVariables, getForkCount, getJdkForTests, getModelProperties, getPluginPlatform, getTempDirectory, getWorkingDirectory, isDebug, isReuseForks, toCompleteClasspath
-
-
-
-
Constructor Detail
-
JarManifestForkConfiguration
public 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)
-
-
Method Detail
-
resolveClasspath
protected void resolveClasspath(@Nonnull OutputStreamFlushableCommandline cli, @Nonnull java.lang.String booterThatHasMainMethod, @Nonnull StartupConfiguration config) throws SurefireBooterForkException
- Specified by:
resolveClasspath
in classDefaultForkConfiguration
- Throws:
SurefireBooterForkException
-
createJar
@Nonnull private java.io.File createJar(@Nonnull java.util.List<java.lang.String> classPath, @Nonnull java.lang.String startClassName) throws java.io.IOException
Create a jar with just a manifest containing a Main-Class entry for BooterConfiguration and a Class-Path entry for all classpath elements.- Parameters:
classPath
- List<String> of all classpath elements.startClassName
- The class name to start (main-class)- Returns:
- file of the jar
- Throws:
java.io.IOException
- When a file operation fails.
-
-