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:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
