geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r546793 - /geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java
Date Wed, 13 Jun 2007 09:47:58 GMT
Author: vamsic007
Date: Wed Jun 13 02:47:57 2007
New Revision: 546793

URL: http://svn.apache.org/viewvc?view=rev&rev=546793
Log:
GERONIMO-3242 Version not considered during dependency resolution for plugins
  o Added a check if the version specified is there in the available versions then download
that
  o Thanks Manu for supplying the patch

Modified:
    geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java

Modified: geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java?view=diff&rev=546793&r1=546792&r2=546793
==============================================================================
--- geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java
(original)
+++ geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java
Wed Jun 13 02:47:57 2007
@@ -1098,7 +1098,12 @@
         for (int i = 0; i < available.length; i++) {
             available[i] = new Version(getText(list.item(i)));
         }
-        Arrays.sort(available);
+        List availableList = Arrays.asList(available);
+        if(availableList.contains(query.getVersion())){
+            available = new Version[]{query.getVersion()};
+        } else {
+            Arrays.sort(available);
+        }
         for(int i=available.length-1; i>=0; i--) {
             Version version = available[i];
             URL metadataURL = new URL(url.toString()+base+"/"+version+"/maven-metadata.xml");



Mime
View raw message