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:[EMAIL PROTECTED] 
Sent: Monday, January 27, 2003 8:16 AM
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to