Skip to content

Commit

Permalink
Debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Dec 6, 2024
1 parent 5d59049 commit 5ff35d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/core/src/zserio/tools/ExtensionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ private File getWorkingDirectory()
final String execUrlPath = getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
final String decodedExecUrlPath = URLDecoder.decode(execUrlPath, "UTF-8");
// check if decodedExecUrlPath is really URL, newer Java versions 11 or 17 returns normal path
System.out.println("decodedExecUrlPath = " + decodedExecUrlPath);
File decodedExecFile = null;
try
{
Expand All @@ -155,6 +156,10 @@ private File getWorkingDirectory()
{
decodedExecFile = new File(decodedExecUrlPath);
}
System.out.println("decodedExecFile = " + decodedExecFile);
System.out.println("decodedExecFile.getParentFile() = " + decodedExecFile.getParentFile());
System.out.println(
"decodedExecFile.getParentFile().exist = " + decodedExecFile.getParentFile().exists());

return decodedExecFile.getParentFile();
}
Expand Down

0 comments on commit 5ff35d2

Please sign in to comment.