Michael Osipov created MPIR-320:
-----------------------------------

             Summary: AbstractMavenReportRenderer#applyPattern(String) chokes 
on some specific input and produces useless segments
                 Key: MPIR-320
                 URL: https://jira.codehaus.org/browse/MPIR-320
             Project: Maven Project Info Reports Plugin
          Issue Type: Bug
          Components: dependencies
    Affects Versions: 2.7
            Reporter: Michael Osipov


Consider this input:

{noformat}
{Indiana University Extreme! Lab Software License, vesion 
1.1.1,http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt}{Public
 Domain,http://creativecommons.org/licenses/publicdomain}{Apache Software 
License, version 1.1,http://www.apache.org/licenses/LICENSE-1.1}
{noformat}

It should be broken up into six segments. The output of {{applyPattern}} is:
{noformat}
[0]     "Indiana University Extreme! Lab Software License, vesion 1.1.1" 
(id=321)
[1]     
"http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt"; 
(id=322)
[2]     "" (id=323)
[3]     null
[4]     "Public Domain" (id=324)
[5]     "http://creativecommons.org/licenses/publicdomain"; (id=325)
[6]     "" (id=326)
[7]     null
[8]     "Apache Software License, version 1.1" (id=328)
[9]     "http://www.apache.org/licenses/LICENSE-1.1"; (id=329)
{noformat}

and the output is incorrectly generated.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to