<project>
<scriptdef name="log" language="javascript">
<attribute name="message"/>
<![CDATA[
formatter = new
java.text.SimpleDateFormat("yyyy.MM.dd-HH:mm:ss:SSS");
log = project.createTask("echo");
log.setMessage(formatter.format(new java.util.Date()) + " - " +
attributes.get("message"));
log.perform();
]]>
</scriptdef>
<log message="one"/>
<log message="two"/>
</project>
Jan
> -----Urspr�ngliche Nachricht-----
> Von: Ninju Bohra [mailto:[EMAIL PROTECTED]
> Gesendet am: Freitag, 18. M�rz 2005 17:45
> An: Ant Users Group
> Betreff: Fwd: Get timestamping in the echo message
>
> It did not seem to go through the first time I sent it...if
> at first you don't succeed try again.
>
> Ninju Bohra <[EMAIL PROTECTED]> wrote:Date: Fri, 18 Mar
> 2005 08:17:50 -0800 (PST)
> From: Ninju Bohra <[EMAIL PROTECTED]>
> Subject: Get timestamping in the echo message
> To: Ant Users Group <[email protected]>
>
> Hey all,
>
> It there a way to get a timestamp printed with every <echo>
> invocation... I thought remember somebody using <presetdef>
> (or something else) to get the current time printed out with
> every message...
>
> Thanx in advance,
>
> Ninju
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>