I'll just paste the message below without the happy patch (since it violated some arbitrary post length limit) so that I can get your feedback on its utility for others.  If I'm not shouted down, somebody can suggest a good method for getting the patch out there, if the attachment vanishes.

 

 

-----Original Message-----
From: David Reed
Sent: Thursday, September 04, 2003 1:15 AM
To: NAnt Developers ([EMAIL PROTECTED])
Subject: IfTask for file contents comparison?

 

Maybe this isn't the right way to do this, but I needed to be able to compare file contents (not just timestamps), and I couldn't find another way to do this comparison with existing code.  School me if I'm just lost.  :)

 

I'm proposing the addition of an attribute called difffile to if/ifnot which will work with the attribute comparefile (or the element comparefiles, which is just collateral damage to me) to determine whether the contents of difffile matches the contents of comparefile.

 

I'm happy with the way it's working for me, but I'm open to suggestions that will make it more ubiquitous if somebody's got a better idea than this patcheroo.  My documentation sux, sorry; I'm learnin' better XML commentary and NDoc sometime next month.

 

Attachment: iftask.patch
Description: iftask.patch

Reply via email to