]> source.dussan.org Git - poi.git/commit
Add initial support for SOURCE_DATE_EPOCH
authorDominik Stadler <centic@apache.org>
Mon, 15 Jul 2024 05:40:56 +0000 (05:40 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 15 Jul 2024 05:40:56 +0000 (05:40 +0000)
commit5085e3d1b2af1ac20e6158b0a00797a0d3b6f2ba
treeaf1c26dbd052c082f6e55eedad2cd4634ce17492
parent1a07ee8d6a41a410c7567b3d58f9b1ee7815c941
Add initial support for SOURCE_DATE_EPOCH

This allows to create reproducible binary files without creation/modification-timestamp
being set when environment variable SOURCE_DATE_EPOCH is set.

See https://reproducible-builds.org/docs/source-date-epoch/ for the related specification.

For now, we ensure that Zip-file entries set the modification time to 1970-01-01,
which seems to be enough to make simple OOXML files reproducible.

There are likely some other places where resulting files are not reproducible, some
more testing will be necessary to identify other areas that should take this into
account as well.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919236 13f79535-47bb-0310-9956-ffa450edef68
poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/ZipContentTypeManager.java
poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/ZipHelper.java
poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPackagePropertiesMarshaller.java
poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPartMarshaller.java
poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java
poi/src/main/java/org/apache/poi/util/Reproducibility.java [new file with mode: 0644]
poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java