- This topic has 1 reply, 2 voices, and was last updated 18 years, 7 months ago by
Riyad Kalla.
-
AuthorPosts
-
KsatriaMemberIs there any way to change the location of the webroot directory used by myeclipse? My project uses clearcase so I want to make sure the webroot directory is under version control. Clearcase needs it to be in a specific directory for that.
I’m using windows xp and myeclipse version 5.1.
I can’t find any settings in the eclipse ui to change it.
I’ve tried creating a shortcut in my workspace project directory called WebRoot which links to the webroot directory I have under source control. MyEclipse doesn’t care about the shortcut link.
I’ve tried changing the “webrootdir” attribute in the .mymetadata file but that seems to do nothing.
I’m getting very frustrated. Please help.
Thanks,
KsatriaDecember 10, 2006 at 11:32 pm #263269
Riyad KallaMemberIs there any way to change the location of the webroot directory used by myeclipse? My project uses clearcase so I want to make sure the webroot directory is under version control. Clearcase needs it to be in a specific directory for that.
Right now you need to do it by going to your navigator view, and opening the .mymetadata file and changing the value in that file, then saving it and reopening your project. The reason we made it read-only in the UI is a long time ago we allowed it to be changed, and users are changing it more often than we thought they would and other properties in the project (capabilities) that need to know what the webroot is were getting confused and mixed up, so we made it a read only property in the UI, but you can still change it with some manual legwork.
I’ve tried changing the “webrootdir” attribute in the .mymetadata file but that seems to do nothing.
You actually did the right thing, did you be sure to close and reopen the project? How were you sure that it didn’t work? What were you expecting to happen that didn’t happen?
Please also keep in mind that the default output directory of WebRoot/WEB-INF/classes is still going to cause those directories to be created in the old location until you change them under the Project Propertpes > Java Build Path > Source, preference page (it’s the setting at the bottom, output dir).
-
AuthorPosts