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/
--- Available.java.orig Fri Apr 20 12:31:37 2001
+++ Available.java      Fri Apr 20 12:28:52 2001
@@ -148,7 +148,7 @@
     }
 
     private boolean checkFile(File file) {
-        return file.exists();
+        return file.isFile();
     }
 
     private boolean checkResource(String resource) {

Reply via email to