Print Path object in Ant

hor
To echo the path object use next:

<ivy:cachepath pathid="war.lib.id" conf="war" type="war" transitive="false" />

<pathconvert pathsep="${line.separator}" property="echo.classpath" 
  refid="war.lib.id" />
<echo message="The following classpath is associated with war.lib.id" />
<echo message="${echo.classpath}" />

Thanx to http://www.vogella.com/articles/ApacheAnt/article.html#classpath_print