ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <>
Subject Re: cvs commit: ant/src/etc/testcases/taskdefs touch.xml
Date Sun, 08 Feb 2004 21:13:25 GMT
I had seen that TouchTest was failing on my Win 2K laptop.

Now it is fixed.

What I have learnt from this :

1) File.setLastModified(long) is not a void function, but returns *boolean*.

2) we should have a look at the return value

on my PC, for the time [01.01.1970;29.12.1979] it returns false 
(although normally Microsoft FileTime starts with 01.01.1601 ]

We should simplify FileUtils.setLastModified (don't think we need to 
introspect anything any more, do we ?).
We should also throw a BuildException if the call to 
File.setLastModified returns false.

Or ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message