ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: timestamp is difficult to read.
Date Tue, 16 Jan 2001 16:25:40 GMT
The <tstamp> task has already been reworked to allow for date formatting.
To get this functionality now, pick up latest Tstamp.java from CVS.

Diane

--- "Zhu, Yao" <Yao.Zhu@gs.com> wrote:
> Hi,
>  
> I don't know if anybody found the time stamp difficult to read,
> especially
> the TSTAMP.  Can we include some style like hh:mm:ss to TSTAMP? Or
> something
> like UNIX default time display "weekday month day hh:mm:ss timezone
> year".
>  
> I really hate it to modify ant source codes for every ant new release.
> If
> any of the ant committer is willing, can you add the following lines to
> <ant>/src/main/org/apcache/tools/ant/taskdefs/Thstamp.java:
>  
> inside public void execute() throws BuildException {
> try{
>     ...
>                 SimpleDateFormat unixDate  = new SimpleDateFormat ("EEE
> MMM
> dd HH:mm:ss zzz yyyy", Locale.US);
>                 //  I readly do not care which name to use, as long as
> we
> have this property.
>                 project.setProperty("UNIXDEFAULTDATE",
> unixDate.format(d));
> } catch(Excpetion e) {
>     throw new BuildException(e);
> }
> }
>  
> I don't know where to send this email for this feature request, so I
> just
> send it to ant user mailing list.  I apologize if I annoyed anybody. 
>  
> Cheers.
>  
> -Yao Zhu
>  


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

Mime
View raw message