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

Olivier Lamy commented on SCM-311:
----------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-scm#534|https://github.com/apache/maven-scm/issues/534]. 

> Can not supply user date format for ChangeLog Mojo on command line
> ------------------------------------------------------------------
>
>                 Key: SCM-311
>                 URL: https://issues.apache.org/jira/browse/SCM-311
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-plugin
>    Affects Versions: 1.0-rc1
>         Environment: Windows XP
>            Reporter: Peter Hayes
>            Assignee: Emmanuel Venisse
>            Priority: Major
>             Fix For: 1.0
>
>
> I tried to supply a date format to the date I supplied on the command line to 
> the change log mojo.  I noticed it complained that I was specifying the wrong 
> format.  Looking at the code it looks like the param associated with the 
> userDateFormat is "dateFormat" instead of "userDateFormat".  
>     /**
>      * Date format to use for the specified startDate and/or endDate.
>      *
>      * @parameter expression="${dateFormat}" default-value="yyyy-MM-dd"
>      */
>     private String userDateFormat = DEFAULT_DATE_FORMAT;
> I think that this should be "${userDateFormat}"
> To test I ran : 
> mvn -DscmVersion=branch-1.0 -DscmVersionType=branch -DstartDate=18 
> -DuserDateFormat=K -scm:changelog



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to