Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8276766

Enable jar and jmod to produce deterministic timestamped content

    XMLWordPrintable

Details

    • jar
    • b02

    Backports

      Description

        Currently Jar and Jmod implementation will timestamp newly created entries with the Current Time or the source file last modified timestamp.
        To enable "reproducible builds" the jar and jmod tooling need the ability to specify a "source-date" (akin to SOURCE_DATE_EPOCH standard), so that the generated content optionally has a specified "timestamp".

        This enhancement proposes the following changes:
        - jar and jmod:
          - New option: --source-date <timestamp>
              When set content entry timestamps will be set to the given <timestamp>

        Attachments

          Issue Links

            Activity

              People

                aleonard Andrew Leonard
                aleonard Andrew Leonard
                Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: