用 phing 复制整个目录 [英] Copy a whole directory with phing

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

问题描述

有谁知道是否可以使用 phing 将包含文件和子文件夹(joomla 核心下载)的整个文件夹复制到另一个文件夹,但没有 .svn 文件夹.

Does anyone know if its possible to use phing to copy an entire folder with files and sub folders (joomla core download) to another folder, but without the .svn folders.

我已经使用 SVN 下载了 joomla,我想使用 phing 将其导出到我的 joomla dev 文件夹,而无需列出每个文件类型.我的计划是用它来让我的开发人员从后备箱中获得最新信息.

I have downloaded joomla using SVN, and I want to export it to my joomla dev folder using phing, without the need to have to list every single file type. My plan is to use this to keep my dev updated from the trunk.

我知道如何排除

但是无论如何都找不到包含所有内容而不列出每个文件,或者试图猜测每个文件类型,以防万一我错过了什么!

But cannot find anyway to include everything without listing every file, or trying to guess every file type, just in case I miss something!

建议保罗

推荐答案

看起来 phing 是模仿 ant 的?试试这个:

Looks like phing is modeled after ant? Try this:

<copy todir="my/joomla/dev">
  <fileset dir="joomla/checkout">
    <include>**</include>
    <exclude>**/.svn/**</exclude>
  </fileset>
</copy>

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

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