ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: send mail if target fail
Date Wed, 17 Jul 2002 15:19:32 GMT
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:zacky.azoulay@sap.com] 
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message