Actually, the code of <available> is private, and doesn't return the path found, just a boolean. Furthermore, it does things differently than a which command, like returning true when the 'thing' search is an element of the search path (instead of the file being in one of the directories of the path). Looking for a file in a set of directories is trivial in Java. Most of the code of the Which task I submitted (You must have missed it, on the original thread) is to allow an implicit search path (didn't have to write it, since I already wrote it for <subant> it turns out ;-).
Check it out there. --DD -----Original Message----- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 10, 2002 11:31 AM To: Ant Developers List Subject: Re: Bug 3129 - <which> task proposal Available does search for a file on a path; this code could be used as the basis for <which>. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
