ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederic Do Couto Fernandes <f.docoutofernan...@frontoo.com>
Subject condition execute task
Date Thu, 17 May 2001 13:27:02 GMT
I wonder if it is possible to exeute task in some conditions !

For example :

<target name="compile" ....>

...

  <record name="buildResult.log" action="start">
  <javac .....>
  </javac>
  <record name="buildResult.log" action="stop">

<!-- here, I want to send an email if the buildResult.log contains
     "BUILD FAILED".
     I have a class that check the buildResult.log file    -->

  <mail ....... files="buildResult.log"/>

...

</target>

Mime
View raw message