Many of the standard tasks in ant take one or more filesets which follow the rules given here. This list, a subset of those, is a list of standard ant tasks that can act as an implicit fileset:
<checksum> <copydir> (deprecated) <delete> <dependset> <fixcrlf> <javac> <replace> <rmic> <style> (aka <xslt>) <tar> <zip> <ddcreator> <ejbjar> <ejbc> <cab> <icontract> <native2ascii> <netrexxc> <renameextensions> <depend> <ilasm> <csc> <vbc> <translate> <vajexport> <image> <jlink> (deprecated) <jspc> <wljspc>Examples
<copy todir="${dist}"> <fileset dir="${src}" includes="**/images/*" excludes="**/*.gif" /> </copy>This copies all files in directories called images that are located in the directory tree defined by ${src} to the destination directory defined by ${dist}, but excludes all *.gif files from the copy.
<copy todir="${dist}"> <fileset dir="${src}"> <include name="**/images/*"/> <exclude name="**/*.gif"/> </fileset> </copy>The same as the example above, but expressed using nested elements.
<delete dir="${dist}"> <include name="**/images/*"/> <exclude name="**/*.gif"/> </delete>
Deleting the original set of files, the delete task can act as an implicit fileset.
Default Excludes There are a set of definitions that are excluded by default from all directory-based tasks. They are:
**/*~ **/#*# **/.#* **/%*% **/._* **/CVS **/CVS/** **/.cvsignore **/SCCS **/SCCS/** **/vssver.scc **/.svn **/.svn/** **/.DS_StoreIf you do not want these default excludes applied, you may disable them with the defaultexcludes="no" attribute.