Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 49989 invoked from network); 11 Jan 2005 15:35:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Jan 2005 15:35:47 -0000 Received: (qmail 28217 invoked by uid 500); 11 Jan 2005 15:35:42 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 27961 invoked by uid 500); 11 Jan 2005 15:35:41 -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 27946 invoked by uid 99); 11 Jan 2005 15:35:41 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from exchus1.pega.com (HELO exchus1.rpega.com) (198.22.153.242) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 11 Jan 2005 07:35:39 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: passing parameters to ant Date: Tue, 11 Jan 2005 10:35:37 -0500 Message-ID: <37D311729CFBE4469223D519F60703AA0759EA4D@exchus1.rpega.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: passing parameters to ant Thread-Index: AcT38wwst1mw5CMDTJqYHYiQj3h1fwAABwRg From: "Radha Sangal" To: "Ant Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Am working on windows so $1 works fine ..=20 thnx -----Original Message----- From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]=20 Sent: Tuesday, January 11, 2005 10:34 AM To: user@ant.apache.org Subject: AW: passing parameters to ant I think you have to write %1 instead of $1, thats bash-syntax. Jan > -----Urspr=FCngliche Nachricht----- > Von: Radha Sangal [mailto:Radha.Sangal@pega.com] > Gesendet am: Dienstag, 11. Januar 2005 16:31 > An: Ant Users List > Betreff: passing parameters to ant >=20 > This might be a silly mistake, so I m asking for few more eyes to see > it. Please help! >=20 > =20 >=20 > We have an xml-rpc client calling a method on the server=20 > which executes > the following bat file. >=20 > =20 >=20 > Command line from "automated_Builds_Diffs.bat" >=20 > cmd /c ant -buildfile > D:\v04_E\Build_Scripts\CvsDiffReports\automated_cvsdiffs.xml=20 > manualDiff > -D DevBuild1=3D$1 -D DevBuild2=3D$2 > D:\test2.txt >=20 > =20 >=20 > ($1 and $2 are passed from the client and are tested to have the right > value at run time) >=20 > =20 >=20 > Ant script "automated_cvsdiffs.xml" receiving these parameters: >=20 > >=20 > >=20 > value=3D"$(DevBuild1)"/> >=20 > value=3D"$(DevBuild2)"/> >=20 > (${DevBuild1} to ${DevBuild2})"/>=20 >=20 > =20 >=20 > Output as in test2.txt : >=20 > manualDiff: >=20 > [echo] Starting CVS Difference Report ($(DevBuild1) to > $(DevBuild2)) >=20 > =20 >=20 > Script is failing here; the parameters are not getting=20 > populated. I have > tried some combinations like changing the names etc., but of no use.=20 >=20 > This is some small syntax which I am probably not able to see here. >=20 > =20 >=20 > =20 >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org