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

ASF GitHub Bot commented on SCM-311:
------------------------------------

jira-importer opened a new issue, #534:
URL: https://github.com/apache/maven-scm/issues/534

   **[Peter 
Hayes](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hayesp25)** 
opened 
**[SCM-311](https://issues.apache.org/jira/browse/SCM-311?redirect=false)** and 
commented
   
   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
   
   
   ---
   
   **Affects:** 1.0-rc1
   




> 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