ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: <whichresource>
Date Mon, 12 Jan 2004 09:43:20 GMT
On Mon, 12 Jan 2004, Stefan Bodewig <bodewig@apache.org> 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.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message