Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1095

ZipTask should support an option to allow the task to define the last modified date for content stored in the zip, jar, or war.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.3.0-RC1
    • 2.2.0-RC1
    • Ant
    • None

    Description

      Currently with ANT Tasks it is not possible to fully control the way Zip, Jar, Ear, or War files are produced. The issue is that the default behavior of the task includes the last modified date information from the file system when in creates an archive. The result is that with the exact same source code the archive produced from any given build will vary based on where and when the build was run. In an environment like HUDSON where you wish to build on different servers, from different branches, and at different times this is problematic since the MD5 hash value of the artifact the build produces will not reflect the content of the code but rather reflect a combination of the content of the code and the current time of the server where the build was run.

      ANT should support an option for the task to define the last modified date of the archive. If support for this option is added to the Zip task then it will be automatically available in tasks that extend it.

      The patch file attached to this issue provides an implementation of the last modified attribute and can be applied to SVN revision 784603 of Zip.java.

      Attachments

        1. Zip.java.patch
          3 kB
          Mark Farnsworth

        Activity

          People

            Unassigned Unassigned
            markfarnsworth Mark Farnsworth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified