[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: Bjørn T Johansen <btj_at_havleik.no>
Date: 2006-05-03 13:58:59 CEST

On Wed, 3 May 2006 12:45:53 +0100
Baz <brian.ewins@gmail.com> wrote:

> 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 -->
> </exec>
>
> 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.
>
> -Baz

Well, so far I have gotten myself... But it still doesn't update my propery file...

BTJ

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 3 14:05:35 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.