ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Printing elapsed time at each task
Date Tue, 29 Jan 2002 03:15:32 GMT
Try this:

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

The data captured in log.xml has the time that each task, target, and build
took.

Will that do it for you?

    Erik


----- Original Message -----
From: "Mike Stopper" <mike.stopper@ams.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Monday, January 28, 2002 6:21 PM
Subject: Printing elapsed time at each task


> Is there a way (using the <propertyfile> task with date arithmetic
> perhaps??) to show the elapsed time between the execution of two arbitrary
> statements within an Ant execution??  I've been trying to figure out how
> how the date arithmetic might work, but I can't seem to get it right.
>
> Ideally I'd like to this without writing an external task or script, but
> if there's no other way to do it, then so be it.
>
> Thanks.
>
> -----------------------------------------------------
> Michael Stopper
> Senior Principal / SPS Technical Architect
> American Management Systems, Inc.
> 4114 Legato Road
> Fairfax, Virginia  22033
> 703.227.6646 Office
> 703.227.4696 FAX
> mailto:Michael.Stopper@ams.com
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message