ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Louth <william.lo...@jinspired.com>
Subject RE: using tstamp to time a macro execution
Date Thu, 14 Jul 2005 15:28:17 GMT
Hi,

JXInsight an extensible profile, trace and application
monitoring solution provides support for tracing and
profiling of Ant projects, targets, tasks with an
special extension for JUnit tasks. 

More information:
http://www.jinspired.com/products/jdbinsight/antjunittracing.html

Regards,

William Louth
JXInsight Product Architect
JInspired

"J2EE tuning, testing and tracing with JXInsight"
http://www.jinspired.com

--- "Shatzer, Larry"
<Larry.Shatzer@MIROtechnologies.com> wrote:

> Ant-contrib has a stopwatch task:
>
http://ant-contrib.sourceforge.net/tasks/tasks/stopwatch_task.html
> 
> You also might want to look at their performance
> monitor:
>
http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html
> 
> > -----Original Message-----
> > From: Mark Lybarger [mailto:mlybarger@gmail.com] 
> > Sent: Thursday, July 14, 2005 6:43 AM
> > To: Ant Users List
> > Subject: using tstamp to time a macro execution
> > 
> > 
> > I currently have a macro definition like so:
> > 
> > <macrodef name="compile.sub.project"> 
> > <attribute name="projectDir" default="ERROR"/>
> > <sequential>
> > <!-- TODO: failure here should fail the build. -->
> > <java fork="true" dir="${basedir}"
> classname="com.compiler.compiler" 
> > classpathref="compiler.run.classpath.id 
> > <http://compiler.run.classpath.id>">
> > <arg value="../@{projectDir}/build"/>
> > </java>
> > <tstamp>
> > <format property="BUILD_TIMESTAMP" pattern="MMM dd
> yyyy HH:mm:ss"/>
> > </tstamp>
> > <echo>Completed Compile of @{projectDir} At:
> ${BUILD_TIMESTAMP}</echo>
> > </sequential> 
> > </macrodef> 
> > 
> > the issue is that when i call it twice, i get the
> same time 
> > stamp output. 
> > this is b/c properties are immutable. it'd be nice
> to be able 
> > to time the 
> > execution of the macrodef, display start/stop
> time, and even time 
> > difference. ideas? suggestions?
> > 
> > thanks!
> > ~mark
> > 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 
> 
> 


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


Mime
View raw message