concept datatype in category ant

This is an excerpt from Manning's book Ant in Action.
The fact that it’s easy to extend Ant with new classes is one of its core strengths. Often, someone will have encountered the same build step that you have and will have written the task to perform it, so you can just use their work. If not, you can extend it in Java, producing another reusable Ant task or datatype.
In the last chapter, we used Ant to build, archive, and run a Java program. Now we’re going to look at how to control that process through Ant’s datatypes and properties.
In programming language terms, Ant’s tasks represent the functionality offered by the runtime libraries. The tasks are useful only with data, the information that they need to know what to do. Java is an object-oriented language where data and functions are mixed into classes. Ant, although written in Java, differentiates between the tasks that do the work and the data they work with—data represented as datatypes. Ant also has the approximate equivalent of variables in its properties.
To pass data to tasks, you need to be able to construct and refer to datatypes and properties in a build file. As with tasks, datatypes are just pieces of XML, pieces that list files or other resources that a task can use. This chapter introduces datatypes and properties. It does go into some depth, so don’t be afraid to skip bits and return to them later. We’ll start with the basic concepts.
Listing 8.3. Declaring the datatypes for the project: the paths and filesets that will be referred to by refid references in tasks.
<path id="compile.classpath"> <fileset dir="lib"> <include name="*.jar"/> </fileset> </path> <path id="test.compile.classpath"> <path refid="compile.classpath"/> <pathelement location="${target.jar}"/> </path> <path id="test.classpath"> <path refid="test.compile.classpath"/> <pathelement location="${test.classes.dir}"/> </path> <path id="test.forking.classpath"> <path refid="test.classpath"/> <pathelement path="${java.class.path}"/> </path> <patternset id="failing.tests"> <exclude unless="run.failing.tests" name="d1/core/test/JavaAssertTest.*"/> </patternset> <fileset id="ftp.upload.fileset" dir="${dist.dir}"> <include name="*.zip"/> <include name="*.zip.sha1"/> <include name="*.tar.gz"/> <include name="*.tar.gz.sha1"/> </fileset>