This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch feature/log-starter-with-fork-configuration
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 8861f506e4af75dde767fa0b45f25b3303341243
Author: Konrad Windszus <[email protected]>
AuthorDate: Wed Jun 21 20:46:48 2023 +0200

    [SUREFIRE-2182] Log starter implementation on DEBUG level
    
    For fork starter log the underlying configuration class name as well
---
 .../org/apache/maven/plugin/surefire/AbstractSurefireMojo.java     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index 4286b90ba..6b735e6ee 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -265,8 +265,10 @@ public abstract class AbstractSurefireMojo extends 
AbstractMojo implements Suref
 
     /**
      * Additional elements to be appended to the classpath.
+     * Each item must have the format
      *
      * @since 2.4
+     * @see <a 
href="https://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html";>Java
 Class Path</a>
      */
     @Parameter(property = "maven.test.additionalClasspath")
     private String[] additionalClasspathElements;
@@ -1166,7 +1168,7 @@ public abstract class AbstractSurefireMojo extends 
AbstractMojo implements Suref
                     (Properties) System.getProperties().clone();
             try {
                 createCopyAndReplaceForkNumPlaceholder(effectiveProperties, 
1).copyToSystemProperties();
-
+                getConsoleLogger().debug("Using in-process starter");
                 InPluginVMSurefireStarter surefireStarter = 
createInprocessStarter(
                         provider,
                         classLoaderConfiguration,
@@ -1181,6 +1183,9 @@ public abstract class AbstractSurefireMojo extends 
AbstractMojo implements Suref
         } else {
             ForkConfiguration forkConfiguration = 
createForkConfiguration(platform, resolvedJavaModularityResult);
             if (getConsoleLogger().isDebugEnabled()) {
+                getConsoleLogger()
+                        .debug("Using fork starter with configuration "
+                                + forkConfiguration.getClass().getName());
                 showMap(getEnvironmentVariables(), "environment variable");
                 showArray(getExcludedEnvironmentVariables(), "excluded 
environment variable");
             }

Reply via email to