An additional fact about types you should notice is the possibility of
referencing
type instances, i.e. you define your type
somewhere in your build file and assign an id to it. Later, you can refer to that
type by the id you assigned. Example:
<project> <fileset id="foo"> <include name="*.php" /> </fileset> <!-- Target that uses the type --> <target name="foo" > <copy todir="/tmp"> <fileset refid="foo" /> </copy> </target> </project>
As you can see, the type instance is assigned an id with the id
attribute and later on called by passing a plain fileset
tag to
CopyTask
that only contains the refid
attribute.