ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [PATCH] Consolidated copy, move, and delete tasks
Date Mon, 11 Sep 2000 13:41:21 GMT
By the same file I assume you mean the source file has the same datestamp 
and same size as the destination file.  Is that sufficient to determine if 
a file is identical?  Personally, for this system I'd say yes.  What are 
the odds you are going to have two files of the same name, same size, same 
datestamp, but have different content.

Any objections?

Glenn McAllister
Software Developer. IBM Toronto Lab, (416) 448-3805
"An approximate answer to the right question is better than the 
right answer to the wrong question." - John W. Tukey

Please respond to 
Subject:        Re: [PATCH] Consolidated copy, move, and delete tasks

At 01:04  9/9/00 +1000, you wrote:
>Looks very kewl but would you be able to change one thing. Every time you
>check file.lastModified() > destFile.lastModified() in copy task could 
>add a message when it fails ? (ie file blah not copied as destination is
>newer than src ?)
>Other than that it is great and solves all my gripes with the
>copy/move/delete tasks :P

One more request - could you detect if files copied over are same file and
if so ignore it (with a verbose-level warning perhaps ??)


| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |

View raw message