Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 619196DA2 for ; Fri, 3 Jun 2011 13:22:05 +0000 (UTC) Received: (qmail 21178 invoked by uid 500); 3 Jun 2011 13:22:04 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 21131 invoked by uid 500); 3 Jun 2011 13:22:04 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 21123 invoked by uid 99); 3 Jun 2011 13:22:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 13:22:04 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [147.11.1.11] (HELO mail.windriver.com) (147.11.1.11) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 13:21:57 +0000 Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb [147.11.189.41]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id p53DLXEC014604 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 3 Jun 2011 06:21:33 -0700 (PDT) Received: from ALA-MBA.corp.ad.wrs.com ([169.254.1.223]) by ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) with mapi id 14.01.0255.000; Fri, 3 Jun 2011 06:21:33 -0700 From: "Echlin, Robert" To: Ant Users List Subject: RE: references id names stored in properties Thread-Topic: references id names stored in properties Thread-Index: Acwh73BIBFfE7JxEQXOODcwskWI08QAAU+5Q Date: Fri, 3 Jun 2011 13:21:36 +0000 Message-ID: References: <06080D44730F41428BAF2168FA8BDD80058B9AD5@icsrv02.icongmbh.de> In-Reply-To: <06080D44730F41428BAF2168FA8BDD80058B9AD5@icsrv02.icongmbh.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.224.140.203] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi Juergen, Read the docs on the property task. You want "refid" instead of "location". Quote:=20 "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 =20 > -----Original Message----- > From: Knuplesch, Juergen [mailto:Juergen.Knuplesch@icongmbh.de]=20 > Sent: Friday, June 03, 2011 9:09 AM > To: Ant Users List > Subject: references id names stored in properties >=20 > Hello, >=20 > =20 >=20 > I want to call Ant from another Ant File and send some=20 > filsets: sth like this: >=20 > =20 >=20 > =20 > dir=3D"${example.basedir}" /> >=20 > >=20 > =20 > location=3D"local.fileset1,local.fileset2" /> >=20 > =20 >=20 > =20 > target=3D"doit" >=20 > inheritall=3D"true" >=20 > inheritrefs=3D"true"> >=20 > =20 > value=3D"${local.filesetlist}" /> >=20 > =20 >=20 > >=20 > =20 >=20 > The variable local.filesetlist stores now a list of two filset ids. >=20 > =20 >=20 > In antfile2 I want to do sth. like this (using antcontrib): >=20 > =20 >=20 > =20 > param=3D"pack.fileset.id" >=20 > parallel=3D"false"> >=20 > >=20 > Copy @{pack.fileset.id} >=20 > =20 >=20 > preservelastmodified=3D"true" overwrite=3D"true"> >=20 > >=20 > >=20 > =20 >=20 > >=20 > >=20 > =20 >=20 > I get the following error: >=20 > D:\Entwicklung\Build\ReleasePaket\buildRelease\ant\dopeCreateP reparePackDir.xml:94: No directory specified for fileset. >=20 > =20 >=20 > Both filesets exist in the Antfile (I used inheritrefs=3Dtrue),=20 > but I can not access them using a property. (I can if I use=20 > the names e.g. local.fileset1) >=20 > I use ANT 1.7.1. >=20 > =20 >=20 > Is this, how it should be? >=20 > Is this a bug? >=20 > =20 >=20 > Regards >=20 > =20 >=20 > Juergen >=20 > --=20 >=20 > J=FCrgen Knuplesch www.icongmbh.de=20 > =20 >=20 > icon Systemhaus GmbH Tel. +49 711 806098-275 >=20 > Sophienstra=DFe 40 juergen.knuplesch@icongmbh.de >=20 > D-70178 Stuttgart Fax. +49 711 806098-299 >=20 > =20 >=20 > Gesch=E4ftsf=FChrer: Uwe Seltmann >=20 > HRB Stuttgart 17655 >=20 > USt-IdNr.: DE 811944121=20 >=20 > =20 >=20 > =20 >=20 > = --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org