Bugs item #1643768, was opened at 2007-01-24 19:59 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1643768&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Functions Group: None >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: Harley Blumenfeld (harleybl) >Assigned to: Gert Driesen (drieseng) Summary: directory::exists cannot resolve set properties Initial Comment: Perhaps I am doing this wrong but the directory::exists does not evaluate to true when using a property like so. <property name="alpha-core-src-dir" value="c:\temp" /> <if verbose="true" test="${directory::exists('${alpha-core-src-dir}')}"> <echo message="found directory" /> </if> However this does work but generates a deprecation error.. <available type="Directory" resource="${alpha-core-src-dir}" property="src-dir-exist" /> <if verbose="true" test="${src-dir-exist}"> <echo message="found directory" /> </if> Should directory::exists be able to resolve a property to a value and test against that? ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2007-01-24 20:03 Message: Logged In: YES user_id=707851 Originator: NO When properties are passed to functions, they do not need to be enclosed in ${}. So, use this instead: <if verbose="true" test="${directory::exists(alpha-core-src-dir)}"> <echo message="found directory" /> </if> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1643768&group_id=31650 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers