https://bz.apache.org/bugzilla/show_bug.cgi?id=61269

--- Comment #9 from Stefan Bodewig <[email protected]> ---
Thank you, Emmanuel.

I also believe Ant already provides many means to create reproducible builds
and I understand Debian's goal of setting defaults that would lead to
reproducible builds unless people have overridden certain properties.

I'm not sure I'd base these defaults all on the presence of SOURCE_DATE_EPOCH.
The again if this is the signal used by Debian and maybe other signals Ant
could detect it more prominently. Like Project#isConfiguredForReproducibelBuild
and manybe Project#getBuildTime returning a Calender instance or something like
this. This is just tossing out ideas.

Alternatively we could introduce ant.build.reproducible so the LLM Elliotte
asked has only been prdicting the future :-) . The again, having a common
timestamp is an inportant key ingredient that a boolean flag can not provide.

Anyway <propertyfile> already has a useJDKProperties flag that completely
suppresses the comment. At the same time it would probably randomize the order
of properties as then the JDK's Properties#store method is invoked which at
least doesn't provide any guarantees.

I'm thinking about adding an option to set the date used in
LayoutPreservingProperties, expose that to PropertyFile and make it default to
"now" overridden by SOURCE_DATE_EPOCH.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to