Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 19229 invoked from network); 9 Mar 2005 16:29:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Mar 2005 16:29:37 -0000 Received: (qmail 88873 invoked by uid 500); 9 Mar 2005 16:29:34 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 88365 invoked by uid 500); 9 Mar 2005 16:29:32 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 88352 invoked by uid 99); 9 Mar 2005 16:29:32 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from host34-18.pool21757.interbusiness.it (HELO pbzis4.it.phoenix.wuerth.com) (217.57.18.34) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 09 Mar 2005 08:29:31 -0800 Received: from [10.62.7.4] (phx00002.it.phoenix.wuerth.com [10.62.7.4]) by pbzis4.it.phoenix.wuerth.com (Postfix) with ESMTP id 94E588FC060 for ; Wed, 9 Mar 2005 17:29:28 +0100 (CET) Message-ID: <422F24E9.6030804@wuerth-phoenix.com> Date: Wed, 09 Mar 2005 17:31:37 +0100 From: Markus Innerebner User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: AW: how to read an environment var in a property file References: <879A5AD5DD0ED511891F0003473A9B560E23FC9C@Z011004> In-Reply-To: <879A5AD5DD0ED511891F0003473A9B560E23FC9C@Z011004> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Jan thanks for your quick answer Jan.Materne@rzf.fin-nrw.de wrote: >You have to read the ENV before the prop file: > >build.properties: >----------------- >test=${ENV.KEY}-Text > > > > > > > ${test} > > > >test >---- >C:\TEMP\xx>set KEY=Hello > >C:\TEMP\xx>ant >Buildfile: build.xml > [echo] Hello-Text > >BUILD SUCCESSFUL > > > >Jan > >-----Urspr�ngliche Nachricht----- >Von: Markus Innerebner [mailto:markus.innerebner@wuerth-phoenix.com] >Gesendet am: Mittwoch, 9. M�rz 2005 17:01 >An: user@ant.apache.org >Betreff: how to read an environment var in a property file > >Hello to all > >is it possible to do following in a property file: > > >aPropertyItem = ${ENV_VARIABLE}/var > >when I am trying to use it later in a ant file, I am not able >to see the >content of this property item. >I also tried to do it with: > >aPropertyItem = ${env.ENV_VARIABLE}/var > >thanks for helping me > > > -- best regards W�rth Phoenix S.r.l. Markus Innerebner ZEUS Developer Via Kravogl 4 I-39100 Bolzano Phone: +39 0471 / 564076 Fax: +39 0471 / 564062 E-Mail: markus.innerebner@wuerth-phoenix.com Website: http://www.wuerth-phoenix.com pub 1024D/0E45CE6D 2004-09-28 markusin Key fingerprint = 5E12 A775 B742 274B ABFB DCE8 ED90 806E 0E45 CE6D --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org