Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 72973 invoked from network); 31 Jul 2006 10:38:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Jul 2006 10:38:52 -0000 Received: (qmail 40936 invoked by uid 500); 31 Jul 2006 10:38:46 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 40898 invoked by uid 500); 31 Jul 2006 10:38:46 -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 40886 invoked by uid 99); 31 Jul 2006 10:38:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 03:38:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.201.183.194] (HELO sscd0002.dmz.huk.de) (193.201.183.194) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 03:38:45 -0700 Received: from sxf00001.lan.huk-coburg.de (unverified) by sscd0002.dmz.huk.de (HUK-COBURG Mailrelay2) with ESMTP id for ; Mon, 31 Jul 2006 12:38:24 +0200 Received: from VEX00120.lan.huk-coburg.de ([10.131.152.134]) by sxf00001.lan.huk-coburg.de with Microsoft SMTPSVC(6.0.3790.1830); Mon, 31 Jul 2006 12:38:23 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: properties handling problem Date: Mon, 31 Jul 2006 12:38:23 +0200 Message-ID: <1397E81F23832842BDD7B2D758D4B0B503256A7A@VEX00120.lan.huk-coburg.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: properties handling problem Thread-Index: Aca0gKYHgsX2ChFpTwuix2HT/iS/lAADB2/Q From: "Rebhan, Gilbert" To: "Ant Users List" X-OriginalArrivalTime: 31 Jul 2006 10:38:23.0736 (UTC) FILETIME=[72E0C780:01C6B48D] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Second suggestion =3D i think your problem is, that properties are immutable once set here's a workaround with from antcontrib : Filepath =3D=3D=3D @{file} Filename =3D=3D=3D ${filename} the property file is automatically overwritten for every loop, but the property filename has to be unset and set again i think you have to do the same for=20 $hostname} and ${num} in your script. Regards, Gilbert -----Original Message----- From: heisch@yawido.de [mailto:heisch@yawido.de]=20 Sent: Monday, July 31, 2006 11:06 AM To: user@ant.apache.org Subject: properties handling problem Hi, this is Code for deliver files to different systems with a pre-check... I'll iterate with der foreach-Task. The Problem is, I don't now how to set the properties. Properties available=3Davailability availabledir=3D/export/home/heisc01/anttest/ output=3Doutput hostlist=3Dhost_1,host_2,host_3 hostname=3Dhost I think like this: server=3D"${$hostname}_${num}}" but it didn't work.. Could somebody help me.. best regards.. Beni --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org