[
https://issues.apache.org/jira/browse/LANG-417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794344#action_12794344
]
Henri Yandell commented on LANG-417:
------------------------------------
On the subject of URL - java.lang.ClassLoader has URL in its API, so I view it
as within Lang's realm given this is the same context.
> ClassUtils: method for turning FQN into resource path
> -----------------------------------------------------
>
> Key: LANG-417
> URL: https://issues.apache.org/jira/browse/LANG-417
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Paul Benedict
> Fix For: 3.0
>
>
> I commonly need a FQ path to a resource within the same location as a class
> file. I recommend the addition of this method:
> public String getPackageResourcePath(Class clazz, String resourceName)
> StringBuffer buf = new StringBuffer();
> buf.append(ClassUtils.getPackageName(getClass()).replace('.', '/'));
> buf.append("/");
> buf.append(resourceName);
> return buf.toString();
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.