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

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

问题描述

我用 copydir命令复制目录树,但它是德precated。我的目录包含一些子目录,而其中的一些包含的文件和其他含有较多的子目录。

我如何可以复制整个树?


解决方案

 <复制todir =$ {} dest.dir>
        <文件集DIR =$ {}对于src.dir包括=**/>
 < /复制>

相信会做你想要什么...

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.

How can I copy the entire tree?

解决方案

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

believe that will do what you want...

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

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