log.debug("## CMS starting... (" + uuid + ")\n" + sb + "\n");
}
- Path nodeBase = getDataPath(KernelConstants.DIR_PRIVATE);
- if (nodeBase != null && !Files.exists(nodeBase)) {// first init
+ Path privateBase = getDataPath(KernelConstants.DIR_PRIVATE);
+ if (privateBase != null && !Files.exists(privateBase)) {// first init
firstInit();
+ Files.createDirectories(privateBase);
}
} catch (RuntimeException | IOException e) {
Path executionDir = Paths.get(getFrameworkProp("user.dir"));
if (relativePath == null)
return executionDir;
- try {
- return executionDir.resolve(relativePath).toRealPath();
- } catch (IOException e) {
- throw new IllegalArgumentException("Cannot get canonical file", e);
- }
+// try {
+ return executionDir.resolve(relativePath);
+// } catch (IOException e) {
+// throw new IllegalArgumentException("Cannot get canonical file", e);
+// }
}
// static File getOsgiInstanceDir() {