<?xml version="1.0" encoding="UTF-8"?> <project name="fileset" default="compile"> <fileset dir="src" includes="**/*.java" id="source.fileset" /> <target name="cc"> <copy todir="backup"> <fileset refid="source.fileset" /> </copy> </target> <echo>${name}</echo> <target name="compile"> <javac srcdir="src" destdir="build/classes"> <classpath> <pathelement path="build/classes;lib/*.jar" /> </classpath> </javac> </target> </project>