Diff/Merge library in java

1,802 views
Skip to first unread message

Erdinc Yilmazel

unread,
Mar 18, 2009, 9:14:28 AM3/18/09
to jav...@googlegroups.com
Do you know an open source java library for merging, patching diffing
two source files? I need a functionality such as the one that
subversion provides when updating from the repository. It
automatically merges your working copy of a file with the one from the
repository, if it fails because of a conflict, it leaves the conflict
resolution to the developer. Any help is appreciated.

Thanks,
Erdinc YILMAZEL

Renjith Nair

unread,
Mar 18, 2009, 9:41:31 AM3/18/09
to jav...@googlegroups.com
Try Winmerge (http://winmerge.org/) or kdiff3 (http://kdiff3.sourceforge.net/)

Winmerge is quite stable but only for windows. Kdiff3 has 3 way merge functionality and supports win,mac and linux.

Regards,
renjith

2009/3/18 Erdinc Yilmazel <erdincy...@gmail.com>

Brendan Quinn

unread,
Mar 18, 2009, 10:00:24 AM3/18/09
to jav...@googlegroups.com
how about http://code.google.com/p/google-diff-match-patch/ ? never used it but it looks useful. There is a Java version (among others)

Brendan.

2009/3/18 Erdinc Yilmazel <erdincy...@gmail.com>

Erdinc Yilmazel

unread,
Mar 18, 2009, 10:09:31 AM3/18/09
to jav...@googlegroups.com
Thanks Renjith,
I am looking for a library that I can embed in my own java
application. Not a desktop program that i can use for that purpose.
Thank you any way.

Erdinc

Erdinc Yilmazel

unread,
Mar 18, 2009, 10:11:21 AM3/18/09
to jav...@googlegroups.com
Thank you Brendan, I am going to look at it.

A Behling

unread,
Mar 18, 2009, 10:17:09 AM3/18/09
to jav...@googlegroups.com
beyond compare, not open source, but money well spent ... worth each penny ...

2009/3/18 Erdinc Yilmazel <erdincy...@gmail.com>

Renjith Nair

unread,
Mar 18, 2009, 1:56:34 PM3/18/09
to jav...@googlegroups.com
Oops my mistake. Didn't read email carefully.. quick reply from work.

2009/3/18 Erdinc Yilmazel <erdincy...@gmail.com>

Neil Bartlett

unread,
Mar 18, 2009, 2:06:20 PM3/18/09
to jav...@googlegroups.com
Parts of the Eclipse "team" support, which includes their comparison
tools for use with different VCSs, are general enough to be used as a
standalone library in another application.

Regards,
Neil
Reply all
Reply to author
Forward
0 new messages