我正在尝试将一个文件夹的内容 移动到 Phing 中的另一个目的地。我不能直接从 SVN 下载内容,因为它们是压缩包。文件解压后,我想移动内容。
我找到了这个语法,但它不起作用: Copy a whole directory with phing
谢谢!
最佳答案
要么您链接的帖子有误,要么自该答案以来 Phing 发生了变化。
这是一个有效的 build.xml
,它将 test
复制到 test2
(.svn
文件夹除外) .语法如下:
<?xml version="1.0" encoding="UTF-8"?>
<project name="Hexdump" default="build">
<target name="build">
<copy todir="test2">
<fileset dir="test">
<include name="**"></include>
<exclude name="**/.svn/**"></exclude>
</fileset>
</copy>
</target>
</project>
关于php - Phing复制文件夹内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16700683/