Nant <copy> and maintain directory structure
-
09-06-2019 - |
Question
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>
Solution
Try:
<fileset baseDir="../src/PrecompiledWeb"><includes name="**/*" />
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow