Use a '-logger MailLogger' switch on the ant command line instead. Details
(and exact syntax) must be in the FAQ. --DD

-----Original Message-----
From: Azoulay, Zacky [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 16, 2002 2:36 PM
To: 'Ant Users List'
Subject: send mail if target fail

Hi,

I need to run some target even if one of them was fail.

can we run a target and continue if it was fail.

I need to run mail target from the same build xmlfile in case of another
target was fail.


         <target name="check.error"  >          
                        <fail message="mmm"/>
                        <property name="lll" value="aaa"/>
        </target>

         <target name="a" depends="check.error" if="lll">               
                <antcall target="sendmail"/>
        </target>

regards zacky

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

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

Reply via email to