Revision: 15218
          http://gate.svn.sourceforge.net/gate/?rev=15218&view=rev
Author:   johann_p
Date:     2012-01-25 17:38:09 +0000 (Wed, 25 Jan 2012)
Log Message:
-----------
Make the repository id required for the query command.

Modified Paths:
--------------
    
gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/SesameCLI.java

Modified: 
gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/SesameCLI.java
===================================================================
--- 
gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/SesameCLI.java 
    2012-01-25 17:32:45 UTC (rev 15217)
+++ 
gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/SesameCLI.java 
    2012-01-25 17:38:09 UTC (rev 15218)
@@ -145,7 +145,7 @@
     }
     if (repo != null) {
       mManager.openRepository(repo);
-    }
+    } 
   }
 
   private static void do_clear() {
@@ -161,6 +161,10 @@
   }
    
  private static void do_query() {
+    if(optionId == null) {
+      System.err.println("Repository id (--id or -i) is needed");
+      System.exit(1);
+    }
     setManager(optionDir,optionUrl,optionId);
     String optionFrom = "file";
     if (options.isFrom()) {

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


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to