That is it! Thanks.
Francis Galiegue-4 wrote: > > On Mon, Oct 5, 2009 at 09:28, EetieD <[email protected]> wrote: >> >> Hi, >> >> I am trying to use "<isset" within macrodef to test for an attribute that >> has been set. When I use the code below, it never comes into the part >> after >> <isset property="valueFile", even if valueFile is set. What should I use >> instead of "<isset property=.."? >> >> Thanks for helping. >> >> >> <macrodef name="checkcheck"> >> <attribute name="valueFile" default="" /> >> <attribute name="valueText" default="" /> >> <sequential> >> <if><isset property="valueFile" /><then> >> <!-- it never comes here, even if valueFile is set >> --> > [...] >> > > Attributes within macros are not properties! > > You should use: > > <macrodef name="checkcheck"> > <attribute name="valueFile" default="NOTSET"/> > <sequential> > <if> > <not> > <equals arg1="@{valuefile}" arg2="NOTSET"/> > </not> > <!-- etc etc - note, @{valuefile}, not ${valuefile} --> > > > > -- > > Francis Galiegue > ONE2TEAM > Ingénieur système > Mob : +33 (0) 683 877 875 > Tel : +33 (0) 178 945 552 > [email protected] > 40 avenue Raymond Poincaré > 75116 Paris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/isset-within-macrodef...-tp25746232p25746539.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
