[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:24:38 CEST

On Wed, 3 May 2006 13:10:06 +0200
Ryan Schmidt <subversion-2006q2@ryandesign.com> wrote:

> On May 3, 2006, at 12:52, Bjørn T Johansen wrote:
>
> >>> Is it possible to use autoprop or similar to update revision of a
> >>> file that has not changed?
> >>> I.e. everytime I commit changes in any files, I want the new
> >>> revision to be updated in one file, that has not
> >>> changed...
> >>
> >> No. Perhaps you are looking for this?
> >>
> >> http://subversion.tigris.org/faq.html#version-value-in-source
> >
> > 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...
>
> Why doesn't the FAQ solution work for you? It seems like a perfect
> match: every time you build, run svnversion to determine the revision
> (s) of your working copy. Put the result into a generated source code
> file which assigns the value to the variable.
>
> I can help you with regular expressions if that's a problem...
>
>

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...

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 13:26:03 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.