Revision: 13692
          http://gate.svn.sourceforge.net/gate/?rev=13692&view=rev
Author:   nirajaswani
Date:     2011-04-18 23:11:36 +0000 (Mon, 18 Apr 2011)

Log Message:
-----------
fixed a failing owlim test: if an import refers to http location, the code 
should not try to search it on a disk and try to resolve a relative path

Modified Paths:
--------------
    
gate/trunk/plugins/Ontology_OWLIM2/src/gate/creole/ontology/owlim/OWLIMServiceImpl.java

Modified: 
gate/trunk/plugins/Ontology_OWLIM2/src/gate/creole/ontology/owlim/OWLIMServiceImpl.java
===================================================================
--- 
gate/trunk/plugins/Ontology_OWLIM2/src/gate/creole/ontology/owlim/OWLIMServiceImpl.java
     2011-04-18 17:54:11 UTC (rev 13691)
+++ 
gate/trunk/plugins/Ontology_OWLIM2/src/gate/creole/ontology/owlim/OWLIMServiceImpl.java
     2011-04-18 23:11:36 UTC (rev 13692)
@@ -4925,10 +4925,13 @@
             // lets try to find out the file on local system
             int m = 0;
             boolean allFound = true;
-            for(; m < fileName.length() && m < ontoFileUrl.length(); m++) {
-              if(fileName.charAt(m) != ontoFileUrl.charAt(m)) {
-                allFound = false;
-                break;
+            if(!fileName.startsWith("http")) {
+              System.out.println(fileName + "=>" + ontoFileUrl);
+              for(; m < fileName.length() && m < ontoFileUrl.length(); m++) {
+                if(fileName.charAt(m) != ontoFileUrl.charAt(m)) {
+                  allFound = false;
+                  break;
+                }
               }
             }
 


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

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to