https://bz.apache.org/bugzilla/show_bug.cgi?id=69680
--- Comment #5 from Stefan Bodewig <bode...@apache.org> --- Yes, I understood that. There probably is a reason why getName strips off the leading path separator - the comments quite clearly say this is intended. Unfortunately I don't recall why this is the case (this happened around twenty years ago). This is not uncommon in a codebase as old as Ant's. Changing this because "we don't know why it makes absolute paths look like relative paths, this must be wrong" always carries the danger of breaking stuff somewhere else that you don't see at first glance. This "somewhere else" may be somebody other's task/extension outside of Ant that relies on it and has also not been touched for a decade or more. The Ant team has been very reluctant when it comes to breaking backwards compatibility. That's why I'd suggest to ensure we are actually stripping a leading path separator and leave all other names alone. This will at least keep the file URI in your example. Regarding your WSL URI, well, if the file URI is exposed with wsl$ as authority then returning podman-machine-default/etc/fstab is exaclty what the code intends to do. Even though neither you nor I know why. -- You are receiving this mail because: You are the assignee for the bug.