ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
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}" />

--DD

-----Original Message-----
From: SainTiss [mailto:saintiss@gmx.net] 
Sent: Tuesday, November 26, 2002 10:41 AM
To: Ant Mailing
Subject: echo classpath

Hi,

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/jbossall-client.jar"/>
        <pathelement location="${jboss.home}client/log4j.jar"/>
        <pathelement location="../testclient/"/>
        <pathelement location="st-test-ejb.jar"/>
    </path> 


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?

Thanks

Hans



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message