Bugs item #1234822, was opened at 2005-07-08 17:33
Message generated for change (Comment added) made by viy75
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1234822&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: Tasks
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: Ashley Moran (ashleymoran)
Assigned to: Nobody/Anonymous (nobody)
Summary: <exec>'s <arg/> evaluates even when if attr returns false

Initial Comment:
I use a lot of properties to control the flow of my
scripts (like a configuration file.  But the following
(contrived) example will fail:

<property name="foo-defined" value="true"/>
<property name="foo" value="hello"/>
<property name="bar-defined" value="false"/>

<exec program="mycmd">
    <arg if="${foo-defined}"
line="${properties::get-value('foo')}"/>
    <arg if="${bar-defined}"
line="${properties::get-value('bar')}"/>
</exec>

because ${properties::get-value('bar')} can't be evaluated

It would make more sense if the argument line was only
evaluated if the "if" expression evaluated to true

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

Comment By: Eugene Voytitsky (viy75)
Date: 2005-07-29 13:25

Message:
Logged In: YES 
user_id=703472

I vote for this bug
please fix it

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1234822&group_id=31650


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to