You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Rum Pel <ru...@hotmail.com> on 2002/06/04 06:40:17 UTC

printing classpath

<path id = "my.classpath">
   <pathelement path="."/>
   <pathelement path="${classes}"/>
   <pathelement location="lib/xerces.jar"/>
</path>

Now how do I echo my.classpath? ${my.classpath} didnt work.

--rp

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: printing references: need solution

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
You're trying to print out a fileset rather than a path.  The <property 
refid="..."/> trick only works on paths (or any datatype that has a 
friendly toString() method), but not fileset.

I don't think it worked differently in 1.4, but I could be wrong about that.

	Erik


scollins wrote:
> In Ant 1.5.1 this solution  echos "[echo]
> org.apache.tools.ant.types.FileSet@3ba6f3ef"
> rather than the actual contents of the FileSet as it did in Ant 1.4.
> Any solution?
> 
> Thanks, Steve
> 
> 
> 
> Conor MacNeill wrote:
> 
> 
>>Rum Pel wrote:
>>
>>><path id = "my.classpath">
>>>   <pathelement path="."/>
>>>   <pathelement path="${classes}"/>
>>>   <pathelement location="lib/xerces.jar"/>
>>></path>
>>>
>>>Now how do I echo my.classpath? ${my.classpath} didnt work.
>>>
>>
>>This is becoming a FAQ
>>
>><property name="my.classpath.string" refid="my.classpath"/>
>>
>>Then use ${my.classpath.string}
>>
>>Conor
> 
> 
> 
> 
>>
>>--
>>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>>For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


printing references: need solution

Posted by scollins <sc...@bea.com>.
In Ant 1.5.1 this solution  echos "[echo]
org.apache.tools.ant.types.FileSet@3ba6f3ef"
rather than the actual contents of the FileSet as it did in Ant 1.4.
Any solution?

Thanks, Steve



Conor MacNeill wrote:

> Rum Pel wrote:
> > <path id = "my.classpath">
> >    <pathelement path="."/>
> >    <pathelement path="${classes}"/>
> >    <pathelement location="lib/xerces.jar"/>
> > </path>
> >
> > Now how do I echo my.classpath? ${my.classpath} didnt work.
> >
>
> This is becoming a FAQ
>
> <property name="my.classpath.string" refid="my.classpath"/>
>
> Then use ${my.classpath.string}
>
> Conor



>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: printing classpath

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
It's been one for quite a while!

    http://www.jguru.com/faq/view.jsp?EID=471917

:))



----- Original Message -----
From: "Conor MacNeill" <co...@cortexebusiness.com.au>
To: "Ant Users List" <an...@jakarta.apache.org>
Sent: Tuesday, June 04, 2002 12:52 AM
Subject: Re: printing classpath


> Rum Pel wrote:
> > <path id = "my.classpath">
> >    <pathelement path="."/>
> >    <pathelement path="${classes}"/>
> >    <pathelement location="lib/xerces.jar"/>
> > </path>
> >
> > Now how do I echo my.classpath? ${my.classpath} didnt work.
> >
>
>
> This is becoming a FAQ
>
> <property name="my.classpath.string" refid="my.classpath"/>
>
> Then use ${my.classpath.string}
>
> Conor
>
>
>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: printing classpath

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Rum Pel wrote:
> <path id = "my.classpath">
>    <pathelement path="."/>
>    <pathelement path="${classes}"/>
>    <pathelement location="lib/xerces.jar"/>
> </path>
> 
> Now how do I echo my.classpath? ${my.classpath} didnt work.
> 


This is becoming a FAQ

<property name="my.classpath.string" refid="my.classpath"/>

Then use ${my.classpath.string}

Conor




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>