Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14401

Re: Get Rev Number from SVN to Display in Web App

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Donkey Hottie <donkey@fredriksson.dy.fi>
Newsgroups comp.lang.java.programmer
Subject Re: Get Rev Number from SVN to Display in Web App
Date Tue, 08 May 2012 15:09:36 +0300
Organization A noiseless patient Spider
Lines 24
Message-ID <b1fn79-7f8.ln1@hurricane.fredriksson.dy.fi> (permalink)
References <joaro7$8hs$1@news.albasani.net> <snbn79-ct6.ln1@hurricane.fredriksson.dy.fi> <joavia$gkd$1@news.albasani.net>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-15
Content-Transfer-Encoding 7bit
Injection-Info mx04.eternal-september.org; posting-host="2CZGuqNdT70amojVWJXwUg"; logging-data="24155"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CGkC9yt6DZKnco81gsL++"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
In-Reply-To <joavia$gkd$1@news.albasani.net>
X-Antivirus-Status Clean
X-Antivirus avast! (VPS 120508-0, 08.05.2012), Outbound message
Cancel-Lock sha1:Oyb1gT/SgjE6iSKRPkD9AziNfZI=
Xref csiph.com comp.lang.java.programmer:14401

Show key headers only | View raw


On 8.5.2012 14:20, Jan Burse wrote:
> Donkey Hottie schrieb:
>> Just put the "$Revision: $" into your source code
> 
> Hi, thanks, but how do I get the revision from SVN?
> Are there some SVN specific Ant tasks around, something
> along get property? By revision I mean the transaction
> number of SVN, not something I know and that I can put
> manually in some file.
> 
> Bye

If you put that string to a file, svn will replace it with the revision
number when the file is committed to svn.

The file must be enabled to get this using command

  svn propset svn:keywords "Revision" filename

http://johnbokma.com/mexit/2008/09/30/subversion-svn-keywords-property.html

The next "svn commit" will update the file with revision number.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Get Rev Number from SVN to Display in Web App Jan Burse <janburse@fastmail.fm> - 2012-05-08 12:15 +0200
  Re: Get Rev Number from SVN to Display in Web App Roedy Green <see_website@mindprod.com.invalid> - 2012-05-08 03:23 -0700
    Re: Get Rev Number from SVN to Display in Web App Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-05-08 05:34 -0500
  Re: Get Rev Number from SVN to Display in Web App Donkey Hottie <donkey@fredriksson.dy.fi> - 2012-05-08 14:13 +0300
    Re: Get Rev Number from SVN to Display in Web App Jan Burse <janburse@fastmail.fm> - 2012-05-08 13:20 +0200
      Re: Get Rev Number from SVN to Display in Web App Donkey Hottie <donkey@fredriksson.dy.fi> - 2012-05-08 15:09 +0300
        Re: Get Rev Number from SVN to Display in Web App Jan Burse <janburse@fastmail.fm> - 2012-05-08 14:17 +0200
        Re: Get Rev Number from SVN to Display in Web App Jan Burse <janburse@fastmail.fm> - 2012-05-08 14:23 +0200
          Re: Get Rev Number from SVN to Display in Web App Lew <noone@lewscanon.com> - 2012-05-08 05:44 -0700
  Re: Get Rev Number from SVN to Display in Web App Nigel Wade <nmw@ion.le.ac.uk> - 2012-05-08 14:56 +0100
    Re: Get Rev Number from SVN to Display in Web App Jan Burse <janburse@fastmail.fm> - 2012-05-08 16:21 +0200

csiph-web