ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: LoaderUtils or JavaEnvUtils or ... - where to put getClasspat hEntry?
Date Mon, 27 Jan 2003 15:30:43 GMT
Since ClassPaths can contain http: URLs, sounds like it should return a URL.

And how about renaming it getClassSource or getClasspathElement, or even
getCodeSourceLocation (which expresses the lineage Class -> ProtectionDomain
-> CodeSource -> URL)? --DD

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Monday, January 27, 2003 8:16 AM
To: ant-dev@jakarta.apache.org
Subject: LoaderUtils or JavaEnvUtils or ... - where to put
getClasspathEntry?

Hi,

I want to extract a method

    File getClasspathEntry(Class clazz)

that would return the directory or jar file containing clazz from the
JUnit task and reuse it in this task, Diagnostics and ANTLR, but I'm
unsure as to where it should go.

Any preferences?

Oh, maybe that method should return an URL instead?  A String?

Stefan

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


Mime
View raw message