getting version number from subversion and adding to pom property

2007-07-31 Thread mattcoarr

Hi,

Is there  any way that I can extract the version of my working copy from
subversion (or the scm plug-in) and save this in a system property?

I would like to take this and stick this in a properties file so that it can
be displayed on a Help - About page.

Thanks,
Matt
-- 
View this message in context: 
http://www.nabble.com/getting-version-number-from-subversion-and-adding-to-pom-property-tf4194827s177.html#a11929878
Sent from the Maven - Users mailing list archive at Nabble.com.


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



getting version number from subversion and adding to pom property

2007-07-31 Thread Coarr, Matt
Hi, 

Is there  any way that I can extract the version of my working copy
from subversion (or the scm plug-in) and save this in a system
property? 

I would like to take this and stick this in a properties file so that
it can be displayed on a Help - About page. 

Thanks for your help, 
Matt


PS  I already have the POM's version number being inserted into the
properties file by using ${pom.version} in the properties file
itself.  I would just like to get the subversion version of my working
copy.

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



RE: getting version number from subversion and adding to pom property

2007-07-31 Thread Lalor, Brian
 -Original Message-
 From: Coarr, Matt [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, July 31, 2007 3:05 PM

 Is there  any way that I can extract the version of my working copy
 from subversion (or the scm plug-in) and save this in a system
 property? 
 
 I would like to take this and stick this in a properties file so that
 it can be displayed on a Help - About page. 

What about using the $Revision$ keyword in a properties file?  You wouldn't 
have to involve Maven at all that way...
version.prop = $Revision$



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



RE: getting version number from subversion and adding to pom property

2007-07-31 Thread Coarr, Matt
Good idea.  I thought about that too.

But that version number would only get updated whenever that properties
file gets updated, not whenever a commit is made to the subversion
module.

Matt 



-Original Message-
From: Lalor, Brian [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 16:03
To: Maven Users List
Subject: RE: getting version number from subversion and adding to pom
property

What about using the $Revision$ keyword in a properties file?  You
wouldn't have to involve Maven at all that way...
version.prop = $Revision$

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



Re: getting version number from subversion and adding to pom property

2007-07-31 Thread Arnaud HERITIER
This is certainly what you are looking for :
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

Arnaud

On 31/07/07, Coarr, Matt [EMAIL PROTECTED] wrote:
 Good idea.  I thought about that too.

 But that version number would only get updated whenever that properties
 file gets updated, not whenever a commit is made to the subversion
 module.

 Matt



 -Original Message-
 From: Lalor, Brian [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 31, 2007 16:03
 To: Maven Users List
 Subject: RE: getting version number from subversion and adding to pom
 property

 What about using the $Revision$ keyword in a properties file?  You
 wouldn't have to involve Maven at all that way...
 version.prop = $Revision$

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




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...

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



RE: getting version number from subversion and adding to pom property

2007-07-31 Thread Coarr, Matt
Awesome!  Thanks Arnaud!  That sounds exactly like what I was looking
for!

I'll give buildnumber-plugin a whirl and let you know how it works.

Matt 

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 17:22
To: Maven Users List
Subject: Re: getting version number from subversion and adding to pom
property

This is certainly what you are looking for :
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

Arnaud

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



Re: getting version number from subversion and adding to pom property

2007-07-31 Thread Arnaud HERITIER
I used it with success but with an incremental build number (the
project wasn't using SVN).
If it works for you I'll try to use it with my projects under SVN

thx

arnaud

On 31/07/07, Coarr, Matt [EMAIL PROTECTED] wrote:
 Awesome!  Thanks Arnaud!  That sounds exactly like what I was looking
 for!

 I'll give buildnumber-plugin a whirl and let you know how it works.

 Matt

 -Original Message-
 From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 31, 2007 17:22
 To: Maven Users List
 Subject: Re: getting version number from subversion and adding to pom
 property

 This is certainly what you are looking for :
 http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

 Arnaud

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




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...

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