Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 50018 invoked from network); 13 Mar 2009 15:26:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 15:26:32 -0000 Received: (qmail 14090 invoked by uid 500); 13 Mar 2009 15:26:29 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 14061 invoked by uid 500); 13 Mar 2009 15:26:29 -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 14045 invoked by uid 99); 13 Mar 2009 15:26:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 08:26:28 -0700 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of prvs=damo01=31668e97c@handelsbanken.se designates 194.68.126.145 as permitted sender) Received: from [194.68.126.145] (HELO mx.handelsbanken.se) (194.68.126.145) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 15:26:19 +0000 DomainKey-Signature: s=handelsbanken.se; d=handelsbanken.se; c=nofws; q=dns; h=X-IronPort-AV:Received:Received:Received:In-Reply-To: References:To:Subject:MIME-Version:X-KeepSent:X-Mailer: Message-ID:From:Date:X-MIMETrack:X-TNEFEvaluated: Content-Type; b=FUQTcrZ+C2fiaUlZaaL/CrzChT3QCCY/+vdCCycbnZ+GZtksIFMtANFt i2pZydQ47DH7Kt3DuUXnjpiR0Oq2qG++6i/B7jRdMqkRjuEdfvDHL9qIW 22wpOhPGksHjraDAEUqPjRqmBzHv9r4dJFJQWXSkmbamKZsR0i9ai6grC 0=; DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=handelsbanken.se; i=damo01@handelsbanken.se; q=dns/txt; s=handelsbanken.se; t=1236957979; x=1268493979; h=from:sender:reply-to:subject:date:message-id:to:cc: mime-version:content-transfer-encoding:content-id: content-description:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-message-id:in-reply-to: references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; z=From:=20Daniel=20Modin=20 |Subject:=20Ang.=20AW:=20Read=20property=20based=20on=20a nother=20property|Date:=20Fri,=2013=20Mar=202009=2016:27: 14=20+0100|Message-ID:=20|To:=20 "Ant=20Users=20List"=20 |MIME-Version:=201.0|In-Reply-To:=20<9EE86F1965E19E499C80 DE52AC807B5502A47C6A@z011021.bk.fin.local>|References:=20 =20<9EE86F1965E19E499C80DE52AC80 7B5502A47C6A@z011021.bk.fin.local>; bh=lQOmc1Rf7qx+024txKIU4a8xacBxppWi13r6BfZa8VM=; b=rd+I0Vqbrwv4JuL+nIXVCE7eMnbLxZtLh+bUdStprewYc4ow9V9w5Iqa pzN23JlYWzPOZLdPDP+nxukV/E2grlbArTSP2sGSW1DA2JZSGJYY3nDT5 3+hmTKpIsXakX+YKpe3qw15VadIE/12feoz8yj4ohPrG6YhnOMVQDdZfO c=; X-IronPort-AV: E=Sophos;i="4.38,357,1233529200"; d="scan'208,217";a="53115920" Received: from mail3.sth.shb.se (HELO zeus11.sth.shb.se) ([172.23.1.115]) by mx-out.sth.shb.se with ESMTP; 13 Mar 2009 16:25:58 +0100 Received: by zeus11.sth.shb.se from sthhub02.shbmain.shb.biz (sthhub02.shbmain.shb.biz [172.24.126.30]) with ESMTP id n2DFPuM8071267 for ; Fri, 13 Mar 2009 16:25:58 +0100 (CET) Received: from sthmail07.shbmain.shb.biz ([10.103.132.11]) by sthhub02.shbmain.shb.biz (Lotus Domino Release 7.0.3FP1) with ESMTP id 2009031316255471-77404 ; Fri, 13 Mar 2009 16:25:54 +0100 In-Reply-To: <9EE86F1965E19E499C80DE52AC807B5502A47C6A@z011021.bk.fin.local> References: <9EE86F1965E19E499C80DE52AC807B5502A47C6A@z011021.bk.fin.local> To: "Ant Users List" Subject: Ang. AW: Read property based on another property MIME-Version: 1.0 X-KeepSent: 4CDB422C:21B4A821-C1257578:0054C590; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.0.2 August 07, 2008 Message-ID: From: Daniel Modin Date: Fri, 13 Mar 2009 16:27:14 +0100 X-MIMETrack: Serialize by Router on STHMAIL07/Stockholm/SHB(Release 8.0.2|August 07 2008) at 2009-03-13 16:27:17, Serialize complete at 2009-03-13 16:27:17, Itemize by SMTP Server on STHHUB02/Stockholm/SHB(Release 7.0.3FP1|February 24, 2008) at 2009-03-13 16:25:54, Serialize by Router on STHHUB02/Stockholm/SHB(Release 7.0.3FP1|February 24, 2008) at 2009-03-13 16:25:58, Serialize complete at 2009-03-13 16:25:58 X-TNEFEvaluated: 1 Content-Type: multipart/alternative; boundary="=_alternative 0054C40FC1257578_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 0054C40FC1257578_= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="ISO-8859-1" OK, thanks Jan - i think i will follow your suggestion. =20 2009-03-13 14:26 S=E4nd svar till "Ant Users List" Till Kopia =C4rende AW: Read property based on another property >In file "deploy.properties" i would like to have properties for deploy=20 >directories for different test environments: >deploy.dir.ft =3D ft/stage/2 >deploy.dir.st =3Dst/stage/2 >deploy.dir.pt =3Dst/stage/2 >deploy.dir.pr=3Dpr/stage/1 > >Then i want to read the deploy directory for the current=20 >testenvironment! > >I tried this: > > remotedir=3D"${deploy.dir.${testenv}}" > : > : > > >....and offcause it did not work :-) Your solution is described in the FAQ http://ant.apache.org/faq.html#propertyvalue-as-name-for-property I would suggest using multiple properties files With stored properties eg in environment.ft.properties deploy.dir=3Dft/stage/2 ftp.user=3D... ftp.pwd=3D... ftp.server=3D... Same properties (but different values) in the other files. The simply use