diff --git a/tools/compile-results/src/main/java/moobench/tools/compile/results/CompileResultsMain.java b/tools/compile-results/src/main/java/moobench/tools/compile/results/CompileResultsMain.java index f5e0864f71bc2141d2aa7924e907f15c40ec60b0..f1825c8df9d7d22de4ec3fc1353dfd85462ca64b 100644 --- a/tools/compile-results/src/main/java/moobench/tools/compile/results/CompileResultsMain.java +++ b/tools/compile-results/src/main/java/moobench/tools/compile/results/CompileResultsMain.java @@ -59,13 +59,10 @@ public class CompileResultsMain { rootNode = readJsonString(); } - System.err.println("json " + jsonMainFile); - System.err.println("json " + jsonMainFile.getParentFile()); - System.err.println("json " + jsonMainFile.getParentFile().getPath()); + String basePath=jsonMainFile.getParentFile()==null?"":jsonMainFile.getParentFile().getPath(); - - File jsonPartialFile = new File(jsonMainFile.getParentFile().getPath() + File.separator + PARTIAL_RESULT_FILENAME); - File jsonRelativeFile = new File(jsonMainFile.getParentFile().getPath() + File.separator + RELATIVE_RESULT_FILENAME); + File jsonPartialFile = new File(basePath + File.separator + PARTIAL_RESULT_FILENAME); + File jsonRelativeFile = new File(basePath + File.separator + RELATIVE_RESULT_FILENAME); JsonNode resultsNode = rootNode.get(RESULTS_LABEL);