Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Way to change web root on dynamic web project
Way to change web root on dynamic web project [message #203164] Fri, 26 October 2007 18:39 Go to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 480
Registered: July 2009
Senior Member
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 #203180 is a reply to message #203164] Fri, 26 October 2007 19:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: davisons.qwest.com

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
>
Re: Way to change web root on dynamic web project [message #203236 is a reply to message #203180] Sat, 27 October 2007 19:37 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 480
Registered: July 2009
Senior Member
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
>>
Re: Way to change web root on dynamic web project [message #203339 is a reply to message #203236] Mon, 29 October 2007 19:52 Go to previous message
Rob Frost is currently offline Rob FrostFriend
Messages: 64
Registered: July 2009
Member
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
>>>
>
>
Previous Topic:Method DependencyManager.getModStamp missing
Next Topic:faceted project events
Goto Forum:
  


Current Time: Mon Nov 24 18:03:03 GMT 2014

Powered by FUDForum. Page generated in 0.02765 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software