I normally use a two-build setup with a batch file. The batch file calls
the first build, which is the main build, and I tell Ant to use its xml
logger. Once that build has finished, the batch file calls a second
build that converts the xlm log file from the first build into html
using the log.xsl file included with ant in an <xslt> task. Might be not
as fine-tuned as you'd like, but it works.

-----Original Message-----
From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] 
Sent: 23 August 2006 10:53
To: [email protected]
Subject: <buffer> ?!


Hi,

in many buildscripts it's required to collect some data during the whole
build over and write it to a file, send it as mail ... etc. at the end
of the build.

it's possible to echo data to a file and write to that file with echo
append as data grows, but that repeating echo is kind of boring.

What if there were some kind of container where i could append to and
when i like it dump the contents of that container to a file or just
echo to stdout.

Kind of StringBuffer or similar.

<buffer name="buffer1" action="append">
my very special note
</buffer>

[... ]

<buffer name="buffer1" action="append">
another special note
</buffer>

[...]

<buffer name="buffer1" action="dump" file="C:/test/myfile.txt" />

Any ideas how to realize that for ant  ?

Regards, Gilbert

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


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

Reply via email to