Class StartupConfiguration

java.lang.Object
org.apache.maven.surefire.booter.StartupConfiguration

public class StartupConfiguration extends Object
Configuration that is used by the SurefireStarter but does not make it into the provider itself.
  • Field Details

    • SUREFIRE_TEST_CLASSPATH

      private static final String SUREFIRE_TEST_CLASSPATH
      See Also:
    • providerClassName

      private final String providerClassName
    • classpathConfiguration

      private final AbstractPathConfiguration classpathConfiguration
    • classLoaderConfiguration

      private final ClassLoaderConfiguration classLoaderConfiguration
    • isForkRequested

      private final boolean isForkRequested
    • isInForkedVm

      private final boolean isInForkedVm
    • processChecker

      private final ProcessCheckerType processChecker
  • Constructor Details

  • Method Details

    • isProviderMainClass

      public boolean isProviderMainClass()
    • inForkedVm

      public static StartupConfiguration inForkedVm(String providerClassName, ClasspathConfiguration classpathConfiguration, ClassLoaderConfiguration classLoaderConfiguration, ProcessCheckerType processChecker)
    • getClasspathConfiguration

      public AbstractPathConfiguration getClasspathConfiguration()
    • useSystemClassLoader

      @Deprecated public boolean useSystemClassLoader()
      Deprecated.
    • isManifestOnlyJarRequestedAndUsable

      public boolean isManifestOnlyJarRequestedAndUsable()
    • getProviderClassName

      public String getProviderClassName()
    • getActualClassName

      public String getActualClassName()
    • stripEnd

      private static String stripEnd(String str, String strip)

      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 from
      strip - the String to remove
      Returns:
      the stripped String
    • getClassLoaderConfiguration

      public ClassLoaderConfiguration getClassLoaderConfiguration()
    • isShadefire

      public boolean isShadefire()
    • writeSurefireTestClasspathProperty

      public void writeSurefireTestClasspathProperty()
    • getProcessChecker

      public ProcessCheckerType getProcessChecker()