Revision: 20029
          http://sourceforge.net/p/gate/code/20029
Author:   markagreenwood
Date:     2017-01-31 13:43:37 +0000 (Tue, 31 Jan 2017)
Log Message:
-----------
the add ANNIE resources menu now does the right thing and pulls in via maven 
the right version of the plugin

Modified Paths:
--------------
    gate/branches/sawdust2/gate-core/src/main/java/gate/gui/MainFrame.java

Modified: gate/branches/sawdust2/gate-core/src/main/java/gate/gui/MainFrame.java
===================================================================
--- gate/branches/sawdust2/gate-core/src/main/java/gate/gui/MainFrame.java      
2017-01-31 12:41:26 UTC (rev 20028)
+++ gate/branches/sawdust2/gate-core/src/main/java/gate/gui/MainFrame.java      
2017-01-31 13:43:37 UTC (rev 20029)
@@ -4317,10 +4317,7 @@
                 @Override
                 public void actionPerformed(ActionEvent e) {
                 try {
-                  //TODO we should probably be pulling this in via Maven not a 
URL
-                  URL pluginUrl = new File(Gate.getPluginsHome(),
-                    ANNIEConstants.PLUGIN_DIR).toURI().toURL();
-                  Plugin anniePlugin = new Plugin.Directory(pluginUrl);
+                  Plugin anniePlugin = new Plugin.Maven("uk.ac.gate.plugins", 
"annie", Main.version);
                   Gate.getCreoleRegister().registerPlugin(anniePlugin);        
     
                 } catch(Exception ex) {
                   log.error("Unable to load ANNIE plugin.", ex);

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
GATE-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to