3
这真的很容易选择具有特定文件名,或者使用ANT fileset
文件类型的文件时,但是我还没有没有想出如何写一个文件集删除与以点开头的文件名中的所有文件,如.builtpath
和.hgignore
,但不包括.htaccess
;Apache Ant:用文件集选择文件?
这是我当前的文件:
<delete includeemptydirs="true">
<fileset dir="${temp.dir}/fromRepo">
<exclude name=".htaccess"/>
<include name="**/*" /> <!-- How to select files starting with .?!-->
</fileset>
</delete>