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>