Getting svn branch as well as revision number

302 views
Skip to first unread message

Leigh Moulder

unread,
Mar 15, 2013, 2:33:11 PM3/15/13
to maven-svn-revisi...@googlegroups.com
Hi all,
I just started using this plugin, so apologies if I missed some documentation, but is it possible to also get the svn branch name along with with svn revision number?

I've been able to get the revision number without any problems, and have actually found this plugin to be much more reliable than the buildnumber-maven-plugin that I was using.  But the one thing the buildnumber-maven-plugin has going for it is the ability to provide branching information.

Thanks,
Leigh

Oleg Estekhin

unread,
Mar 15, 2013, 3:23:49 PM3/15/13
to maven-svn-revisi...@googlegroups.com
Hi,
 
it is possible to get the “path” from the repository root to the item configured as the entry. The corresponding output property has the name in the form of “${prefix}.path”, where the ${prefix} is taken from the plugin configuration (the value of the module artifactId by default).
 
For example, if the project artifactId=myProject and you check the status of “trunk” directory, then there will be “myProject.path=trunk” output property. If you check the status of the “branches/myBranch”, then it will be “myProject.path=branches/myBranch”.
 
Just in case, the plugin usage documentation at http://maven-svn-revision-number-plugin.googlecode.com/svn/site/usage.html contains the list of all output properties set by the plugin.
 
 
Best regards,
oleg
--
You received this message because you are subscribed to the Google Groups "maven-svn-revision-number-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-svn-revision-num...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages