ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Which task
Date Fri, 24 Jan 2003 15:54:15 GMT
Perhaps... What I've seen is that JWhich simply does a
JWhich.class.getResource(classresourcename), converting com.acme.SomeClass
into /com/acme/ Very straightforward, and effective IMHO.
Since the system classloader is doing the resolution, it works even for JARs
with Class-Path: attributes, JARs in jre/lib/ext, etc... Neat ;-) --DD

-----Original Message-----
From: Stefan Bodewig [] 
Sent: Friday, January 24, 2003 9:49 AM
Subject: Re: Which task

On Fri, 24 Jan 2003, Dominique Devienne <> wrote:

> but if fact it would, since JWhich attempts to find the class file
> *resource*, not load it.

Sounds a lot like what JUnitTask#addClasspathEntry does internally.
But I assume that JWich uses something more like
Diagnostics#getClassLocation (which in turn has been stolen from Axis)
in CVS HEAD, which requires Java 1.2+.


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

View raw message