I've implemented a fix for this but it means that reuse of a recorder in a
single build does not perform quite the same as Ant 1.6. For example, this
build

<project name="26020" default="test">
  <target name="test">
    <record name="ant_log.log" action="start" />
    <echo message="some message"/>
    <record name="ant_log.log" action="stop" />

    <record name="ant_log.log" action="start"/>
    <echo message="another message"/>
    <record name="ant_log.log" action="stop" />
  </target>
</project>

gives this as the content of ant_log.log

     [echo] some message
     [echo] another message

BUILD SUCCESSFUL

but will give this with my change:

     [echo] another message

IOW, when a recorder is stopped, the file is closed and no other output is
written to the recorder file. This seems to be the correct behaviour to me.
Also, to capture both messages would require an append on the second
recorder start.

Thoughts?
Conor



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to