JPz'log Coin Coin and Plop da Plop

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?

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • Live
  • Netvibes
  • StumbleUpon
  • Technorati
  • FriendFeed
  • Wikio
  • Twitter
  • Identi.ca
  • Reddit
  • RSS
  • Slashdot

Related posts:

  1. Diffing and patching in Java ?
  2. Git branches to handle contributor patches
  3. Building a GEF-based Eclipse editor – part 3
  4. Eclipse 3.1 !
  5. Eclipse 3.1 M5

Comments (2) Trackbacks (0)
  1. 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


Leave a comment


No trackbacks yet.

JPz'log is Digg proof thanks to caching by WP Super Cache