<copy> is overwriting newer files with older files
because it checks age based on created date rather
than modified date. I'm pretty sure that it should be
modified date, otherwise simply relocating a file prior to
the copy task will make the file look newer than it really
is. As an example: if you create a file, copy it elsewhere
and then go back and modify the original, copy would
not overwrite the previously copied file with the more
recently modified one.
Considering that the <touch> task is touching the
modified date, I think that <copy>'s use of the created
date is a bug rather than the intended behaviour.
File in directory:
Created: Monday, March 14, 2005, 7:31:44 PM
Modified: Monday, March 14, 2005, 7:31:35 PM
Accessed: Today, March 16, 2005, 11:12:36 AM
File overwriting it:
Created: Today, March 16, 2005, 11:23:44 AM
Modified: Monday, March 07, 2005, 12:16:11 PM
Accessed: Today, March 16, 2005, 11:23:44 AM
NAnt 0.85 (Build 0.85.1793.0; rc1; 11/28/2004)
Framework version 1.1.4322
OS Version: Win2000 Server 5.00.2195 SP4
Gert Driesen
Tasks
0.85
Public
|
Date: 2005-04-12 13:24 Logged In: YES |
|
Date: 2005-04-10 13:37 Logged In: YES |
|
Date: 2005-04-07 20:29 Logged In: YES |
|
Date: 2005-03-21 16:22 Logged In: YES |
|
Date: 2005-03-18 17:34 Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| default.build | test build file | Download |
| flattencopy.build | Build using flatten | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | - | 2005-04-12 13:24 | swinslow |
| status_id | Open | 2005-04-12 13:24 | swinslow |
| resolution_id | None | 2005-04-10 13:37 | drieseng |
| resolution_id | Remind | 2005-04-07 20:29 | drieseng |
| resolution_id | Works For Me | 2005-03-23 14:26 | swinslow |
| File Added | 126592: flattencopy.build | 2005-03-21 16:22 | swinslow |
| File Added | 126260: default.build | 2005-03-18 17:34 | drieseng |
| assigned_to | nobody | 2005-03-18 17:34 | drieseng |
| resolution_id | None | 2005-03-18 17:34 | drieseng |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use