geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jb...@apache.org
Subject svn commit: r673785 - /geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/repository/DefaultArtifactResolver.java
Date Thu, 03 Jul 2008 20:11:34 GMT
Author: jbohn
Date: Thu Jul  3 13:11:34 2008
New Revision: 673785

URL: http://svn.apache.org/viewvc?rev=673785&view=rev
Log:
GERONIMO-4182 Include aliases when querying the repository for an artifact

Modified:
    geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/repository/DefaultArtifactResolver.java

Modified: geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/repository/DefaultArtifactResolver.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/repository/DefaultArtifactResolver.java?rev=673785&r1=673784&r2=673785&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/repository/DefaultArtifactResolver.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/repository/DefaultArtifactResolver.java
Thu Jul  3 13:11:34 2008
@@ -78,6 +78,11 @@
     }
 
     public Artifact[] queryArtifacts(Artifact artifact) {
+        //see if there is an explicit resolution for this artifact.
+        Artifact deAliased = explicitResolution.get(artifact);
+        if (deAliased != null) {
+            artifact = deAliased;
+        }
         LinkedHashSet<Artifact> set = new LinkedHashSet<Artifact>();
         for (ListableRepository repository : repositories) {
             set.addAll(repository.list(artifact));



Mime
View raw message