maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MCHANGELOG-125) Support regexp capturing group in issueIDRegexPattern configuration property
Date Sun, 06 Sep 2015 20:45:39 GMT

     [ https://issues.apache.org/jira/browse/MCHANGELOG-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Osipov closed MCHANGELOG-125.
-------------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period of time. If
you think this issue still applies, retest your problem with the most recent version of Maven
and the affected component, reopen and post your results.

> Support regexp capturing group in issueIDRegexPattern configuration property
> ----------------------------------------------------------------------------
>
>                 Key: MCHANGELOG-125
>                 URL: https://issues.apache.org/jira/browse/MCHANGELOG-125
>             Project: Maven Changelog Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.3
>         Environment: Any
>            Reporter: Eric Blanchard
>
> In order to support more complex issue id detection in changelog comments, I propose
to support regexp capturing group in <issueIDRegexPattern /> configuration property.
> For example, with a Trac Issues Management System, I use
>   <issueIDRegexPattern>#(\d+)</issueIDRegexPattern>
>   <issueLinkUrl>http://trac.host/path/to/trac/project/ticket/%ISSUE%</issueLinkUrl>
> and the %ISSUE% keyword will be replaced by the issue number (without the prefixing '#')
> I have successfully tested a simple modification of ChangeLogReport.java / sinkIssueLink()
/ line: 1319
> replace:
>             String match = matcher.group();
> by:
>             String match;
>             if(matcher.groupCount() == 1) {
>                 match = matcher.group(1);
>             } else {
>                 match = matcher.group();
>             }
> Hope this little modification can be adopted and put in 2.3 release.
> Best regards.
> --
> Eric



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message