开发者

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

开发者 https://www.devze.com 2023-04-02 06:18 出处:网络
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 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

精彩评论

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