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" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <[email protected]>
To: "Ant Users List" <[email protected]>
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 <[email protected]>; 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 <[email protected]>; 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 [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:[email protected]>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list [email protected]
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: [EMAIL PROTECTED]


> From: Matt Benson [mailto:[EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to