title: Ant: How to echo a path when it contains a refid?
body: <p>Please see this ant snippet below -- </p>
  
  <pre><code>&lt;path id="classpath.ejb"&gt;
      &lt;path refid="${java.class.path}"/&gt;
      &lt;pathelement location="${my.id}_session_${version.suffix}.jar"/&gt;
  &lt;/path&gt;
  </code></pre>
  
  <p>Here I want to see the content of <code>classpath.ejb</code>, the fact is that it is composed of two elements, one is the generic system <code>$CLASSPATH</code> (supplied as a <code>refid</code>) and the second one is some another jar. Just for my curiosity, I want to make sure the contents of <code>classpath.ejb</code> looks fine. But when I try to echo like -- </p>
  
  <pre><code>&lt;echo message="java.class.path: ${java.class.path}"/&gt;
  &lt;echo message="classpath.ejb: ${toString:classpath.ejb}"/&gt;
  </code></pre>
  
  <p>The first echo works, but in the second line, ant says that --</p>
  
  <pre><code>BUILD FAILD
  build.xml:103:Reference &lt;...my whole $CLASSPATH string...&gt; not found. 
  </code></pre>
  
  <p>Any idea ??</p>