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, ForkNodeFactory forkNodeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprivate File
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 String
(package private) static String
relativize
(Path parent, Path child) protected void
resolveClasspath
(Commandline cli, String booterThatHasMainMethod, StartupConfiguration config, File dumpLogDirectory) (package private) static String
toAbsoluteUri
(Path absolutePath) (package private) static JarManifestForkConfiguration.ClasspathElementUri
toClasspathElementUri
(Path parent, Path classPathElement, File dumpLogDirectory, boolean dumpError) 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, getExcludedEnvironmentVariables, getForkCount, getForkNodeFactory, 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, @Nonnull ForkNodeFactory forkNodeFactory)
-
-
Method Details
-
resolveClasspath
protected void resolveClasspath(@Nonnull Commandline cli, @Nonnull String booterThatHasMainMethod, @Nonnull StartupConfiguration config, @Nonnull File dumpLogDirectory) throws SurefireBooterForkException - Specified by:
resolveClasspath
in 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
-