Bugs item #1643768, was opened at 2007-01-24 13:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Harley Blumenfeld (harleybl)
Assigned to: Nobody/Anonymous (nobody)
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?

----------------------------------------------------------------------

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

Reply via email to