ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
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/SomeClass.java. 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 [mailto:bodewig@apache.org] 
Sent: Friday, January 24, 2003 9:49 AM
To: ant-user@jakarta.apache.org
Subject: Re: Which task

On Fri, 24 Jan 2003, Dominique Devienne <DDevienne@lgc.com> 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+.

Stefan

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


Mime
View raw message