|
The if task has 2 properties to handle what you are
describing. One is "propertyexists" and the other is
"propertytrue".
So, the following is what you want I think. (I have
updated the source so the existence check is done before the true check. It is
an AND operation if both are used.)
<if propertyexists="propName"
propertytrue="propName">
</>
This is what should happen.
No exceptoin should be thrown, ever.
<if propertyexists="propName">
</>
An exception may be thrown if exists check is not done first. If we
end up changing "not true" == false for all properties (ie null/false == false)
then this should change too.
<if propertytrue="propName">
</> I still think there is a big difference between
propertyexists and propertytrue.
Take this example:
<property name="output.dir"
value="run1output"/>
...
<!-- ifnot is an if with a !result returned
-->
<ifnot
propertyexits="output.dir">
</>
or
<property name="setup.dir"
value="setupfiles"/>
...
<if propertyexists="setup.dir">
<call
target="make.setup"/>
</>
|
- [nant-dev] proposal : change to if task behaviour Gert Driesen
- Re: [nant-dev] proposal : change to if task behaviour Scott Hernandez
- Re: [nant-dev] proposal : change to if task behaviour Philip Nelson
- Re: [nant-dev] proposal : change to if task behav... Gert Driesen
- Re: [nant-dev] proposal : change to if task b... Scott Hernandez
