Package org.apache.maven.surefire.booter
Class StartupConfiguration
java.lang.Object
org.apache.maven.surefire.booter.StartupConfiguration
Configuration that is used by the SurefireStarter but does not make it into the provider itself.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassLoaderConfigurationprivate final AbstractPathConfigurationprivate final ProcessCheckerTypeprivate final Stringprivate static final String -
Constructor Summary
ConstructorsConstructorDescriptionStartupConfiguration(String providerClassName, AbstractPathConfiguration classpathConfiguration, ClassLoaderConfiguration classLoaderConfiguration, ProcessCheckerType processChecker, List<String[]> jpmsArguments) -
Method Summary
Modifier and TypeMethodDescriptionstatic StartupConfigurationinForkedVm(String providerClassName, ClasspathConfiguration classpathConfig, ClassLoaderConfiguration classLoaderConfig, ProcessCheckerType processChecker) booleanbooleanbooleanprivate static StringStrip any of a supplied String from the end of a String.void
-
Field Details
-
SUREFIRE_TEST_CLASSPATH
- See Also:
-
providerClassName
-
classpathConfiguration
-
classLoaderConfiguration
-
processChecker
-
jpmsArguments
-
-
Constructor Details
-
StartupConfiguration
public StartupConfiguration(@Nonnull String providerClassName, @Nonnull AbstractPathConfiguration classpathConfiguration, @Nonnull ClassLoaderConfiguration classLoaderConfiguration, ProcessCheckerType processChecker, @Nonnull List<String[]> jpmsArguments)
-
-
Method Details
-
isProviderMainClass
public boolean isProviderMainClass() -
inForkedVm
public static StartupConfiguration inForkedVm(String providerClassName, ClasspathConfiguration classpathConfig, ClassLoaderConfiguration classLoaderConfig, ProcessCheckerType processChecker) -
getClasspathConfiguration
-
isManifestOnlyJarRequestedAndUsable
public boolean isManifestOnlyJarRequestedAndUsable() -
getProviderClassName
-
getActualClassName
-
stripEnd
Strip any of a supplied String from the end of a String.
If the strip String is
null, whitespace is stripped.- Parameters:
str- the String to remove characters fromstrip- the String to remove- Returns:
- the stripped String
-
getClassLoaderConfiguration
-
isShadefire
public boolean isShadefire() -
writeSurefireTestClasspathProperty
public void writeSurefireTestClasspathProperty() -
getProcessChecker
-
getJpmsArguments
-