You just want to load a properties file that was just updated with
<propertyfile>, right?  Why not use <property file="....."/>????


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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: '[EMAIL PROTECTED]'
> > 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:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to