ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gröndal <>
Subject RE: How to echo the classpathref?
Date Wed, 09 Jul 2008 08:07:51 GMT

I usually use a macro such as:

<!-- Macro for echoing an entire fileset by reference -->
<macrodef name="echo-fileset">
	<attribute name="filesetref" />
		<pathconvert pathsep="${line.separator}" property="@{filesetref}.echopath" refid="@{filesetref}"/>
		<echo>   ------- echoing fileset @{filesetref} -------</echo>

And then:

<target name="print">
	<echo-fileset filesetref=""/>

This gives me the opportunity to convert the path separator and such.


-----Original Message-----
From: Hans Schwaebli [] 
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="">
        <fileset dir="${eclipse-home}/plugins">
            <include name="**/*.jar"/>
    <target name="echo">

It prints nothing although there are jars in this dir.

Any idea how to echo it?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message