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 a path
Date Mon, 03 Feb 2003 19:09:57 GMT
On Monday, February 3, 2003, at 02:06  PM, Steve Cohen wrote:
> On page 80 of Erik Hatcher & Steve Loughran's "Java Development with
> Ant" is given a technique for "Obtaining a string representation of a
> path".

Good reference, I might add :)  But something wrong in what you did....

> produces this output:
> global.class.path=org.apache.tools.ant.types.FileSet@6e22f7

You passed it a reference to a FileSet, not a Path.  Only a Path works 
properly with this trick.

> Not exactly what I was looking for.  I should mention that this path is
> created in a different buildfile, and passed to the one containing this
> code via the inheritrefs mechanism.
>
> Has anyone previously encountered this?  Is it a known bug?

Nope, works as it should, if you pass it a Path.

<pathconvert> might be what you're looking for?

	Erik


Mime
View raw message