RFR: 8276766: Enable jar and jmod to produce deterministic timestamped content [v19]
Alan Bateman
alanb at openjdk.java.net
Mon Dec 6 16:39:20 UTC 2021
On Mon, 6 Dec 2021 13:57:48 GMT, Andrew Leonard <aleonard at openjdk.org> wrote:
>> Add a new --source-date <TIMESTAMP> (epoch seconds) option to jar and jmod to allow specification of time to use for created/updated jar/jmod entries. This then allows the ability to make the content deterministic.
>>
>> Signed-off-by: Andrew Leonard <anleonar at redhat.com>
>
> Andrew Leonard has updated the pull request incrementally with one additional commit since the last revision:
>
> 8276766: Enable jar and jmod to produce deterministic timestamped content
>
> Signed-off-by: Andrew Leonard <anleonar at redhat.com>
src/jdk.jartool/share/classes/sun/tools/jar/resources/jar.properties line 300:
> 298: \ --date=TIMESTAMP The timestamp in ISO-8601 extended offset date-time with\n\
> 299: \ optional time-zone format, to use for the timestamps of\n\
> 300: \ entries, eg. "2022-02-12T12:30:00-05:00"
The updated wording looks much better. Just a minor nit, it should be "e.g." rather than "eg.".
-------------
PR: https://git.openjdk.java.net/jdk/pull/6481
More information about the compiler-dev
mailing list