Way to change web root on dynamic web project [message #203164] |
Fri, 26 October 2007 14:39  |
Eclipse User |
|
|
|
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
|
|
|
|
|
Re: Way to change web root on dynamic web project [message #203339 is a reply to message #203236] |
Mon, 29 October 2007 15:52  |
Eclipse User |
|
|
|
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@oracle.com> wrote in message
news:ac6d9fbacfbdba741baf5b9fe33824a7$1@www.eclipse.org...
> 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@oracle.com> wrote in message
>> news:b5692ecfb023612747d1e928836845e5$1@www.eclipse.org...
>>> 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
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06941 seconds