https://bz.apache.org/bugzilla/show_bug.cgi?id=69680
Bug ID: 69680 Summary: `URLResource#getName` returns cripled result Product: Ant Version: 1.10.15 Hardware: All OS: All Status: NEW Severity: normal Priority: P2 Component: Core Assignee: notifications@ant.apache.org Reporter: bjo...@kautler.net Target Milestone: --- Calling `org.apache.tools.ant.types.resources.URLResource#getName` gets the `file` from the `URL` and strips the first characters away which according to the comments should be "leading separator". But if you for example look at the output of `junitreport`, you see ``` [junitreport] Loading stylesheet ile:/opt/homebrew/Cellar/ant/1.10.15_1/libexec/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl ``` That means from the URL `jar:file:/opt/homebrew/Cellar/ant/1.10.15_1/libexec/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl` it takes the `file:/opt/homebrew/Cellar/ant/1.10.15_1/libexec/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl` as `file` and then strips the `f`. This looks rather weird, probably `getName()` should just return the full URL? -- You are receiving this mail because: You are the assignee for the bug.