You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2020/05/14 00:04:50 UTC

[maven-surefire] branch SUREFIRE-1570 updated: fixed impl

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

tibordigana pushed a commit to branch SUREFIRE-1570
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/SUREFIRE-1570 by this push:
     new f51fa30  fixed impl
f51fa30 is described below

commit f51fa301e04d56acfed916b8238ea7327d69ea5a
Author: tibordigana <ti...@apache.org>
AuthorDate: Thu May 14 02:04:42 2020 +0200

    fixed impl
---
 .../java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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 d83ed20..117d1eb 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
@@ -1390,8 +1390,7 @@ public abstract class AbstractSurefireMojo
 
         if ( mainBuildPath.isDirectory() )
         {
-            mainBuildPath = new File( mainBuildPath, "module-info.class" );
-            if ( !mainBuildPath.exists() )
+            if ( !new File( mainBuildPath, "module-info.class" ).exists() )
             {
                 return null;
             }