如何使用 Ant 复制目录 [英] How to copy a directory using Ant

查看:23
本文介绍了如何使用 Ant 复制目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 copydir 来复制目录树,但它已被弃用.我的目录包含一些子目录,其中一些包含文件,其他包含更多子目录.

I have used copydir to copy a directory tree but it is deprecated. My directory contains some sub-directories, and some of those contain files and others contain more sub-directories.

如何复制整棵树?

推荐答案

<copy todir="${dest.dir}" >  
    <fileset dir="${src.dir}" includes="**"/>  
</copy> 

相信会做你想做的...(递归复制完成)

believe that will do what you want... (Recursive copy done)

这篇关于如何使用 Ant 复制目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆