This bug occurs when you run/debug as web application or the right click menu command Launch Web Application or Debug Web Application.
I was trying to set my web root to point to a sub directory of the main project directory. The launcher edited the server.xml file and and rewrote the Context tag for the respective project.
Specifically I had edited the relevant part of the tag to look like this:
docBase="D:/Projects/TestRootDir/web"
but the launcher changed it back to the default:
docBase="D:/Projects/TestRootDir"
When calling the Web Application->Start Server command (Right click menu from project in Navigator view). The launcher leaves the project as I had altered it.
In the documentation it mentions that you should be able to move stuff around like any other java project but the auto launcher is preventing this.
My suggestion would be to add a project property that allows you to point at the web root you want. Additionally, if the tag is already present in the server.xml it should not be rewritten as someone may have edited it.
Cheers,
Mike Cassisa
mcassisa@drs-tsi.com