Hi Sophie,

You can use the move task for this. Something like this should work:

<move todir="c:\foo" includeemptydirs="true">
    <fileset basedir="c:\bar">
        <include name="**\*" />
    </fileset>
</move>

-Mike
________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 12:26 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Renaming Folders



Hello, 

What is the best way to rename a folder using NANT? 

I see a copy task, but not a rename task.  Am I missing something? 

I also see a move task.  Is there a way to use this task to rename a
folder?  It will have a large number of files in it so I don't want to
copy them if at all possible. 

Thanks, 

Sophie Bunce 


_________________________________________________

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk 
- Portuguese - Svenska: www.cardinalhealth.com/legal/email

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to