Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to convert a former web project into a utility project?
How to convert a former web project into a utility project? [message #189628] Mon, 12 March 2007 12:40 Go to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
I need to convert a "WebProject" into a "Utility Module", but when
opening the Properties => Project facets => Modify projects-dialog and
trying to deselect "Dynamic Web Module" then eclipse refuses to do so
and instead pops up an error telling me that this facet cannot be
deselected because it's critical for the proper funcion of this project.

How do I change a project's facet after the fact? I know that I could
most like go into the .settings =>
org.eclipse.wst.common.project.facet.core.xml file and fiddle in there
by hand, but I suppose there's a suggested better and more "official"
way to do so.

The project was created automatically from a .wsdl file and that process
obviously creates a "Dynamic Web Module" without further asking...

Michael
Re: How to convert a former web project into a utility project? [message #189637 is a reply to message #189628] Mon, 12 March 2007 12:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

In article <et3ho2$fgi$1@utils.eclipse.org>, mmo@zurich.ibm.com says...
> I need to convert a "WebProject" into a "Utility Module", but when
> opening the Properties => Project facets => Modify projects-dialog and
> trying to deselect "Dynamic Web Module" then eclipse refuses to do so
> and instead pops up an error telling me that this facet cannot be
> deselected because it's critical for the proper funcion of this project.
>
> How do I change a project's facet after the fact? I know that I could
> most like go into the .settings =>
> org.eclipse.wst.common.project.facet.core.xml file and fiddle in there
> by hand, but I suppose there's a suggested better and more "official"
> way to do so.
>
> The project was created automatically from a .wsdl file and that process
> obviously creates a "Dynamic Web Module" without further asking...
>
> Michael

Your best bet is probably to create a new project of the correct type,
and copy the classes over from the web project to the new one.


--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Re: How to convert a former web project into a utility project? [message #189645 is a reply to message #189637] Mon, 12 March 2007 14:17 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
Well - then I rather "massage" the
org.eclipse.wst.common.project.facet.core.xml-file (actually in the
meantime I already did :-) ).

Just as an aside: I *hate* it when SW tries to prevent me from doing
perfectly valid operations. I very much appreciate a hint here and there
(if necessary including a clear warning, that if one continues from here
one might henceforth be walking on thin ice and maybe even loose some
work) but we should leave such attempts to outsmart the user to another
not-to-be-mentioned-here company...

Michael


"David Kerber" <ns_dkerber@ns_WarrenRogersAssociates.com> wrote in
message news:MPG.205f1883e1a9a9a29896d8@news.eclipse.org...
> ...
> Your best bet is probably to create a new project of the correct type,
> and copy the classes over from the web project to the new one.
>
>
> --
> Remove the ns_ from if replying by e-mail (but keep posts in the
> newsgroups if possible).
Re: How to convert a former web project into a utility project? [message #189730 is a reply to message #189645] Mon, 12 March 2007 18:36 Go to previous message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

In article <et3nd4$fhr$1@utils.eclipse.org>, mmo@zurich.ibm.com says...
> Well - then I rather "massage" the
> org.eclipse.wst.common.project.facet.core.xml-file (actually in the
> meantime I already did :-) ).

That's well above my head when it comes to Eclipse configuration!
That's why I suggested the slower but surer road...

>
> Just as an aside: I *hate* it when SW tries to prevent me from doing
> perfectly valid operations. I very much appreciate a hint here and there
> (if necessary including a clear warning, that if one continues from here
> one might henceforth be walking on thin ice and maybe even loose some
> work) but we should leave such attempts to outsmart the user to another
> not-to-be-mentioned-here company...

;-D

.....

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Previous Topic:Running custom deployment scripts in WTP possible?
Next Topic:Problem creating simple Session Bean under Eclipse 3.2.2
Goto Forum:
  


Current Time: Fri Apr 19 23:13:47 GMT 2024

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

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

Back to the top