ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederic Do Couto Fernandes <>
Subject RE: condition execute task
Date Thu, 17 May 2001 15:12:15 GMT

It's not a task that checks the log file.
It's simply a class that is called by the task <java>


-----Message d'origine-----
De: Lull, Joe
A: ''
Date: 17/05/01 16:19
Objet: RE: condition execute task

Have your task that checks the log set a property and use that property
determine what target to execute next.

example:  this.getProject().setProperty(mypropertyName,

-----Original Message-----
From: Frederic Do Couto Fernandes
Sent: Thursday, May 17, 2001 9:27 AM
To: ' '
Subject: condition execute task

I wonder if it is possible to exeute task in some conditions !

For example :

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


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

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

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



View raw message