[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Way to change web root on dynamic web project

hi Cam,

For those contexts it may make sense to alter the associated component file 
mappings programmatically via the virtual component API (using 
IVirtualFolder.createLink() and IVirtualFolder.removeLink() as appropriate 
to add new and remove old "WebContent" mappings; you can look at 
J2EEElementChangedListener for the logic which performs this automatically 
in response to rename/move events).

Hope this helps,
Rob

"Cameron Bateman" <cameron.bateman@xxxxxxxxxx> wrote in message 
news:ac6d9fbacfbdba741baf5b9fe33824a7$1@xxxxxxxxxxxxxxxxxx
> That's a good idea for some scenarios, but what if I want to change the 
> directory name without changing the directory structure?  For example what 
> if I have no web root set (as seems to happen in projects created by 
> maven) or if I have several dir trees and I want to switch between them? 
> Also, if in some version control systems, changing directory structures 
> can lose history information.
>
>
> --Cam
>
> Stephen Davison wrote:
>
>> In the Project Explorer view, I just right-clicked on the WebContent 
>> folder, and then chose either the Move or the Rename options from the 
>> pop-up menu. The new folder name and/or location now shows in 
>> ..settings/org.eclipse.wst.common.component.
>
>> Regards,
>> Stephen
>
>> "Cameron Bateman" <cameron.bateman@xxxxxxxxxx> wrote in message 
>> news:b5692ecfb023612747d1e928836845e5$1@xxxxxxxxxxxxxxxxxx
>>> Is there any way to change where the web root (Web Content) folder on a 
>>> dynamic web project after project creation?  I see that there is a 
>>> project preference file for this, but can't seem to find any project 
>>> preference UI.
>>>
>>>
>>> --Cam
>>>
>
>