ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Displaying path info
Date Fri, 22 Nov 2002 23:54:03 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: Nau, Michael [mailto:Michael.Nau@pyxis.com] 
Sent: Friday, November 22, 2002 5:47 PM
To: ant-user@jakarta.apache.org
Subject: Displaying path info

Is there anyway to print (echo) what is currently in a particular path?

For example:

<path id="compile.cp">
  <pathelement location="${j2ee.jar}"/>
  <pathelement location="${junit.jar}"/>
</path>

<echo> compile.cp = ${compile.cp} </echo>

This doesn't work, is there another way?

Mike.

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

--
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