ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Bateman <georgebatema...@gmail.com>
Subject Reproducible JARs
Date Sat, 22 Jul 2017 20:24:59 GMT
Dear List,

I'm currently trying to make Processing <https://processing.org> build
reproducibly (so building it twice yields the exact same output file).
Currently this involves, as far as I can tell, unzipping every JAR
file, touching the files with a constant modification time, and
re-zipping it. (Even if you were to touch the .class files in advance,
there's MANIFEST.MF, which is created by Ant and which you have to
unzip to access.)

Unless there's some efficient way of doing this that I've missed,
could you advise me on how I'd go about writing a patch for Ant that
makes reproducible JARs easier? I'd been thinking of adding a
"modificationtime" attribute to the jar and zip tasks, and giving that
time to all the files, but I'd be grateful if you could give me a
rough idea of how Ant works and which files I'd need to be looking at
and editing.

Thanks,
George Bateman.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message