If you change the file attribute of the <available> task to only look for a file and not a directory, I would recommend adding a 'dir' attribute that could be used to test for the existence of a directory.
-- Dennis -----Original Message----- From: Diane Holt [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2001 3:40 PM To: [EMAIL PROTECTED] Subject: <available> task Is there a reason why the <available> task couldn't be changed to work at either the project-level or the target-level, the way <property> can? Also, is "file" supposed to work for directories as well as files? It currently does, but that seems wrong to me -- ie., if I'm checking for file "foo" and dir "foo" exists (but not file "foo"), the property gets (incorrectly, in my opinion) set. I've attached the little patch it'd need, in case people agree it should be changed. (I guess I could commit it myself, but I'm not sure if people agree that it should only check for a file, and I still need to get my secure connection through to CVS working from my new machine). Thanks, Diane ===== ([EMAIL PROTECTED]) __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
