Rex
Rex

Reputation: 801

Need a Java and Javascript diff tool written in Java

We need an accurate diff utility for Java and Javascript files, written in Java. It should be invokable from within an Eclipse (version 3.2 or 3.3) application. Preferably we need the Java source code for this utility also.

The utility should be able to compare two files (old and new, say) and determine the following accurately:

Upvotes: 0

Views: 3209

Answers (3)

thoni56
thoni56

Reputation: 3335

I needed a Java diff implementation and found this: http://javacook.darwinsys.com/javasrc/textproc/Diff.java which I adapted.

Upvotes: 0

cjstehno
cjstehno

Reputation: 13994

Eclipse has a very good diff/compare plugin installed by default. Have you looked into using and/or extending that (it's opensource)? I would not think that adding some statistics reporting to the existing plug-in would be all that difficult, though sometimes plug-in development (even just simple extension) can be deceiving.

Good luck.

Upvotes: 2

Matthew Flaschen
Matthew Flaschen

Reputation: 284836

See Diffj.

Upvotes: 1

Related Questions