ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21014] - Touch not precise enough
Date Mon, 23 Jun 2003 16:50:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21014>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21014

Touch not precise enough





------- Additional Comments From jonas.kilian@dresdner-bank.com  2003-06-23 16:50 -------
Sorry, I made myself not very clear:

The problem is NOT the TOUCH itself which is correct including seconds on my 
system. The problem IS the datetime parameter, which does not take seconds as 
input pattern. I think it fails because TOUCH uses internally 

  DateFormat df = DateFormat.getDateTimeInstance(
    DateFormat.SHORT,
    DateFormat.SHORT,
    Locale.US
  );

  [..]

  df.parse( <datetime-pattern> );

and this DateFormat does not accept seconds because it's of type SHORT. After 
changing it to MEDIUM, my modified TOUCH is able to parse the following pattern:

<tstamp>
     <format property="buildtime" pattern="MM/dd/yyyy HH:mm:ss aa"/>
</tstamp>

which it did not parse before, resulting in a java.text.ParseException.

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


Mime
View raw message