Angel Reyes wrote:

While updating my build script to the new build I noticed that the "Available" task has been deprecated. What is the proper way to determine if a file or directory exists?

The displayed message is "Task <available> is deprecated. Use functions instead"

see :
http://nant.sourceforge.net/release/latest/help/functions/directory.exists.html
and
http://nant.sourceforge.net/release/latest/help/functions/file.exists.html

use like:

<sometask  ... if="${|file::exists(somefile)|}" />

Ian


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to