Search code examples
buildautomationcopyreleasenant

How to copy one directory with all content using nant script?


I need to copy one folder with all content.

My folder structure is like this

Main Folder

folder1

`1.zip`
`2.zip`

Folder2

`3.zip`
`4.zip`

How to copy main folder with all these content using nant script.

Please help me. Thanks


Solution

  • <copy todir="newDir">
      <fileset basedir="oldDir">
         <include name="**/*" />
      </fileset>
    </copy>