ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane Bailliez <sbaill...@imediation.com>
Subject RE: conditional task ???
Date Thu, 17 May 2001 21:36:30 GMT
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:f.docoutofernandes@frontoo.com]
> Sent: Thursday, May 17, 2001 10:31 AM
> To: 'ant-dev@jakarta.apache.org'
> 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.
> 

Mime
View raw message