ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederic Do Couto Fernandes <f.docoutofernan...@frontoo.com>
Subject conditional task ???
Date Thu, 17 May 2001 08:31:11 GMT
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