<tstamp>
<format property="TODAY" pattern="EEE mm/dd/yy hh:mm:ss a"/>
</tstamp>
For more info on the patterns, please go to [1]
Regards
Luis
[1] http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
> -----Original Message-----
> From: S I [mailto:xiamak@hotmail.com]
> Sent: Thursday, April 21, 2005 11:37 AM
> To: user@ant.apache.org
> Subject: RE: AINASL! Help with Parsing Files with Ant
>
>
> Thanks Dominique.
>
> I had looked at Tstamp and I believe that's why I opted for
> cygwin to give
> exactly the pattern I want. I'm not sure or clear how to get
> EXACTLY (e.g.
> Date=Wed 04/13/05 05:08:30 PM) from Tstamp; it seems to be
> very rigid or me
> being new not being able to figure it out. Help!
>
> Thanks :)
>
> ----Original Message Follows----
> From: "Dominique Devienne" <DDevienne@lgc.com>
> Reply-To: "Ant Users List" <user@ant.apache.org>
> To: "Ant Users List" <user@ant.apache.org>
> Subject: RE: AINASL! Help with Parsing Files with Ant
> Date: Thu, 21 Apr 2005 09:21:41 -0500
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> mc3-f12.hotmail.com
> with Microsoft SMTPSVC(6.0.3790.211); Thu, 21 Apr 2005 07:22:11 -0700
> Received: (qmail 96936 invoked by uid 500); 21 Apr 2005 14:22:09 -0000
> Received: (qmail 96920 invoked by uid 99); 21 Apr 2005 14:22:09 -0000
> Received: pass (hermes.apache.org: local policy)
> Received: from junior.lgc.com (HELO junior.lgc.com)
> (134.132.72.99) by
> apache.org (qpsmtpd/0.28) with ESMTP; Thu, 21 Apr 2005 07:22:09 -0700
> Received: from lgchvw01.landmark.lgc.com (lgchvw01.lgc.com
> [134.132.93.107])by junior.lgc.com (8.11.7/8.11.3) with SMTP id
> j3LELuu22761for <user@ant.apache.org>; Thu, 21 Apr 2005
> 09:21:56 -0500 (CDT)
> Received: from 134.132.72.99 by lgchvw01.landmark.lgc.com
> (InterScan E-Mail
> VirusWall NT); Thu, 21 Apr 2005 09:21:47 -0500
> Received: from HOUEXCH903.landmark.lgc.com (houexch903
> [134.132.167.43])by
> junior.lgc.com (8.11.7/8.11.3) with ESMTP id j3LELoN22739for
> <user@ant.apache.org>; Thu, 21 Apr 2005 09:21:50 -0500 (CDT)
> Received: from HOUEXCH902.landmark.lgc.com ([134.132.167.38]) by
> HOUEXCH903.landmark.lgc.com with Microsoft
> SMTPSVC(6.0.3790.211); Thu, 21
> Apr 2005 09:21:40 -0500
> X-Message-Info: JGTYoYF78jHuSHn3GWsSMAVe2r9JcHfuY3ybfP2NV1o=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <mailto:user-unsubscribe@ant.apache.org>
> List-Subscribe: <mailto:user-subscribe@ant.apache.org>
> List-Help: <mailto:user-help@ant.apache.org>
> List-Post: <mailto:user@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
> X-Spam-Check-By: apache.org
> X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: AINASL! Help with Parsing Files with Ant
> Thread-Index: AcVGKdp+TqkzI4U8TAu5J4oJjZW2CQAU1c6Q
> X-OriginalArrivalTime: 21 Apr 2005 14:21:40.0599 (UTC)
> FILETIME=[6F885870:01C5467D]
> X-Virus-Checked: Checked
> Return-Path: user-return-49837-xiamak=hotmail.com@ant.apache.org
>
> > 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
>
>
>
> ---------------------------------------------------------------------
> 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
|