ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: echo classpath
Date Tue, 26 Nov 2002 16:43:52 GMT

Brute force:

<path id="path" .../>
<property name="path" refid="path"/>
<echo message="path = ${path}" />

Nicely formatted way:

<path id="path" .../>
<pathconvert property="formatted-path"
             pathsep="${line.separator}       "
             refid="path" />
<echo message="path = ${formatted-path}" />


-----Original Message-----
From: SainTiss [] 
Sent: Tuesday, November 26, 2002 10:41 AM
To: Ant Mailing
Subject: echo classpath


A simple question:

I've defined a path outside of any targets:

    <!-- Define client class path -->
    <path id="client.class.path">
<!--        <pathelement path="${build.classpath}"/> -->
        <pathelement location="${jboss.home}client/log4j.jar"/>
        <pathelement location="../testclient/"/>
        <pathelement location="st-test-ejb.jar"/>

now I'm trying to echo this in a target, but the verbose ant output says
the property isn't defined:
<echo message="${client.class.path}"/>

Does anyone know how I can get the path to be echoed?



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

View raw message