Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 67243 invoked from network); 2 Nov 2004 23:39:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Nov 2004 23:39:34 -0000 Received: (qmail 25193 invoked by uid 500); 2 Nov 2004 23:39:22 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 25104 invoked by uid 500); 2 Nov 2004 23:39: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 25067 invoked by uid 99); 2 Nov 2004 23:39:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [67.104.23.195] (HELO SF-EXCH1.EDUSOFT.AD) (67.104.23.195) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 02 Nov 2004 15:39:14 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4C135.2651A497" Subject: getting tag from CVS for use in Ant Date: Tue, 2 Nov 2004 15:39:08 -0800 Message-ID: <47E4425C970FC04391D25DEDE51F120E02CA457F@SF-EXCH1.EDUSOFT.AD> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: getting tag from CVS for use in Ant Thread-Index: AcTBNSX+0asZuNTOTEuzNUzCchojHQ== From: "Alison Monteith" To: "Ant Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4C135.2651A497 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I don't know much about ant and am trying to fix a problem in our existing build.xml file. =20 We have many branches in CVS and our normal procedue is to checkout out a module which contains a build.xml file then run an ant package in this directory which creates our software packages etc. As part of the build script a file called release.txt is created which should contain the cvs tag and date and timestamp. =20 =20 Here are the relevant lines from build.xml: =20 =20 =20 Nowhere in build.xml is build_num set, so as expected the output is "${build_num} " =20 Does anyone know how to set a variable (in this case ${build_num}) with the cvs tag for the current module? =20 Thanks in advance for any info. =20 Alison =20 =20 =20 =20 ------_=_NextPart_001_01C4C135.2651A497--