ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: DO NOT REPLY [Bug 26020] New: - Writing to a file.
Date Mon, 12 Jan 2004 10:49:39 GMT
On Sun, 11 Jan 2004, Conor MacNeill <conor@cortexebusiness.com.au>
wrote:

> 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.

I agree.

> Also, to capture both messages would require an append on the second
> recorder start.

This is where the backwards incompatiblity comes in, right?

There may be situations where you don't know that a specific <record>
task is the second one of the build.

<target name="A">
  <record name="my.log" action="start"/>
    ...
  <record name="my.log" action="stop"/>
</target>

<target name="B">
  <record name="my.log" action="start"/>
    ...
  <record name="my.log" action="stop"/>
</target>

<target name="C" depends="A,B"/>

If B is run without A, it is not the second invocation.

Can the task keep track of files it has opened during the current
build and make append default to true if a given file has been used
before?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message