ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Bug 3129 - <which> task proposal
Date Tue, 10 Sep 2002 16:36:31 GMT
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:steve_l@iseran.com] 
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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message