THanks Larry, using the prefix worked nicely:

<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 prefix="@{projectDir}>
<format property="BUILD_TIMESTAMP" pattern="MMM dd yyyy HH:mm:ss"/>
</tstamp>
<echo>Completed Compile of @{projectDir} At: 
[EMAIL PROTECTED]</echo>
</sequential> 
</macrodef> 



On 7/14/05, Shatzer, Larry <[EMAIL PROTECTED]> wrote:
> 
> You can put a prefix on the <tstamp> so you can have two tstamp 
> properties.
> <tstamp prefix="start"><format.../></tstamp> and one with a prefix of end.
> Then you can use ${start.BUILD_TIMESTAMP} and ${end.BUILD_TIMESTAMP}
> 
> > -----Original Message-----
> > From: Mark Lybarger [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 14, 2005 7:24 AM
> > To: Ant Users List
> > Subject: Re: using tstamp to time a macro execution
> >
> >
> > thanks for the suggestion, but i'm not sure i can introduce
> > ant-contrib
> > tasks.
> >
> > On 7/14/05, Shatzer, Larry <[EMAIL PROTECTED]> 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_mon
> itor.html
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to