Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/main/java/edu/kit/varijoern/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@ private static int runFamilyBased(@NotNull Config config, @NotNull Args args) {

args.getResultOutputArgs().getDestination().getPath().ifPresent((path) -> {
sugarlyzerCommandList.add("--output-path");
sugarlyzerCommandList.add(path.toString());
// Use an absolute path here, otherwise the Sugarlyzer assumes it is relative to it's own CWD,
// which is set to the user's home directory. This might seem unintuitive for a user of Vari-Joern.
// Instead, the path should be relative to Vari-Joern's CWD.
sugarlyzerCommandList.add(path.toAbsolutePath().toString());
});

// Add mandatory arguments.
Expand Down Expand Up @@ -353,4 +356,4 @@ private static void setupShutdownHook() {
}
}));
}
}
}