maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r1031612 - in /maven/shared/trunk/maven-dependency-analyzer: pom.xml src/main/java/org/apache/maven/shared/dependency/analyzer/DefaultProjectDependencyAnalyzer.java
Date Fri, 05 Nov 2010 15:02:34 GMT
Author: brianf
Date: Fri Nov  5 15:02:34 2010
New Revision: 1031612

URL: http://svn.apache.org/viewvc?rev=1031612&view=rev
Log:
MDEP-262 patch from Tobias Glerke

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

Modified: maven/shared/trunk/maven-dependency-analyzer/pom.xml
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-dependency-analyzer/pom.xml?rev=1031612&r1=1031611&r2=1031612&view=diff
==============================================================================
--- maven/shared/trunk/maven-dependency-analyzer/pom.xml (original)
+++ maven/shared/trunk/maven-dependency-analyzer/pom.xml Fri Nov  5 15:02:34 2010
@@ -24,7 +24,7 @@
   <parent>
     <groupId>org.apache.maven.shared</groupId>
     <artifactId>maven-shared-components</artifactId>
-    <version>12</version>
+    <version>16-SNAPSHOT</version>
   </parent>
 
   <groupId>org.apache.maven.shared</groupId>

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=1031612&r1=1031611&r2=1031612&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
Fri Nov  5 15:02:34 2010
@@ -38,7 +38,7 @@ import org.apache.maven.project.MavenPro
  * 
  * @author <a href="mailto:markhobson@gmail.com">Mark Hobson</a>
  * @version $Id$
- * @plexus.component role="org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzer"
+ * @plexus.component role="org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzer"
role-hint="default"
  */
 public class DefaultProjectDependencyAnalyzer
     implements ProjectDependencyAnalyzer
@@ -71,7 +71,7 @@ public class DefaultProjectDependencyAna
         {
             Map artifactClassMap = buildArtifactClassMap( project );
 
-            Set dependencyClasses = buildDependencyClasses( project );
+            Set dependencyClasses = buildDependencyClasses( project , artifactClassMap );
 
             Set declaredArtifacts = buildDeclaredArtifacts( project );
             
@@ -159,7 +159,7 @@ public class DefaultProjectDependencyAna
         return artifactClassMap;
     }
 
-    private Set buildDependencyClasses( MavenProject project )
+    protected Set buildDependencyClasses( MavenProject project , Map artifactClassMap )
         throws IOException
     {
         Set dependencyClasses = new HashSet();
@@ -212,7 +212,7 @@ public class DefaultProjectDependencyAna
         return usedArtifacts;
     }
 
-    private Artifact findArtifactForClassName( Map artifactClassMap, String className )
+    protected Artifact findArtifactForClassName( Map artifactClassMap, String className )
     {
         for ( Iterator artifactIterator = artifactClassMap.keySet().iterator(); artifactIterator.hasNext();
)
         {



Mime
View raw message