Author: rwesten
Date: Wed Oct 10 14:18:22 2012
New Revision: 1396614

URL: http://svn.apache.org/viewvc?rev=1396614&view=rev
Log:
STANBOL-768: This should fix this Issue. Still needs to be validated with an 
Entityhub Indexing Tool running on Windows

Modified:
    
stanbol/trunk/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtil.java

Modified: 
stanbol/trunk/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtil.java
URL: 
http://svn.apache.org/viewvc/stanbol/trunk/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtil.java?rev=1396614&r1=1396613&r2=1396614&view=diff
==============================================================================
--- 
stanbol/trunk/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtil.java
 (original)
+++ 
stanbol/trunk/entityhub/indexing/core/src/main/java/org/apache/stanbol/entityhub/indexing/core/destination/OsgiConfigurationUtil.java
 Wed Oct 10 14:18:22 2012
@@ -22,6 +22,7 @@ import java.util.Dictionary;
 import java.util.Hashtable;
 
 import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.FilenameUtils;
 import org.apache.commons.io.IOUtils;
 import org.apache.felix.cm.file.ConfigurationHandler;
 import org.apache.stanbol.entityhub.core.mapping.FieldMappingUtils;
@@ -243,7 +244,9 @@ public final class OsgiConfigurationUtil
     
     public static void createBundle(IndexingConfig config){
         Builder builder = new Builder();
-        
builder.setProperty("Install-Path",CONFIG_PATH+config.getName().toLowerCase());
+        builder.setProperty("Install-Path",
+            FilenameUtils.separatorsToUnix(CONFIG_PATH) //see STANBOL-768
+                + config.getName().toLowerCase());
         
builder.setProperty(Builder.EXPORT_PACKAGE,CONFIG_PACKAGE+config.getName().toLowerCase());
         builder.setProperty(Builder.BUNDLE_CATEGORY, "Stanbol Data");
         builder.setProperty(Builder.BUNDLE_NAME, "Apache Stanbol Data: 
"+config.getName());


Reply via email to