maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MCHANGES-364) DueTo is always empty
Date Wed, 30 Mar 2016 15:49:25 GMT

    [ https://issues.apache.org/jira/browse/MCHANGES-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15218185#comment-15218185
] 

Hudson commented on MCHANGES-364:
---------------------------------

SUCCESS: Integrated in maven-plugins #5557 (See [https://builds.apache.org/job/maven-plugins/5557/])
[MCHANGES-364] DueTo is always empty (michaelo: [http://svn.apache.org/viewvc/?view=rev&rev=1737123])
* maven-changes-plugin/src/it/announce-generate/src/changes/changes.xml
* maven-changes-plugin/src/main/java/org/apache/maven/plugin/changes/IssueAdapter.java


> DueTo is always empty
> ---------------------
>
>                 Key: MCHANGES-364
>                 URL: https://issues.apache.org/jira/browse/MCHANGES-364
>             Project: Maven Changes Plugin
>          Issue Type: Bug
>          Components: announcement
>    Affects Versions: 2.11
>            Reporter: dur
>            Assignee: Michael Osipov
>             Fix For: 2.12
>
>
> I tried to add field "dueTo" to my announcment file, but it is always empty.
> I found following source code in IssueAdapter.java:
> {code}
>     /**
>      * Create an <code>Action</code> from an issue.
>      * 
>      * @param issue The issue to extract the information from
>      * @return An <code>Action</code>
>      */
>     public Action createAction( Issue issue )
>     {
>         Action action = new Action();
>         // @todo We need to add something like issue.getPresentationIdentifier() to be
able to support other IMSes
>         // beside JIRA
>         action.setIssue( issue.getKey() );
>         // Try to map the IMS-specific issue type to one that is used in a changes.xml
file
>         IssueType type;
>         if ( getIssueTypeMap().containsKey( issue.getType() ) )
>         {
>             type = getIssueTypeMap().get( issue.getType() );
>             action.setType( type.modelRepresentation() );
>         }
>         else
>         {
>             action.setType( UNKNOWN_ISSUE_TYPE );
>         }
>         action.setDev( issue.getAssignee() );
>         // Set dueTo to the empty String instead of null to make Velocity happy
>         action.setDueTo( "" );
>         // action.setDueTo( issue.getReporter() );
>         action.setAction( issue.getSummary() );
>         return action;
>     }
> {code}
> Fix should be:
> {code}
>     Action.setDueTo(isse.getReport == null ? "" : issue.getReporter());
> {code}
> or something like this. 



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

Mime
View raw message