Class DefaultForkConfiguration

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DefaultForkConfiguration​(org.apache.maven.surefire.booter.Classpath booterClasspath, 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, java.lang.String[] excludedEnvironmentVariables, boolean debug, int forkCount, boolean reuseForks, Platform pluginPlatform, org.apache.maven.plugin.surefire.log.api.ConsoleLogger log, org.apache.maven.surefire.extensions.ForkNodeFactory forkNodeFactory)  
    • Constructor Detail

      • DefaultForkConfiguration

        protected DefaultForkConfiguration​(@Nonnull
                                           org.apache.maven.surefire.booter.Classpath booterClasspath,
                                           @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,
                                           @Nonnull
                                           java.lang.String[] excludedEnvironmentVariables,
                                           boolean debug,
                                           int forkCount,
                                           boolean reuseForks,
                                           @Nonnull
                                           Platform pluginPlatform,
                                           @Nonnull
                                           org.apache.maven.plugin.surefire.log.api.ConsoleLogger log,
                                           @Nonnull
                                           org.apache.maven.surefire.extensions.ForkNodeFactory forkNodeFactory)
    • Method Detail

      • resolveClasspath

        protected abstract void resolveClasspath​(@Nonnull
                                                 Commandline cli,
                                                 @Nonnull
                                                 java.lang.String booterThatHasMainMethod,
                                                 @Nonnull
                                                 org.apache.maven.surefire.booter.StartupConfiguration config,
                                                 @Nonnull
                                                 java.io.File dumpLogDirectory)
                                          throws org.apache.maven.surefire.booter.SurefireBooterForkException
        Throws:
        org.apache.maven.surefire.booter.SurefireBooterForkException
      • extendJvmArgLine

        @Nonnull
        protected java.lang.String extendJvmArgLine​(@Nonnull
                                                    java.lang.String jvmArgLine)
      • getForkNodeFactory

        @Nonnull
        public final org.apache.maven.surefire.extensions.ForkNodeFactory getForkNodeFactory()
        Specified by:
        getForkNodeFactory in class ForkConfiguration
      • createCommandLine

        @Nonnull
        public Commandline createCommandLine​(@Nonnull
                                             org.apache.maven.surefire.booter.StartupConfiguration config,
                                             int forkNumber,
                                             @Nonnull
                                             java.io.File dumpLogDirectory)
                                      throws org.apache.maven.surefire.booter.SurefireBooterForkException
        Specified by:
        createCommandLine in class ForkConfiguration
        Parameters:
        config - The startup configuration
        forkNumber - index of forked JVM, to be the replacement in the argLine
        dumpLogDirectory - directory for dump log file
        Returns:
        CommandLine able to flush entire command going to be sent to forked JVM
        Throws:
        org.apache.maven.surefire.booter.SurefireBooterForkException - when unable to perform the fork
      • getLogger

        protected org.apache.maven.plugin.surefire.log.api.ConsoleLogger getLogger()
      • toCompleteClasspath

        @Nonnull
        protected java.util.List<java.lang.String> toCompleteClasspath​(@Nonnull
                                                                       org.apache.maven.surefire.booter.StartupConfiguration conf)
                                                                throws org.apache.maven.surefire.booter.SurefireBooterForkException
        Throws:
        org.apache.maven.surefire.booter.SurefireBooterForkException