Reputation: 4060
So, I have an interesting question. I have three people using the same ant build xml file creating a jar file for an Eclipse project that hasn't changed in two months. We each do a build using this xml file and we each get a different sized jar (62 KB, 78 KB, and 101 KB). Also, when I do a winmerge on them, they are dramatically different.
What could cause this difference?
Upvotes: 3
Views: 2135
Reputation: 602
The only difference I can see can be:
You said winmerge shows dramatic differences. Are these w.r.t. the size of the various components inside the jar or are there structural differences (folder structures, different files etc.)? The latter would be more perplexing for sure.
Upvotes: 2
Reputation: 75376
Sounds like the folders being jarred together are not empty when the process begins.
Upvotes: 1
Reputation: 45576
In addition to Jon's suggestion, are there user preferences that ant script may pickup?
E.g. build.properties
file that can live in project directory, user home directory, etc.
It may be the case that there are different customizations of the project on each person's workstation.
Upvotes: 3
Reputation: 1500875
First thing to try: copy them all onto the same computer, unpack them in different directories, and run WinDiff (or whatever) on the uncompressed version. That will make it much more obvious what's going on.
Other possibilities - different versions of Java using different compression levels by default?
Upvotes: 7