You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ben Stover <bx...@yahoo.co.uk> on 2008/11/06 21:35:53 UTC

Display the current classpath in a target?

Assume in an Ant build.xml I execute a certian target.
Before the actual compile is performed I want to output the current
CLASSPATH variable in order to verify that everything is catched what is exppected.
How to I display (at the console) the value of project.classpath resp. classpathref?

Ben



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


AW: Display the current classpath in a target?

Posted by Ja...@rzf.fin-nrw.de.
>> How to I display (at the console) the value of project.classpath
>> resp. classpathref?
>
>If these are properties, you can just <echo> them, if they are ids of
><path> instances, you can create temporary properties and echo those
>
>  <property name="some classpath" refid="id-of-path"/> 
>  <echo>id-of-path's value is ${some classpath}</echo>


<echo>${toString:id-of-path}</echo>
or
<pathconvert ... />


Jan

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


Re: Display the current classpath in a target?

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 06 Nov 2008, Ben Stover <bx...@yahoo.co.uk> wrote:

> How to I display (at the console) the value of project.classpath
> resp. classpathref?

If these are properties, you can just <echo> them, if they are ids of
<path> instances, you can create temporary properties and echo those

  <property name="some classpath" refid="id-of-path"/> 
  <echo>id-of-path's value is ${some classpath}</echo>

Stefan

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