From: Matt I. <mat...@us...> - 2004-05-13 17:54:53
|
Update of /cvsroot/ant-contrib/ant-contrib/manual/tasks In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2227/tasks Modified Files: variable_task.html Log Message: Fix documentation Index: variable_task.html =================================================================== RCS file: /cvsroot/ant-contrib/ant-contrib/manual/tasks/variable_task.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** variable_task.html 4 Feb 2004 09:16:14 -0000 1.5 --- variable_task.html 13 May 2004 17:54:42 -0000 1.6 *************** *** 132,137 **** <var name="x" value="6"/> ! <if name="x" value="6"> ! <var name="x" value="12"/> </if> <echo>${x}</echo> <!-- will print 12 --> --- 132,140 ---- <var name="x" value="6"/> ! <if> ! <equals arg1="${x}" arg2="6" /> ! <then> ! <var name="x" value="12"/> ! </then> </if> <echo>${x}</echo> <!-- will print 12 --> *************** *** 157,162 **** <property name="x" value="12"/> <echo>${x}</echo> <!-- will print 12 --> ! ! </pre> </td> --- 160,165 ---- <property name="x" value="12"/> <echo>${x}</echo> <!-- will print 12 --> ! ! </pre> </td> *************** *** 168,172 **** <p> ! The following shows some more uses of the Variable task. It is especially handy for property appending. Notice a couple of things: the property task can't override a var value, however, in certain cases, if the var value is set to "", then it can as in the case of the format example. "format" is a special case, in general, you should use var with the unset attribute to change the value of a property. </p> <p> --- 171,175 ---- <p> ! The following shows some more uses of the Variable task. It is especially handy for property appending. Notice a couple of things: the property task can't override a var value, in general, you should use var with the unset attribute to change the value of a property. </p> <p> *************** *** 205,209 **** <echo>Today is ${x}.</echo> <!-- print: Today is blue. --> ! <var name="x" value=""/> <tstamp> <format property="x" pattern="EEEE"/> --- 208,212 ---- <echo>Today is ${x}.</echo> <!-- print: Today is blue. --> ! <var name="x" value="" unset="true"/> <tstamp> <format property="x" pattern="EEEE"/> |