Hi Juergen, Read the docs on the property task. You want "refid" instead of "location". Quote: "location - Sets the property to the absolute filename of the given file." "refid - Reference to an object defined elsewhere. Only yields reasonable results for references to PATH like structures or properties." Rob direct: +1.613.270.5796 | robert.echlin@windriver.com > -----Original Message----- > From: Knuplesch, Juergen [mailto:Juergen.Knuplesch@icongmbh.de] > Sent: Friday, June 03, 2011 9:09 AM > To: Ant Users List > Subject: references id names stored in properties > > Hello, > > > > I want to call Ant from another Ant File and send some > filsets: sth like this: > > > > > dir="${example.basedir}" /> > > > > > location="local.fileset1,local.fileset2" /> > > > > > target="doit" > > inheritall="true" > > inheritrefs="true"> > > > value="${local.filesetlist}" /> > > > > > > > > The variable local.filesetlist stores now a list of two filset ids. > > > > In antfile2 I want to do sth. like this (using antcontrib): > > > > > param="pack.fileset.id" > > parallel="false"> > > > > Copy @{pack.fileset.id} > > > > preservelastmodified="true" overwrite="true"> > > > > > > > > > > > > > > I get the following error: > > D:\Entwicklung\Build\ReleasePaket\buildRelease\ant\dopeCreateP reparePackDir.xml:94: No directory specified for fileset. > > > > Both filesets exist in the Antfile (I used inheritrefs=true), > but I can not access them using a property. (I can if I use > the names e.g. local.fileset1) > > I use ANT 1.7.1. > > > > Is this, how it should be? > > Is this a bug? > > > > Regards > > > > Juergen > > -- > > Jürgen Knuplesch www.icongmbh.de > > > icon Systemhaus GmbH Tel. +49 711 806098-275 > > Sophienstraße 40 juergen.knuplesch@icongmbh.de > > D-70178 Stuttgart Fax. +49 711 806098-299 > > > > Geschäftsführer: Uwe Seltmann > > HRB Stuttgart 17655 > > USt-IdNr.: DE 811944121 > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org