如何从phing复制任务中排除目录

rkm*_*max 5 phing task

我在Windows 7上安装了Phing 2.4.7.1并使用了cygwin bash shell

我创建了一个Phing任务来将文件复制到本地目录并压缩文件,但我尝试排除某些目录但没有成功.复制整个目录

任务如下:

<copy todir="${builddir}" includeemptydirs="true" >
    <fileset dir="." defaultexcludes="true">                
         <exclude name="cache/*" />
         <exclude name="build.*" />
         <exclude name="log/*" />
         <exclude name=".git" />
         <exclude name="/data/*" />
         <exclude name="/nbproject" />
         <exclude name="*~" />
    </fileset>
</copy>
Run Code Online (Sandbox Code Playgroud)

cwe*_*ske 8

使用两个*子文件:

<exclude name="cache/**"/>
Run Code Online (Sandbox Code Playgroud)