Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Converting Fileset to Propert in Ant 1.5 and below

Converting Fileset to Propert in Ant 1.5 and below

2005-05-05       - By Stuart Harper
Reply:     1     2     3  

Hi,

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 ->
org.apache.tools.ant.types.FileSet@(protected)

Setting project property: debug.classlist ->
org.apache.tools.ant.types.FileSet@(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?

Stuart.

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.