ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
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 [] 
Sent: Monday, January 27, 2003 8:16 AM
Subject: LoaderUtils or JavaEnvUtils or ... - where to put


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?


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

View raw message