Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 43757 invoked from network); 27 Sep 2004 04:40:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Sep 2004 04:40:24 -0000 Received: (qmail 58342 invoked by uid 500); 27 Sep 2004 04:40:14 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 58275 invoked by uid 500); 27 Sep 2004 04:40:14 -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 58261 invoked by uid 99); 27 Sep 2004 04:40:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [211.29.132.188] (HELO mail07.syd.optusnet.com.au) (211.29.132.188) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 26 Sep 2004 21:40:11 -0700 Received: from mail.optusnet.com.au (c211-28-75-180.frank1.vic.optusnet.com.au [211.28.75.180]) by mail07.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id i8R4e6ab001054; Mon, 27 Sep 2004 14:40:08 +1000 Date: Mon, 27 Sep 2004 14:40:09 +1000 To: "Animesh Ghosh" , user@ant.apache.org Subject: Re: passing parameters from Ant to Unix Shell script References: <670685a0409262136e3a97cf@mail.gmail.com> From: "Robert Mark Bram" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <670685a0409262136e3a97cf@mail.gmail.com> User-Agent: Opera M2/7.51 (Win32, build 3798) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Animesh! > I am trying to pass parameters from Ant to Unix shell scripts that > will maintain all environment variables across environments. Can you > pls. pass on a sample build.xml file and a sample shell script which > can accept parameters from the build file. I am familiar with command > line argument passing for Shell scripts but do not know well enough > about Ant scripts. Any help will be much appreciated. I asked the same question recently! -- from Stefan Bodewig or 1. you can use nested s when invoking with 2. you can create the script from a template and insert the "export" statements -- from JanMaterne Rob :) -- Robert Mark Bram B.Comp.(Systems Development/Business Systems) B.Net.Comp.(Hons) Doctor of Philosophy Student School of Network Computing Faculty of Information Technology Monash University Peninsula Campus McMahons Rd Frankston, VIC 3199 AUSTRALIA Phone: 61 3 9904 4394 Facsimile: 61 3 9904 4124 Email: robert.mark.bram@infotech.monash.edu.au --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org