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.

Reply via email to