ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: AINASL! Help with Parsing Files with Ant
Date Thu, 21 Apr 2005 14:21:41 GMT
> From: Matt Benson [mailto:gudnabrsam@yahoo.com]
> > I AM LOST HERE NOW: The exec line by itself works
> > but how do I get the
> > result of the date.exe back into here? With Args?
> >
> > <target name="timedate">
> > <exec executable="C:/cygwin/bin/date.exe `+%a %D
> > %r`" />
> > <arg line="/c dir"/>
> > </exec>
> 
> to do this, you would use the outputproperty attribute
> of <exec>.  However, you might want to take a look at
> the tstamp task to avoid the dependency on cygwin
> and/or the Unix version if you, in theory, went
> cross-platform.  Especially considering that, IIRC,
> the cygwin version has features not in the (some?)
> pure Unix versions.

I'd second Matt. It's unlikely <tstamp> cannot format
a date the way you want, better and faster than date.exe,
and in a cross platform manner.

Lookup the doc. If you can't sort it out, post again
with the date issue, but I bet we'll figure it out. --DD

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


Mime
View raw message