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/28 15:36:35 UTC
[maven] 02/15: 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 3ebc66563f789ce532d24f74a9197b9c61da2861
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() );
}
}
}