ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cohen" <SCo...@sportvision.com>
Subject RE: Printing a path
Date Mon, 03 Feb 2003 20:10:04 GMT
Thanks, Erik.  Wow, straight from the horse's mouth and so prompt too.
pathconvert did the trick.

Thanks again.

-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com] 
Sent: Monday, February 03, 2003 1:10 PM
To: Ant Users List
Subject: Re: Printing a path


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


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


Mime
View raw message