Steven Williams
Steven Williams

Reputation: 1014

Nant <copy> and maintain directory structure

How do you use the nant <copy> command and maintain the directory structure? This is what I am doing, but it is copying all the files to a single directory.

<copy todir="..\out">
  <fileset>
    <includes name="..\src\PrecompiledWeb\**\*" />
  </fileset>
</copy>

Upvotes: 8

Views: 5763

Answers (1)

Brian Chiasson
Brian Chiasson

Reputation:

Try:

<fileset baseDir="../src/PrecompiledWeb"><includes name="**/*" />

Upvotes: 15

Related Questions