Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 1924 invoked from network); 30 Sep 2003 18:02:00 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Sep 2003 18:02:00 -0000 Received: (qmail 14850 invoked by uid 500); 30 Sep 2003 18:01:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 14808 invoked by uid 500); 30 Sep 2003 18:01:19 -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 14770 invoked from network); 30 Sep 2003 18:01:18 -0000 Received: from unknown (HELO pscgate.progress.com) (192.77.186.1) by daedalus.apache.org with SMTP; 30 Sep 2003 18:01:18 -0000 Received: from elvirus.progress.com (elvirus [192.77.186.100]) by pscgate.progress.com (8.12.10/8.12.10/PSC-5.10) with ESMTP id h8UI1Hrr019370 for ; Tue, 30 Sep 2003 14:01:18 -0400 (EDT) Received: from progress.com (localhost [127.0.0.1]) by elvirus.progress.com (8.10.2/8.10.2/PSC-4.01) with ESMTP id h8UI1HP01700 for ; Tue, 30 Sep 2003 14:01:17 -0400 (EDT) X-Authentication-Warning: elvirus.progress.com: iscan owned process doing -bs Received: from naserv.bedford.progress.com (naserv [172.16.5.174]) by progress.com (8.11.6/8.11.6) with ESMTP id h8UI1G109993 for ; Tue, 30 Sep 2003 14:01:16 -0400 (EDT) Received: from progress.com by naserv.bedford.progress.com (iPlanet Messaging Server 5.2 HotFix 1.17 (built Jun 23 2003)) with ESMTP id <0HM100D01GQ4U6@naserv.bedford.progress.com> for user@ant.apache.org; Tue, 30 Sep 2003 14:01:16 -0400 (EDT) Date: Tue, 30 Sep 2003 13:51:04 -0400 From: Claudio Corsi Subject: Re: passing paramter from ANT to shell script doesn't seems to work for me; Help !!! In-reply-to: <20030930175034.8524.qmail@web20308.mail.yahoo.com> To: Ant Users List Message-id: <3F79C288.6000606@progress.com> Organization: ObjectStore - A Division of Progress Software MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.5) Gecko/20030925 References: <20030930175034.8524.qmail@web20308.mail.yahoo.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Shailesh Sharma wrote: > so what you are saying is ....i should not opt to use SHELL script and instead use ....java task to invoke my weblogic.deploy utility ? > yes > > if that is the case(and correct me if iam wrong), i don't want this......basically we have shell scripts that iam trying to wrap up with ANT .....to better maintain with some properties file and etc. > since, in this case, you are only using ant as a wrapper tool to calling your scripts then what you have looks fine. have you tried using this build file? > > Claudio Corsi wrote: > > You should just use the java task in this case. > > You can define environment variables using nested env elements and it > contains attributes for the classpath, classname, and etc that you can use. > > Take a look at the ant manual http://ant.apache.org/manual/index.html > for an example. > > Click on "Ant Tasks"->"Core Tasks"->"java" > > > Shailesh Sharma wrote: > > >>Hi, >>Thanks everybody for setting my unix environment. Although i have another email stating the following problem but aim starting this as a new thread so as to be clear what my problem is: >> >> >> >>what iam "trying" to do is to pass some variables from my ANT script to the shell script. This is what iam doing with my 3 files. >> >> >> >> >>1) build.xml file: >> >> >> >> >> > > >> >> > > > >> >> >> >> >> > > > > >>ions"> > > >> > > > > > > > > >> >> >> >> >> >> > > >> >> >> >>>l.deployment.script.name}" /> >> >> >> >> >> >> >> >> >> > >> >> >>--------------------------------------- >>2) myAnt.properties file: >> >>general.script=deployScript.sh >>ANTPATCH=/opt/bea/wlserver6.1/lib/latest_deploy.jar >>WEBLOGICJAR=/opt/bea/wlserver6.1/lib/weblogic.jar >>ADMINPORT-NUMBER1=7001 >>HOSTNAME=reliant2 >> >> >>----------------------------------------- >>3) deployScript.sh file: >> >>export ANTPATCH=$1 >>export WEBLOGICJAR=$2 >>export ADMINPORTNUMBER=$3 >>export HOSTNAME=$4 >> >> >>java -cp "$ANT-PATCH":"$WEBLOGIC-JAR" weblogic.deploy -port "$ADMIN-PORT-NUMBER" -host "$HOSTNAME" -component testMon:beamon_biko_s1 deploy weblogic testMon /export/home/ext5sxs/applications/beamon/beaMon.war >> >> >>------------------- >> >> >> >> >>any help in this matter ?? >> >>reagards, >> >>shailesh >> >> >> >> >>--------------------------------- >>Do you Yahoo!? >>The New Yahoo! Shopping - with improved product search > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > --------------------------------- > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org