So, would something like: <ifThen test="isset('XXX') && '${a}' = '${b}'"> .... </ifThen>
Not that I am proposing something concrete. But this would require defining a proper expression evaluation language for it. This would be equivalent to the more verbose: <if> <and> <isset property="XXX"/> <equals arg1="${a}" arg2="${b}"/> </and> <then> .... </then> </if> Or something simillar. But this is not something simple at all. Jose Alberto > -----Original Message----- > From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED] > Sent: 11 May 2004 17:10 > To: Ant Developers List > Subject: Re: ANT 1.7 features suggestion > > > Actually <if> is too wordy. A mall <target if="XXX"> is > translated into > > <target> > <if> > <isset property="XXX"/> > <then> > .... > </then> > </if> > </target> > > Complex conditions are big. A small expression language like "XXX && > YYY" would be much nicer. > > - Alexey. > > Jose Alberto Fernandez wrote: > > >>From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED] > >> > >>I do use it also. Do you know whether it will become a part > >>of main ANT? > >> > >> > >> > > > >So why you feel unconfortable about using <if/> is the fact > that is not > >part of the supported CORE of ANT. Is that it? > > > >That may give some food for thought, to the committers (me included). > > > >Jose Alberto > > > > > > > >>- Alexey. > >> > >>Jose Alberto Fernandez wrote: > >> > >> > >> > >>>Ok, what is wrong with using <if/>? > >>> > >>>Besides, look&feel. > >>> > >>>Jose Alberto > >>> > >>> > >>> > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]