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:[EMAIL PROTECTED]] 
Sent: Friday, November 22, 2002 5:47 PM
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to