Class DefaultForkConfiguration

    • 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,
                                           boolean debug,
                                           int forkCount,
                                           boolean reuseForks,
                                           @Nonnull
                                           Platform pluginPlatform,
                                           @Nonnull
                                           org.apache.maven.plugin.surefire.log.api.ConsoleLogger log)
    • Method Detail

      • resolveClasspath

        protected abstract void resolveClasspath​(@Nonnull
                                                 OutputStreamFlushableCommandline cli,
                                                 @Nonnull
                                                 java.lang.String booterThatHasMainMethod,
                                                 @Nonnull
                                                 org.apache.maven.surefire.booter.StartupConfiguration config)
                                          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)
      • createCommandLine

        @Nonnull
        public OutputStreamFlushableCommandline createCommandLine​(@Nonnull
                                                                  org.apache.maven.surefire.booter.StartupConfiguration config,
                                                                  int forkNumber)
                                                           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
        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
      • toCompleteClasspath

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