/[Apache-SVN]
ViewVC logotype

Revision 1919236


Jump to revision: Previous Next
Author: centic
Date: Mon Jul 15 05:40:56 2024 UTC (3 months, 2 weeks ago)
Changed paths: 7
Log Message:
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.

Changed paths

Path Details
Directorypoi/trunk/poi/src/main/java/org/apache/poi/util/Reproducibility.java added
Directorypoi/trunk/poi/src/test/java/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java modified , text changed
Directorypoi/trunk/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/ZipContentTypeManager.java modified , text changed
Directorypoi/trunk/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/ZipHelper.java modified , text changed
Directorypoi/trunk/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPackagePropertiesMarshaller.java modified , text changed
Directorypoi/trunk/poi-ooxml/src/main/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPartMarshaller.java modified , text changed
Directorypoi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26