Use File.separator in the default kar storage location
@@ -27,6 +27,8 @@ import org.apache.karaf.util.tracker.annotation.RequireService;
import org.apache.karaf.util.tracker.annotation.Services;
import org.osgi.service.cm.ManagedService;
+import java.io.File;
+
@Services(
requires = @RequireService(FeaturesService.class),
provides = @ProvideService(KarService.class)
@@ -41,7 +43,7 @@ public class Activator extends BaseActivator implements ManagedService {
}
boolean noAutoRefreshBundles = getBoolean("noAutoRefreshBundles", false);
- String karStorage = getString("karStorage", System.getProperty("karaf.data") + "/kar");
+ String karStorage = getString("karStorage", System.getProperty("karaf.data") + File.separator + "kar");
KarServiceImpl karService = new KarServiceImpl(
System.getProperty("karaf.base"),
