Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 27164 invoked from network); 17 Dec 2001 12:04:59 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 17 Dec 2001 12:04:59 -0000 Received: (qmail 23336 invoked by uid 97); 17 Dec 2001 12:04:51 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 23292 invoked by uid 97); 17 Dec 2001 12:04:49 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 23281 invoked from network); 17 Dec 2001 12:04:48 -0000 Message-ID: From: Ext-Mike.Hogan@nokia.com To: Ext-Mike.Hogan@nokia.com, ant-user@jakarta.apache.org Subject: RE: Setting property values programatically Date: Mon, 17 Dec 2001 14:04:42 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.78) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N "outputproperty" on the exec task right? Just found it now - silly me. > -----Original Message----- > From: Hogan Mike (EXT-IBM/Espoo) > Sent: 17. December 2001 13:58 > To: 'ant-user@jakarta.apache.org' > Subject: RE: Setting property values programatically > > > > > > Dirk, > > > > > What do you mean be setting a property programmatically > > > exactly? Please > > > elaborate. > > > > I'm working with Clearcase. I have several branches. Each > > branch represents a particular release of my system. Lets > > assume my system is called "The Special Acme Project. > > Currently I'm supporting versions 4.0 and 3.1.1 of this > > project. So I have two branches. Each branch has the > > version it represents burned into it as meta data. So, I can > > ask any branch, using a command line, what version it > > represents - 4.0 or 3.1.1. > > > > Now, my goal is to have a single build.xml file that can > > produce a binary release of the system for me, regardless of > > what branch it runs on. And I want to burn a version string > > into the binary release, where the version string has the > > following form: > > > > "The Special Acme Project - version 4.0 (build 345)" or > > "The Special Acme Project - version 3.1.1 (build 1694)". > > > > If I was generating this version string using a shell script, > > I'd use the execute quotes to capture the result of a command > > line into a variable, as follows: > > > > set PROJECT="The Special Acme Project" > > set VERSION=`get metadata for current branch from clearcase > > command line` > > set BUILD_NO=`compute build number command line` > > > > You've shown me how to do the build number piece. But now > > how do I do the version piece i.e. run an external command > > line and "capture" the result of it into a property. > > > > Many thanks, > > Mike. > -- To unsubscribe, e-mail: For additional commands, e-mail: