Search code examples
javaeclipse

comparing eclipse project settings systemattically


My question is: how I can systematically compare the settings of two eclipse projects?

Background: I have two projects in eclipse, both using JavaCC. When I add maven nature to one of them, JavaCC doesn't work any more. When I remove maven nature, the once-has-been maven project seems spoiled, JavaCC still does not work.

So I need a systematical method to find what the difference is between these projects.


Solution

  • You can run diff on the configuration files, located in the .settings directory in the project folder.

    So you run

    diff -r NewProject/.settings OldProject/.settings

    That will show all differences between the config of NewProject and OldProject

    (There is also a .classpath so also do a:

    diff -r NewProject/.classpath OldProject/classpath

    Because this is just doing a text diff, it might be difficult to read, but it should at least give you a hint.

    Where NewProjecet and OldProjcet is the name of the old/new project folder.