ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: <whichresource>
Date Mon, 12 Jan 2004 09:43:20 GMT
On Mon, 12 Jan 2004, Stefan Bodewig <> wrote:

> A resource starting with "/" is to be searched from the root of each
> classpath part, while resources not starting with "/" are supposed
> to be "relative" to the package that requests the resource (in
> ClassLoader.getResource() terms).

This only applies to Class.getResource, not ClassLoader.getResource.
So I was wrong and removing or not-adding a leading slash is the
correct way to handle this.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message