You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/03/30 15:37:53 UTC

[maven] 02/18: Do not check whether calculated directory actually exists

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

rfscholte pushed a commit to branch MNG-4660
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 359f479e5bfa499d258285a1b9f17742abe667e3
Author: Maarten Mulders <ma...@infosupport.com>
AuthorDate: Wed Jan 29 21:35:10 2020 +0100

    Do not check whether calculated directory actually exists
---
 maven-core/src/main/java/org/apache/maven/ReactorReader.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/maven-core/src/main/java/org/apache/maven/ReactorReader.java b/maven-core/src/main/java/org/apache/maven/ReactorReader.java
index b9434ee..f840cb5 100644
--- a/maven-core/src/main/java/org/apache/maven/ReactorReader.java
+++ b/maven-core/src/main/java/org/apache/maven/ReactorReader.java
@@ -179,11 +179,7 @@ class ReactorReader
                 String type = artifact.getProperty( "type", "" );
                 if ( COMPILE_PHASE_TYPES.contains( type ) )
                 {
-                    File outputDirectory = new File( project.getBuild().getOutputDirectory() );
-                    if ( outputDirectory.exists() )
-                    {
-                        return outputDirectory;
-                    }
+                    return new File( project.getBuild().getOutputDirectory() );
                 }
             }
         }