You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by en...@apache.org on 2011/07/07 18:08:50 UTC
svn commit: r1143900 -
/incubator/stanbol/trunk/rules/manager/src/main/java/org/apache/stanbol/rules/manager/changes/RuleStoreImpl.java
Author: enridaga
Date: Thu Jul 7 16:08:50 2011
New Revision: 1143900
URL: http://svn.apache.org/viewvc?rev=1143900&view=rev
Log:
We change how the default rule store file location is set, giving a string result from a URI instance instead of a FS location. This attribute, passed as string, is then used to create the physical IRI of the ontology. On windows platforms this caused the problems described in STANBOL-255.
Modified:
incubator/stanbol/trunk/rules/manager/src/main/java/org/apache/stanbol/rules/manager/changes/RuleStoreImpl.java
Modified: incubator/stanbol/trunk/rules/manager/src/main/java/org/apache/stanbol/rules/manager/changes/RuleStoreImpl.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/rules/manager/src/main/java/org/apache/stanbol/rules/manager/changes/RuleStoreImpl.java?rev=1143900&r1=1143899&r2=1143900&view=diff
==============================================================================
--- incubator/stanbol/trunk/rules/manager/src/main/java/org/apache/stanbol/rules/manager/changes/RuleStoreImpl.java (original)
+++ incubator/stanbol/trunk/rules/manager/src/main/java/org/apache/stanbol/rules/manager/changes/RuleStoreImpl.java Thu Jul 7 16:08:50 2011
@@ -95,7 +95,8 @@ public class RuleStoreImpl implements Ru
userdir += System.getProperty("file.separator");
location = userdir + respath + filepath2;
-
+ // The location string variable must be a valid uri
+ location = new File(location).toURI().toString();
} else location = filepath;
// We do this instead of setting the global, non-static var