I need to copy 开发者_C百科folder A content to folder B using Nant script. If folder B is already existing it should delete first and create new folder named B and copy folder A content to it. How can I do that using Nant script?
Please help me.
Thanks
You should be able to use a combination of the DELETE and MOVE tasks...
<delete dir="${build.dir}" />
<move todir="${build.dir}">
<fileset basedir="bin">
<include name="*.dll" />
</fileset>
</move>
http://nant.sourceforge.net/release/0.85/help/tasks/delete.html
http://nant.sourceforge.net/release/0.85/help/tasks/move.html
精彩评论