ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Which task
Date Fri, 24 Jan 2003 16:01:36 GMT
On Fri, 24 Jan 2003, Dominique Devienne <DDevienne@lgc.com> wrote:

> What I've seen is that JWhich simply does a
> JWhich.class.getResource(classresourcename), converting
> com.acme.SomeClass into /com/acme/SomeClass.java.

JUnitTask#addClasspathEntry starts out with

        URL url = getClass().getResource(resource);

and is called like this:

        addClasspathEntry("/junit/framework/TestCase.class")

Looks very similar.

I intend to move that code to somewhere in the util package as there
are some other places in Ant that need it.  Unless somebody beats me
to this, that is.

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