Re: Reproducible JARs

2017-08-27 Thread Stefan Bodewig
On 2017-08-23, George Bateman wrote: > Stefan wrote: >> The manifest may contain the current time stamp, to make things worse >> for you :-) > Fortunately, I don't see anywhere in Jar.java that mentions time or date, > except passing it to Zip#zipFile() as the modification time, and I override >

Re: Reproducible JARs

2017-08-23 Thread George Bateman
Hi Gintas and Stefan, and List, Thanks very much for your emails. Sorry for the slight delay in replying! On 25 July 2017 at 07:39, Gintautas Grigelionis wrote: > I believe the easier way would be to diff the fileset of classes to be > packed to the fileset of classes in the jar before creating

Re: Reproducible JARs

2017-07-24 Thread Gintautas Grigelionis
I believe the easier way would be to diff the fileset of classes to be packed to the fileset of classes in the jar before creating a new jar. There's a tool called zipdiff that could do the trick (it may ignore timestamps, etc). That would correspond to a javac deciding on whether to recompile the

Re: Reproducible JARs

2017-07-23 Thread Stefan Bodewig
On 2017-07-22, George Bateman wrote: > I'm currently trying to make Processing 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 mod