You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benson Margulies (JIRA)" <ji...@codehaus.org> on 2012/05/26 20:40:21 UTC
[jira] (MSHADE-119) slash-leading classpath resources not properly
rewritten when repackaging classes
[ https://jira.codehaus.org/browse/MSHADE-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies reassigned MSHADE-119:
---------------------------------------
Assignee: Benson Margulies
> 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
>
> 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