Description
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(); }