Maven Ant Plugin
  1. Maven Ant Plugin
  2. MANT-66

Ambiguous date in generated header comment

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Labels:
      None

      Description

      The date in the header comment is ambigious. For example:

      <!-- Generated by Maven Ant Plugin on 10/4/11 3:11 PM -->

      Is that Oct 4th or April 10th 2011?
      Or even April 11th, 2010?

      Dates should always use the format yyyy/mm/dd (or yyyy-mm-dd etc.).

      It might be worth updating the comment to include the plugin version number as well.

        Activity

        Hide
        Michael Osipov added a comment -

        Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

        Show
        Michael Osipov added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.
        Hide
        Michael Osipov added a comment - - edited

        Sebb, how about an output like the help plugin but with version number:

        <?xml version="1.0" encoding="UTF-8"?>
        <!-- ====================================================================== -->
        <!--                                                                        -->
        <!-- Generated by Maven Help Plugin on 2015-04-28T08:32:51                  -->
        <!-- See: http://maven.apache.org/plugins/maven-help-plugin/                -->
        <!--                                                                        -->
        <!-- ====================================================================== -->
        <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLS...
        
        Show
        Michael Osipov added a comment - - edited Sebb , how about an output like the help plugin but with version number: <?xml version="1.0" encoding="UTF-8"?> <!-- ====================================================================== --> <!-- --> <!-- Generated by Maven Help Plugin on 2015-04-28T08:32:51 --> <!-- See: http://maven.apache.org/plugins/maven-help-plugin/ --> <!-- --> <!-- ====================================================================== --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLS...
        Hide
        Sebb added a comment -

        That would be fine.

        Show
        Sebb added a comment - That would be fine.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development