[
http://jira.codehaus.org/browse/MBUILDNUM-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olivier Lamy moved MOJO-1603 to MBUILDNUM-8:
--------------------------------------------
Complexity: (was: Intermediate)
Component/s: (was: buildnumber)
Affects Version/s: (was: buildnumber-maven-plugin-1.0-beta-4)
Key: MBUILDNUM-8 (was: MOJO-1603)
Project: Mojo Build Number Maven Plugin (was: Mojo)
> Improve branch info returned in scmBranch Property
> --------------------------------------------------
>
> Key: MBUILDNUM-8
> URL: http://jira.codehaus.org/browse/MBUILDNUM-8
> Project: Mojo Build Number Maven Plugin
> Issue Type: Improvement
> Environment: Win XP and HP-UX
> Reporter: phil
> Attachments: CreateMojo.java
>
>
> Our SCM environment is Subversion. Currently, the scmBranch property set by
> the buildnumber plugin contains the string "trunk" if the scmUrl contains the
> substring "/trunk". If this is not the case *and* the scmUrl contains one of
> the substrings "/tags" or "/branches", then the complete path peginning with
> "tags" or "branches" is returned.
> What I would have expected is the actual name of the branch/tag, i.e. the
> name of the directory right after/below tags/branches. Right now one of the
> problems is that if you use the scmBranch property to create filenames,
> subdirectories are created if you are in branch or tag of svn.
> Say, we have a scmUrl like
> "http://subversion/svn/esb/branches/2010r4_Bugfix_20101129_639/", then the
> string "branches/2010r4_Bugfix_20101129_639/" is returned. What I would
> expect to be returned is simply "2010r4_Bugfix_20101129_639", because this is
> the name of the branch.
> I have attached a patched version of
> http://svn.codehaus.org/mojo/trunk/mojo/buildnumber-maven-plugin/src/main/java/org/codehaus/mojo/build/CreateMojo.java,
> there are only minor changes in the method filterBranchFromScmUrl(String
> scmUrl), lines 634 to 637.
> I would love to see this fixed in beta-5. Or is it a feature?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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