I am using Eclipse 3.5 JEE 64 bit on OS X Snow Leopard.
Was wondering how the .classpath file's tag's order gets changed everytime I run a standard Ant build script.
When I manually change the build path order like this (via Eclipse):
Right click on project in Project Explorer.
A context menu opens up
Go to Build Path
Configure Build Path
Click on the Java Build Path Order and Export Tab
Modified the order to look like this:
- myproject/work/src (moved this to the top)
- myproject/work/test/unit
- myproject/work/impl/src
(The myproject/work/impl/src is a linked resource which points to a 2nd Eclipse project which is open in Eclipse at the same time)
The myproject/work/impl/src by default is at the first position for the order. Manually moved myproject/work/src to the top (by clicking on the Up button).
When I run my build script, it seems that the .classpath file (which this order is written to behind-the-scenes) is reset to how it was before:
Why is this? Where and when does Eclipse modify the .classpath file? How can it be set so people can change the build order manually through Eclipse but the .classpath's build order never gets reset to its defaults? After setting this and building the project by right mouse clicking on my project (not the impl one) and going to Build Project, the order never gets changed. It only resets when the Ant build script is run.