Hi! I usually use a macro such as:
<!-- Macro for echoing an entire fileset by reference --> <macrodef name="echo-fileset"> <attribute name="filesetref" /> <sequential> <pathconvert pathsep="${line.separator}" property="@{filesetref}.echopath" refid="@{filesetref}"/> <echo> ------- echoing fileset @{filesetref} -------</echo> <echo>[EMAIL PROTECTED]</echo> </sequential> </macrodef> And then: <target name="print"> <echo-fileset filesetref="all.you.can.need.class.path"/> </target> This gives me the opportunity to convert the path separator and such. //daniel -----Original Message----- From: Hans Schwaebli [mailto:[EMAIL PROTECTED] Sent: den 9 juli 2008 09:43 To: Ant Users List Subject: How to echo the classpathref? For debugging purpose I want to echo the actual classpathref. But it does not work by using something like this: <path id="all.you.can.need.class.path"> <fileset dir="${eclipse-home}/plugins"> <include name="**/*.jar"/> </fileset> </path> <target name="echo"> <echo>${all.you.can.need.class.path}</echo> </target> It prints nothing although there are jars in this dir. Any idea how to echo it? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]