A property is defined as follows:
<property name="lib" value="../lib"/>
A property can be used inside another string literal as shown here: <fileset dir="${lib}">
<fileset dir="${lib}">
A path allows you to define such things as classpaths (for compiling Java source and other tasks that need classpaths). A path consists of pathelements, which is a semicolon-delimited list of subdirectories or JAR files and file sets. Listing 20.2 uses the file set to add all the JAR files in the lib directory to the classpath defined with the ID myclasspath. Later in Listing 20.2 myclasspath is used by the javac task.
A path is defined as follows:<path id=" myclasspath">
<pathelement path=".;${lib}/log4j.jar"/>
<fileset dir="${lib}">
A path can be used by a task using the classpath subelement:
<javac srcdir="./src" destdir="${ outputdir}/classes" > <classpath refid="myclasspath"/>
</javac>