maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r1451090 - /maven/shared/trunk/maven-dependency-analyzer/src/main/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzer.java
Date Thu, 28 Feb 2013 04:34:01 GMT
Author: brianf
Date: Thu Feb 28 04:34:01 2013
New Revision: 1451090

URL: http://svn.apache.org/r1451090
Log:
MSHARED-276 analyzer ignores project directories in a multi-module build - don't just look
at jars, accept classes files also. Patch by henning.

Modified:
    maven/shared/trunk/maven-dependency-analyzer/src/main/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzer.java

Modified: maven/shared/trunk/maven-dependency-analyzer/src/main/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzer.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/src/main/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzer.java?rev=1451090&r1=1451089&r2=1451090&view=diff
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/src/main/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzer.java
(original)
+++ maven/shared/trunk/maven-dependency-analyzer/src/main/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzer.java
Thu Feb 28 04:34:01 2013
@@ -145,7 +145,7 @@ public class DefaultProjectDependencyAna
         {
             File file = artifact.getFile();
 
-            if ( file != null && file.getName().endsWith( ".jar" ) )
+            if ( file != null && (file.getName().endsWith( ".jar" ) || file.isDirectory()))
             {
                 URL url = file.toURL();
 



Mime
View raw message