Revision: 14671
          http://gate.svn.sourceforge.net/gate/?rev=14671&view=rev
Author:   markagreenwood
Date:     2011-12-05 11:29:40 +0000 (Mon, 05 Dec 2011)
Log Message:
-----------
now we only support plugin info in the creole.xml files and not in the site.xml 
so that info doesn't have to be duplicated and we lessen the risk of things 
being out of sync

Modified Paths:
--------------
    gate/trunk/src/gate/gui/creole/manager/CreolePlugin.java
    gate/trunk/src/gate/gui/creole/manager/RemoteUpdateSite.java

Modified: gate/trunk/src/gate/gui/creole/manager/CreolePlugin.java
===================================================================
--- gate/trunk/src/gate/gui/creole/manager/CreolePlugin.java    2011-12-05 
10:57:41 UTC (rev 14670)
+++ gate/trunk/src/gate/gui/creole/manager/CreolePlugin.java    2011-12-05 
11:29:40 UTC (rev 14671)
@@ -54,11 +54,9 @@
       } catch(Exception e) {
         throw new RuntimeException(e);
       }
+    } else {
+      throw new RuntimeException("CREOLE Directory URL Must Be Specified!");
     }
-
-    compatible = VersionComparator.isCompatible(gateMin, gateMax);
-
-    return this;
   }
 
   @Override
@@ -124,6 +122,7 @@
     compatible = VersionComparator.isCompatible(this.gateMin, this.gateMax);
   }
 
+  @Override
   public String toString() {
     return getName() + " v" + version;
   }

Modified: gate/trunk/src/gate/gui/creole/manager/RemoteUpdateSite.java
===================================================================
--- gate/trunk/src/gate/gui/creole/manager/RemoteUpdateSite.java        
2011-12-05 10:57:41 UTC (rev 14670)
+++ gate/trunk/src/gate/gui/creole/manager/RemoteUpdateSite.java        
2011-12-05 11:29:40 UTC (rev 14671)
@@ -49,14 +49,8 @@
         xs.setClassLoader(RemoteUpdateSite.class.getClassLoader());
         xs.alias("UpdateSite", List.class);
         xs.alias("CreolePlugin", CreolePlugin.class);
-        xs.useAttributeFor(CreolePlugin.class, "id");
-        xs.useAttributeFor(CreolePlugin.class, "description");
-        xs.useAttributeFor(CreolePlugin.class, "version");
-        xs.useAttributeFor(CreolePlugin.class, "downloadURL");
         xs.useAttributeFor(CreolePlugin.class, "url");
-        xs.useAttributeFor(CreolePlugin.class, "gateMin");
-        xs.useAttributeFor(CreolePlugin.class, "gateMax");
-
+        
         URLConnection conn =
                 (new URL(uri.toURL(), "site.xml")).openConnection();
         conn.setConnectTimeout(5000);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to