Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T committed Dec 10, 2024
1 parent 30ebdb8 commit 99f80e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,7 @@ public char[] normalizedPath() {
@Override
public String getPath() {
if (this.path == null) {
try {
this.path = this.file.getCanonicalPath();
} catch (IOException e) {
// in case of error, simply return the absolute path
this.path = this.file.getAbsolutePath();
}
this.path = this.file.toPath().normalize().toAbsolutePath().toString();
}
return this.path;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,7 @@ public char[] normalizedPath() {
@Override
public String getPath() {
if (this.path == null) {
try {
this.path = this.file.getCanonicalPath();
} catch (IOException e) {
// in case of error, simply return the absolute path
this.path = this.file.getAbsolutePath();
}
this.path = this.file.toPath().normalize().toAbsolutePath().toString();
}
return this.path;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,9 @@ public void logClassFile(boolean generatePackagesStructure, String outputPath, S
}
}
File f = new File(fileName);
try {
HashMap<String, Object> parameters = new HashMap<>();
parameters.put(Logger.PATH, f.getCanonicalPath());
printTag(Logger.CLASS_FILE, parameters, true, true);
} catch (IOException e) {
logNoClassFileCreated(outputPath, relativeFileName, e);
}
HashMap<String, Object> parameters = new HashMap<>();
parameters.put(Logger.PATH, f.toPath().normalize().toAbsolutePath().toString());
printTag(Logger.CLASS_FILE, parameters, true, true);
}
}
public void logClasspath(FileSystem.Classpath[] classpaths) {
Expand Down

0 comments on commit 99f80e2

Please sign in to comment.