Hi Bob,

 

This is now fixed in CVS, and the latest nightly build:

http://nant.sourceforge.net/nightly/latest/

 

Thanks for the report!

 

Gert

 

From: Bob Archer [mailto:bob.arc...@amsi.com] 
Sent: vrijdag 24 april 2009 17:38
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] bug in move task?

 

I am using the following:

 

<move file="filename.tmp" tofile="filename.txt" />

 

I get an error that the file already exists. But, the doc seems to imply
that if the source file is newer than the target file it will overwrite. Or
you can set overwrite to true to over write a newer file.

 

Shouldn't it just overwrite the file silently if my .txt file is older than
my .tmp file?

 

I set overwrite to true and it works ok. But, according to the docs I
shouldn't have to do that.

 

Also, should the build file if nothing is moved due to the target being
newer? Should it just not do the move. Isn't this how copy works? Yes, it
does, I changed it to copy without needing the overwrite=true and it worked
fine. Of course, my original is still there is that case.

 

BTW: This is in version .86.3317 nightly 1/30/2009

 

(Although I downloaded this as the 4/22 nightly build.)

 

BOb

 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.285 / Virus Database: 270.12.2/2072 - Release Date: 04/21/09
16:48:00

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to