27Nov/072
Diff / Patch and Eclipse
In a typical opensource fashion, I receive patches for IzPack.
I always review them carefuly, then I try to apply them on the latest source code tree. I am using either the BSD or the GNU implementation of patch.
For whatever reason, I can never apply the patches using these tools if they have been generated by Eclipse... The only way to merge is to launch Eclipse and apply the patch from there.
I haven't yet managed to figure out why these patches cannot be applied using BSD or GNU patch. They really look like normal unified-style diff output...
Any idea?
Related posts:
- Diffing and patching in Java ?
- Git branches to handle contributor patches
- Building a GEF-based Eclipse editor – part 3
- Eclipse 3.1 !
- Eclipse 3.1 M5

November 12th, 2009 - 22:44
only 2 years after you posted, did you figure it out? I just ran into this same problem, here’s what I ended up with:
patch -u -p0 < ~/diff.patch
November 13th, 2009 - 09:35
I did not encounter this issue recently.