Having said that - a <which> task or function would be a great addition to nant.
I don't believe the available task currently does any searching either - it just does an exists test on the file path that you give it.
Ian
Stefan Bodewig wrote:
On Sun, 14 Dec 2003, Gert Driesen <[EMAIL PROTECTED]> wrote:
If we decide to add William's task, I think we should :[...]
- split it up into at least 3 tasks, like Ant has : dirname,
basename, and path-combine (or something, doesn't exist in Ant)
Well, it would probably be called <which> or something close (like Unix's which utility that says where on your PATH a given command exists).
Ant already has <whichresource> in CVS HEAD and ISTR there also is/was a <whichfile>, but I don't remember where.
Basically, the <which> task in Ant would do the same as <available> - i.e. look the file up in a given <path> - but set the property to the file's location.
Stefan
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers
--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers