Right now you can use the script task to do this. It is the only way I can think of.
I wrote an <if> task that can check for a file being up to date (if the uptodatefile file doesn't exist then it executes; also, you can use the <ifnot> task for the opposite case). I still need to test this feature, and write a unit test. Other things came up, and I have not been able to finish it. <if uptodatefile="myfile.dll" comparefile="myfile.cs"> <echo message="myfile.dll is newer/same-date as myfile.cs"/> </if> It would probably be better to have full support for the ant <uptodate> task (http://ant.apache.org/manual/CoreTasks/uptodate.html) rather than using my if version. Although they both might be usefull in their own way. I'm sure we are all open to suggestions about how to handle this issue. What do you propose? Ideas and patches are always appreciated :) ----- Original Message ----- From: Gert Driesen To: [EMAIL PROTECTED] Sent: Sunday, March 02, 2003 10:12 PM Subject: [nant-dev] Support for checking if a file or directory exists Hi, Has any decision been made about how Nant will support checking if a file or directory exists ? We really need this badly for building our project. We allow lognet to be build for .NET 1.0, .NET 1.1, .NET CF 1.0, Mono and Rotor, but we need to be able to check which runtimes are available. For the .NET runtimes, we can actually do this by reading a value in the registry. But even then we want to make sure these directories really exist. For Mono and Rotor, we really need to check whether certain directories exist. Have any proposals been made ? Are there any workarounds available right now ? Is there anything I can do to help in order to get this realised ? Thanks, Gert ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
