facebook

Changing the WebRoot directory location

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #263180 Reply

    Ksatria
    Member

    Is 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,
    Ksatria

    #263269

    Riyad Kalla
    Member

    Is 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).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Changing the WebRoot directory location

You must be logged in to post in the forum log in