ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ext-Mike.Ho...@nokia.com
Subject RE: Setting property values programatically
Date Tue, 18 Dec 2001 07:23:04 GMT
No, thats not what I want to do.  I COULD do that (assuming the properties
are loaded at read time and not at ant start time).

Anyway, I now see that "outputproperty" is what I need.

Thanks a mil,
Mike.

> -----Original Message-----
> From: ext Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
> Sent: 17. December 2001 14:38
> To: Ant Users List
> Subject: Re: Setting property values programatically
> 
> 
> You just want to load a properties file that was just updated with
> <propertyfile>, right?  Why not use <property file="....."/>????
> 
> 
> ----- Original Message -----
> From: <Ext-Mike.Hogan@nokia.com>
> To: <Ext-Mike.Hogan@nokia.com>; <ant-user@jakarta.apache.org>
> Sent: Monday, December 17, 2001 7:04 AM
> Subject: RE: Setting property values programatically
> 
> 
> > "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:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message