| AW: any way to append to a logfile? | AW: any way to append to a logfile? 2003-03-12 - By Jan.Materne@(protected)
But you can use the Log4JListener. With -Dlog4j.configuration=myLog4jFile you define how Log4J should log. E.G. via FileAppender (which supports appending).
ant -listener org.apache.tools.ant.listener.Log4jListener -Dlog4j.configuration=log4jForAnt.xml
Jan Mat?rne
-----Urspr?ngliche Nachricht----- Von: Jim Allers [mailto:jim@(protected)] Gesendet am: Dienstag, 11. M?rz 2003 22:59 An: Ant Users List Betreff: RE: any way to append to a logfile?
I don't think there is a way of appending to a log file.
Multiple targets can be run in one ant call.
ant [target [target2 [target3] ...]]
You can also have a target call multiple targets.
<target name="toptarget"> <antcall target="target" /> <antcall target="target2" /> <antcall target="target3" /> </target>
Multiple build files can be run by one build file.
<target name="callotherbuilds"> <ant dir="otherbuild" /> <ant dir="otherbuild2" /> <ant dir="otherbuild3" /> </target>
-----Original Message----- From: Nolan Ring [mailto:Nolan.Ring@(protected)] Sent: Tuesday, March 11, 2003 1:32 PM To: user@(protected) Subject: any way to append to a logfile?
Hi,
Is there anyway to have ant append to a logfile rather than overwrite it?
I have a script that runs ant several times, each time running a different target. I would like to have all of the output in one file but, so far, ant is simply overwriting the logfile each time so I only end up with output from the last run.
Thanks much.
Nolan
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |