]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.osgiboot/src/main/java/org/argeo/slc/osgiboot/OsgiBoot.java
Improve SSH support
[gpl/argeo-slc.git] / runtime / org.argeo.slc.osgiboot / src / main / java / org / argeo / slc / osgiboot / OsgiBoot.java
index 73b817ab2f3014e581152db1d56782e054ca7e00..0f4f5ab23813d292689852ba6acbdec6f847ed66 100644 (file)
@@ -233,7 +233,7 @@ public class OsgiBoot {
                                                        }
                                                }
                                } else {
-                                       //warn("Not a directory: " + newFullPath);
+                                       // warn("Not a directory: " + newFullPath);
                                }
                        }
                }
@@ -308,6 +308,10 @@ public class OsgiBoot {
                                throw new RuntimeException("Base dir not defined.");
                        try {
                                String dirPath = st.nextToken();
+
+                               if (dirPath.startsWith("file:"))
+                                       dirPath = dirPath.substring("file:".length());
+
                                dir = new File(dirPath.replace('/', File.separatorChar))
                                                .getCanonicalPath();
                                if (debug)