> From: Stuart Harper [mailto:[EMAIL PROTECTED]
> I have an Ant script which builds a fileset and then converts it to a
> property like so:
> 
> <fileset id="debug.class.files" dir="${dir.classes}">
> <include name="**/Debug*.class"/>
> </fileset>
> 
> <property name="debug.classlist" refid="debug.class.files"/>
> 
> This works perfectly in Ant 1.6.3 but in 1.5 it doesn't. Looking at
debug
> trace I see something like:
> 
> "Adding reference: debug.class.files ->
> [EMAIL PROTECTED]
> 
> Setting project property: debug.classlist ->
> [EMAIL PROTECTED]"
> 
> I get the fileset reference name instead of the actual fileset. Is
there
> any
> way to make this work in older versions of Ant?

toString() was added on FileSet in Ant 1.6.x only.

Pre Ant 1.6.x, you need an explicit <pathconvert>. --DD

PS: Path.toString OTOH is older. So if you wrap your <fileset>
    Into a <path>, and id the path, the refid will work.
    It's not as obvious to read. Go with <pathconvert>.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to