Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Mail a nice pretty html build log...

Mail a nice pretty html build log...

2005-06-14       - By Anderson, Rob (Global Trade)
Reply:     1     2     3     4     5     6  

Hi all, I would like to be able to mail a nice pretty html build log. There is
a slight dilema though. If I run:

ant -listener org.apache.tools.ant.XmlLogger

The log is not produced until the build is complete. I would like to do this in
one invocation of ant. I think it might be possible if I write a wrapper target
like so:

 <target name="build" depends="wrapper">
 </target>

 <target name="test">
   <tstamp>
     <format property="start.time" pattern="MM/dd/yyyy hh:mm:ss aa"/>
   </tstamp>
   <echo>${start.time}</echo>
 </target>

 <target name="wrapper">
   <ant target="test">
     <property name="listener" value="org.apache.tools.ant.XmlLogger"/>
   </ant>
   <style ... /style>
   <mail ... /mail>
 </target>

The problem I am having is with making the XmlLogger work via <ant> task. Any
help would be appreciated.

Thanks,

______________________
Robert Anderson
Sr. System Engineer
Nike - Global Trade IT
503-532-6803


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.