http://jakarta.apache.org/ant/faq.html#mail-logger
-- St�phane Bailliez Software Engineer, Paris - France iMediation - http://www.imediation.com Disclaimer: All the opinions expressed above are mine and not those from my company. > -----Original Message----- > From: Frederic Do Couto Fernandes > [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 17, 2001 10:31 AM > To: '[EMAIL PROTECTED]' > Subject: conditional task ??? > > > Hello, > > I wonder if it is possible to execute a task in some conditions ! > > for example : > > <target name="compile"> > <record name="buildResult.log" action="start"/> > <javac srcdir= .... > .... > </javac> > <record name="buildResult.log" action="stop"/> > > <!--There, I want to send an email if buildResult.log > contains "BUILD FAILED !" > I have a class that check the buildResult.log file --> > > <mail from ..... /> > > > </target> > > Any Ideas ? > > Thanks > > Fred. >
