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
- Since:
- 2.21.0.Jigsaw
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
Fields inherited from class org.apache.maven.plugin.surefire.booterclient.ForkConfiguration
DEFAULT_PROVIDER_CLASS -
Constructor Summary
ConstructorsConstructorDescriptionJarManifestForkConfiguration(Classpath bootClasspath, File tempDirectory, String debugLine, File workingDirectory, Properties modelProperties, String argLine, Map<String, String> environmentVariables, String[] excludedEnvironmentVariables, boolean debug, int forkCount, boolean reuseForks, Platform pluginPlatform, ConsoleLogger log) -
Method Summary
Modifier and TypeMethodDescriptionprivate FileCreate 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 String(package private) static Stringrelativize(Path parent, Path child) protected voidresolveClasspath(OutputStreamFlushableCommandline cli, String booterThatHasMainMethod, StartupConfiguration config, File dumpLogDirectory) (package private) static StringtoAbsoluteUri(Path absolutePath) (package private) static JarManifestForkConfiguration.ClasspathElementUritoClasspathElementUri(Path parent, Path classPathElement, File dumpLogDirectory, boolean dumpError) Methods inherited from class org.apache.maven.plugin.surefire.booterclient.AbstractClasspathForkConfiguration
extendJvmArgLineMethods inherited from class org.apache.maven.plugin.surefire.booterclient.DefaultForkConfiguration
createCommandLine, getArgLine, getBooterClasspath, getDebugLine, getEnvironmentVariables, getExcludedEnvironmentVariables, getForkCount, getJdkForTests, getLogger, getModelProperties, getPluginPlatform, getTempDirectory, getWorkingDirectory, isDebug, isReuseForks, toCompleteClasspath
-
Constructor Details
-
JarManifestForkConfiguration
public JarManifestForkConfiguration(@Nonnull Classpath bootClasspath, @Nonnull File tempDirectory, @Nullable String debugLine, @Nonnull File workingDirectory, @Nonnull Properties modelProperties, @Nullable String argLine, @Nonnull Map<String, String> environmentVariables, @Nonnull String[] excludedEnvironmentVariables, boolean debug, int forkCount, boolean reuseForks, @Nonnull Platform pluginPlatform, @Nonnull ConsoleLogger log)
-
-
Method Details
-
resolveClasspath
protected void resolveClasspath(@Nonnull OutputStreamFlushableCommandline cli, @Nonnull String booterThatHasMainMethod, @Nonnull StartupConfiguration config, @Nonnull File dumpLogDirectory) throws SurefireBooterForkException - Specified by:
resolveClasspathin classDefaultForkConfiguration- Throws:
SurefireBooterForkException
-
createJar
@Nonnull private File createJar(@Nonnull List<String> classPath, @Nonnull String startClassName, @Nonnull File dumpLogDirectory) throws 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:
IOException- When a file operation fails.
-
relativize
- Throws:
IllegalArgumentException
-
toAbsoluteUri
-
toClasspathElementUri
static JarManifestForkConfiguration.ClasspathElementUri toClasspathElementUri(@Nonnull Path parent, @Nonnull Path classPathElement, @Nonnull File dumpLogDirectory, boolean dumpError) -
escapeUri
-