ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: printing references: need solution
Date Wed, 23 Oct 2002 23:12:23 GMT
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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 


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


Mime
View raw message