[ https://jira.codehaus.org/browse/MSHADE-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies closed MSHADE-119. ----------------------------------- Resolution: Fixed Fix Version/s: 1.7 fixed in rev 1342979. ------------------------------------------------------------------------ r1342979 | bimargulies | 2012-05-26 18:05:45 -0400 (Sat, 26 May 2012) | 3 lines MSHADE-119: slash-leading classpath resources not properly rewritten when repackaging classes o treat "/a/b/c" as the same thing as "a/b/c" in deciding if a path is relocatable. > slash-leading classpath resources not properly rewritten when repackaging > classes > --------------------------------------------------------------------------------- > > Key: MSHADE-119 > URL: https://jira.codehaus.org/browse/MSHADE-119 > Project: Maven 2.x Shade Plugin > Issue Type: Bug > Affects Versions: 1.6 > Reporter: Dawid Weiss > Assignee: Benson Margulies > Priority: Trivial > Fix For: 1.7 > > > This applies to Velocity, for example. The code pattern they use is: > {code} > getClass().getResource("/org/apache/velocity/myresource.properties") > {code} > this gets resolved as class loader relative resource and does point to > myresource.properties. When classes are repackaged, the resource name is not > properly updated and points nowhere (will not be found). > Arguably this is a bad code pattern but it's frequent enough that there > should be built-in support for handling it. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira