Nevermind, I got this working. -----Original Message----- From: Sayatovic, Brian Sent: Tuesday, May 28, 2002 3:24 PM To: Ant Users List (E-mail) Subject: Available task not working as expected
I've got an available task that I want to have evaluate to false when a property evaluates to an empty string: <available file="${version.file}" type="file" property="version.file.present"/> I other words, if ${version.file} is a filename that exists, I want the available condition to be true. If ${version.file} is empty (its built from a path element), I want teh available condition to be unset. But, unfortunately, it is always evaluating to true and the error looks like this (C:\project\build is my working directory): BUILD FAILED C:\Project\build\build.xml:138: java.io.FileNotFoundException: C:\Project\build (Access is denied) Any ideas? Regards, Brian. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>