You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Diane Holt <ho...@yahoo.com> on 2001/01/04 04:43:49 UTC

[PATCH] Property.java

Since the <property> task allows for a "resource" to be specified, and
that can be a file inside a jar-file, it should also allow for a nested
<classpath> so it can actually find the jar-file :)

As always, I snarfed most of the code to do this from other source-files,
but (as always) it should probably still be given a second look by someone
who actually knows Java. (It seems to work fine, but I can't say for sure
that it means it's necessarily completely correct.)

Patch-file is attached.

Thanks,
Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

Re: [PATCH] Property.java

Posted by Stefan Bodewig <bo...@apache.org>.
Diane Holt <ho...@yahoo.com> wrote:

> Since the <property> task allows for a "resource" to be specified,
> and that can be a file inside a jar-file, it should also allow for a
> nested <classpath> so it can actually find the jar-file :)

Good idea IMHO. 

Unless anybody objects I'm going to commit a modified version of your
patch. My main modification would be to fall back to
ClassLoader.getSystemResourceAsStream when getClass().getClassLoader()
returns null (this is perfectly valid and JDK 1.1 will do so for the
system class loader) like the old code did.

Stefan