|Re: Way to change web root on dynamic web project [message #203339 is a reply to message #203236]
||Mon, 29 October 2007 19:52
| Rob Frost
Registered: July 2009
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,
"Cameron Bateman" <firstname.lastname@example.org> wrote in message
> 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.
> 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
>> "Cameron Bateman" <email@example.com> wrote in message
>>> 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.
Powered by FUDForum
. Page generated in 0.03938 seconds