ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Timing parts of the build.
Date Mon, 10 Sep 2001 12:24:23 GMT
You could create a task similar to Sequential that implements TaskContainer
and have it do this pretty easily.   It would give you the capability of
timing tasks all within a target, not across targets.  Actually it might be
cleaner to just patch Sequential.java to do it automatically and avoid two
"sequential" tasks out there.    It seems like it'd only take a few lines of
code.

    Erik


----- Original Message -----
From: "Summerwill, Bob" <BSummerwill@europe.ea.com>
To: <ant-user@jakarta.apache.org>
Sent: Monday, September 10, 2001 4:30 AM
Subject: Timing parts of the build.


> Has anyone got any recommendations on timing parts an Ant build?  I'd like
> to be able to place the timing for part of the build in a Ant property, so
> it can be used in XSLT transforms, etc.
>
>
> Pseudocode ....
>
>
>
> <target name="example">
>
>      <timedSection name="build.time">
>          <!-- do some part of the build, which generates a log file. -->
>      </timedSection>
>
>      <!-- Add the timing information to the build log. -->
>      <style in="buildLog.xml" out="timedBuildLog.xml"
> style="addTimingInfo.xsl">
>          <param name="howLongItTook" value="${build.time}"/>
>      </style>
>
> </target>
>
>
> Is timing information available?  Is there a simple way to do something
> similar?
>
>
> Cheers,
> Bob
>


Mime
View raw message