scmBranch returns UNKNOWN for all but "tags","branches", and "trunk" folder
names
---------------------------------------------------------------------------------
Key: MBUILDNUM-78
URL: https://jira.codehaus.org/browse/MBUILDNUM-78
Project: Mojo Build Number Maven Plugin
Issue Type: Bug
Affects Versions: buildnumber-maven-plugin-1.0
Environment: all
Reporter: Joseph Lust
scmBranch returns UNKNOWN for all but "tags","branches", and "trunk" folder
names. This is a rather draconian approach since developers can use any range
of names for their SCM directories and is not documented on the project
website. As such, it is a case where the plugin fails to work as one would
expect given the current documentation.
For example, our company uses a "releases" directory and the ${scmBranch} value
will always return "UNKNOWN" rather than the name of the branch. There should
be no restriction on the branch names. If the build is in /X/Y/Z, then
${scmBranch} should return "/X/Y/Z".
Error is in method filterBranchFromScmUrl( String scmUrl ), CreateMojo.java
line 664
I understand the purpose of the filter is to return the branch, not the full
scm URL. You could add an option to use the complete URL (i.e. via a goal
option), or add ${scmBranchUrl} value to the plugin output.
Thanks.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email