Bugs item #2992852, was opened at 2010-04-27 12:26
Message generated for change (Tracker Item Submitted) made by sissarte
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2992852&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: unknown
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Citizen Insane (sissarte)
Assigned to: Nobody/Anonymous (nobody)
Summary: <uptodate> task may return wrong result

Initial Comment:
The 'UpToDate' task will return wrong result in case there is more than 1 file 
in "targetfiles" and if some of them exists, but others don't.

This is because the test on primary file is wrong:

FileInfo primaryFile = _targetFiles.MostRecentLastWriteTimeFile;
if (primaryFile == null || !primaryFile.Exists) {
    value = false;
    Log(Level.Verbose, "Destination file(s) do(es) not exist.");
} else {
    [blablabla...]
    Log(Level.Verbose, "{0} is newer than {1}.", newerFile, primaryFile.Name);
}

primaryFile ==> Not null (because some target files exist already)
primaryFile.Exists ==> true (because some target files exist already)
And patatra ...



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2992852&group_id=31650

------------------------------------------------------------------------------
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to