【发布时间】:2011-01-10 02:54:19
【问题描述】:
在 ANT 中使用fileset 选择具有特定文件名或文件类型的文件真的很容易,但是我还没有弄清楚如何编写一个文件集来删除文件名以点开头的所有文件,例如.builtpath和.hgignore,但不包括.htaccess;
这是我当前的文件:
<delete includeemptydirs="true">
<fileset dir="${temp.dir}/fromRepo">
<exclude name=".htaccess"/>
<include name="**/*" /> <!-- How to select files starting with .?!-->
</fileset>
</delete>
【问题讨论】: