[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Making sure the tag name matches the version in a POM

From: <webpost_at_tigris.org>
Date: Thu, 5 Mar 2009 11:07:17 -0800 (PST)

I am using Maven to management my builds and I would like to create unique tags in by SVN repo that match each of my formal releases (version 1.0 is in /tags/1.0, etc.). Rather than trust myself to always be correct, I would like SVN to help me follow this rule. My original thought was to create a pre-commit trigger that parses the pom.xml to get the version and compare it to the changed directory name, but I can't find a command that will let me get to the pom.xml before it is committed. I could probably create a post-commit trigger that finds the pom.xml based on the revision and deletes the tag if the tag name is not correct, but that sounds like a bad idea. Does anyone have any suggestions?

Thanks a lot.
-Stuart

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1273278

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-06 06:33:14 CET

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.