ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gröndal <daniel.gron...@ericsson.com>
Subject RE: How to echo the classpathref?
Date Wed, 09 Jul 2008 08:07:51 GMT
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>${@{filesetref}.echopath}</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:hans_schwaebli@yahoo.com] 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message