ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: DO NOT REPLY [Bug 26020] New: - Writing to a file.
Date Sat, 10 Jan 2004 14:13:00 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message