Copy a whole directory with phing

女生的网名这么多〃 提交于 2019-11-29 03:23:01

问题


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.

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.

I know how to exclude

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

Suggestions Paul


回答1:


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>



回答2:


Try svn export, this will send all the files in your working copy to another directory (sans .svn etc). Then you can phing away.



来源:https://stackoverflow.com/questions/1015412/copy-a-whole-directory-with-phing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!