Can Eclipse Compare tool be called from command line? I just want to use it as a merge tool from an external tool.
To compare two files in Eclipse, first select them in the Project Explorer / Package Explorer / Navigator with control-click. Now right-click on one of the files, and the following context menu will appear. Select Compare With / Each Other.
To use Compare with Each Other, open the Package Explorer (or similar view) and select the source file. Then hold down Ctrl while you navigate to the other file in the same view. Then select the other file and release Ctrl.
I'm not aware that you can do this out of the box. But you can download the RCP SDK and create a really stripped down version of Eclipse which contains just the compare plugin. That will also help greatly with the startup time.
Any reason you insist on Eclipse for that? I've used WinMerge for exactly the same purpose (external diff tool). It has built in ability to be called from command-line.
Other options: https://stackoverflow.com/questions/792910/best-graphical-source-code-diff-viewer-editor-for-code-comparison-and-merging
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With