[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Revisjon autoprop?

From: Baz <brian.ewins_at_gmail.com>
Date: 2006-05-03 13:45:53 CEST

On 5/3/06, Bjørn T Johansen <btj@havleik.no> wrote:
> > > Well, not really... I need it in a java project using ant to build
> > > and I need to exchange a variable in a
> > > file every time I build... This might be done using regexp or
> > > similiar, but I don't know regexp well enough
> > > to use it...
> Well, first of all, is's using make and not ant...
> Second, I need to update a source file and not generate a new source file...
> i.e. I have a properties file that contains a property named appVersion that needs to be updated on every
> build...

<exec executable="svnversion" outputproperty="appVersion">
   <arg value="-n"/>
   <arg value="."/> <!-- or the path to the versioned dir -->

that should get the version into the 'appVersion' property. I'm sure
you can figure the rest out from the ant manual.

Google for "svnversion outputproperty" for more code examples like this.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 3 13:47:14 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.