Ant classpath
To have Ant print out a classpath, you simply have to give yourclasspath a ref-id. This allows you to set up the correct variableslater for printing. Here is an example. This is a snippet Ant fileexample that may look something similar to an ant script you havefloating around:
<?xml version="1.0"?><project name="project" default="default"><property name="lib" value="web/WEB-INF/lib"/><property name="src" value="src"/><property name="dist" value="dist"/><path id="classpath"><fileset dir="${lib}"><include name="**/*.jar"/></fileset></path><target name="default" description="--> description"><javac srcdir="${src}" destdir="${dist}"><classpath refid="classpath"/></javac></target></project>