ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
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

<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" />

gives this as the content of ant_log.log

     [echo] some message
     [echo] another message


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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message