Yup, that did it :)

Sorry, there are so much conditions, i just didn't saw it.

<if>
    <contains string="${infomail.lum}" substring="TS" />
        <then>
            <echo file = "T:\test/infomail_tolist.txt" append="true">
Avg-${infomail.project}-Tester
            </echo>
        </then>
</if>           



Gilbert

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 13, 2004 12:00 PM
To: [EMAIL PROTECTED]
Subject: AW: problems with antcontrib


> > <if>
> >    <equals arg1="${infomail.module}" arg2="TS" />
> 
> >You�re checking if two string are equal, not whether one 
> contains the other.
> 
> So, how to do that ?!


<contains string="${infomail.module}" substring="TS" />
http://ant.apache.org/manual/CoreTasks/conditions.html


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to