开发者

How to copy one folder content to another folder in Nant script?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜