diff --git a/supporting_scripts/analysis-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/EndpointParser.java b/supporting_scripts/analysis-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/EndpointParser.java index 265f314e0920..635e385e90bc 100644 --- a/supporting_scripts/analysis-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/EndpointParser.java +++ b/supporting_scripts/analysis-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/EndpointParser.java @@ -35,7 +35,7 @@ public class EndpointParser { public static void main(String[] args) { final String relativeDirectoryPath = ".." + File.separator + ".." + File.separator + ".." + File.separator + "src" + File.separator + "main" + File.separator + "java"; - final Path absoluteDirectoryPath = Paths.get(relativeDirectoryPath).toAbsolutePath(); + final Path absoluteDirectoryPath = Paths.get(relativeDirectoryPath).toAbsolutePath().normalize(); System.out.println("working directory: " + System.getProperty("user.dir")); System.out.println("absolute directory path: " + absoluteDirectoryPath); @@ -141,7 +141,7 @@ else if (annotation instanceof NormalAnnotationExpr) { ObjectMapper mapper = new ObjectMapper(); try { - mapper.writeValue(new File("supporting_scripts/analysis-of-endpoint-connections/endpoints.json"), endpointClasses); + mapper.writeValue(new File("endpoints.json"), endpointClasses); } catch (IOException e) { e.printStackTrace();