Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 10400 invoked from network); 28 May 2009 14:27:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 May 2009 14:27:12 -0000 Received: (qmail 4132 invoked by uid 500); 28 May 2009 14:27:23 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 4024 invoked by uid 500); 28 May 2009 14:27:23 -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 3941 invoked by uid 99); 28 May 2009 14:27:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 May 2009 14:27:13 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [76.13.9.94] (HELO web65702.mail.ac4.yahoo.com) (76.13.9.94) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 28 May 2009 14:27:04 +0000 Received: (qmail 66890 invoked by uid 60001); 28 May 2009 14:26:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1243520802; bh=E48Qa0xRx4LU4WucCdVsVxuBfFD1LCIKivzr0u/fVzs=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=YoClqGykmHi3JAFMiyY1hr6Jc6QL65L6N41isk9axg1GiRMGVlifltApRvOR42xl7SXsakKduVydAHyLuqhz3PAJRmAiD/tn1mnq8qwzHRLgTfU1lcUSK1+CJgC95IIlUDBKw1zjRBKWnLEPdHvcvc42oVeo6USbhHuhUbq+CwY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=m9AjzJ6htpr+m+kD55ShIGPybDuQuAweDzqJrVLfP5mU7CVW+40yYMFGAh4sqrj9I93on/Nrzd9l3uRD6tWUEijrbL3yQ04MJf0ZEmqX94hmSETfZTAqCyGFb4GwcezfTN9iOhFu8ZiVUI3eZVW2aZyehwoNRxPPs25Uu3T17Jg=; Message-ID: <211653.65785.qm@web65702.mail.ac4.yahoo.com> X-YMail-OSG: Ykvip70VM1lLhkdDYNuRH5TsRBkipfHMEq1XOTCCLLZeLlVmIXgUklYqNcz2fJoqBI_pCl83PWc3nJwHVD3dRxjLwI4XCwc2H90PKl8noCiAkFTsZ3DzasFo0v3KZbCeKoH1zs6aZA1AfJu86FEzA.zXACYbJsdRnsk9BOwIfsiRodWLMLoZ19.GrZmKom2wQF1uZ1bphm7eDN4Caa66aySyXMheXMQakpLQ0zvQfVvsUhJRqoKuN7H62nTls_E81bJmazsFifEVyBtC8xubOnFfb77pTgP.YuPty9EfcpcyVEJPUKcaJM4- Received: from [66.28.53.2] by web65702.mail.ac4.yahoo.com via HTTP; Thu, 28 May 2009 07:26:42 PDT X-Mailer: YahooMailRC/1277.43 YahooMailWebService/0.7.289.10 References: <34721A41A7BCF54ABC3B116219A8C1C205752571DC@NP1EXCH012.corp.halliburton.com> <06080D44730F41428BAF2168FA8BDD8003554E7F@icsrv02.icongmbh.de> Date: Thu, 28 May 2009 07:26:42 -0700 (PDT) From: Eric Fetzer Subject: Re: AW: clone fake environment variables as real ones for exec To: Ant Users List In-Reply-To: <06080D44730F41428BAF2168FA8BDD8003554E7F@icsrv02.icongmbh.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-63790465-1243520802=:65785" X-Virus-Checked: Checked by ClamAV on apache.org --0-63790465-1243520802=:65785 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I was looking at the mapper task.=A0 I didn't fully get it, but I think it = could handle what you're looking for.=0A=0A=0A=0A=0A_______________________= _________=0AFrom: "Knuplesch, Juergen" =0ATo= : Ant Users List =0ASent: Thursday, May 28, 2009 2:23:= 58 AM=0ASubject: AW: clone fake environment variables as real ones for exec= =0A=0AHello, =0A=0AOne way this could work is by wrting your own exec2 task= by using the source and add an argument of your choice that does th= e trick (an extension of the env argument).=0A=0AProbably a script (python,= etc.) language is also able to set environment variables.=0ASo you could u= se the script task.=0A=0AGreetings =0A=0A-- =0AJ=FCrgen Knuplesch=0A-----Ur= spr=FCngliche Nachricht-----=0AVon: Shawn Castrianni [mailto:Shawn.Castrian= ni@halliburton.com] =0AGesendet: Donnerstag, 28. Mai 2009 08:28=0AAn: 'Ant = Users List'=0ABetreff: clone fake environment variables as real ones for ex= ec=0A=0AI load in my environment variables with:=0A=0A=0A=0AI use ant properties throughout my script with the env. pre= fix so that end users can override them with real environment variables, if= they wish.=A0 If those env. prefixed ant properties are not initialized fr= om the real environment variables, I default them inside ant.=A0 This resul= ts in fake environment variables that are really just ant properties with a= n env. prefix.=0A=0AMy problem is if I call an exec task, I would like to p= ass in all the fake env. variables into that exec task.=A0 Any real environ= ment variables get automatically passed down or inherited by the exec task,= so those work fine.=A0 However, the fake env. prefixed ant properties that= were not initialized from the real environment and defaulted within ant ar= e not passed down because they are only ant properties.=A0 I would rather n= ot have to specify lots of tags within my exec call just to translate= my fake env. prefixed ant properties into real environment variables for t= he duration of the exec call.=A0 Something like:=0A=0A=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0