Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Creating a new Module Type
Creating a new Module Type [message #231917] Wed, 27 May 2009 07:44 Go to previous message
Anders Olsson is currently offline Anders Olsson
Messages: 21
Registered: July 2009
Junior Member
Hello,

I'm in the process of defining a new Module Type, that will be publishable
through my custom Server Adapter.

What I've done so far is to add the extensions:
<extension point="org.eclipse.wst.server.core.moduleTypes">
<moduleType id="my.type" name="MY TYPE">
</moduleType>
</extension>

<extension point="org.eclipse.wst.server.core.runtimeTypes">
<runtimeType...>
<moduleType types="jst.ear" versions="1.2,1.3,1.4,5.0"/>
<moduleType types="my.type" versions="1.0">
</moduleType>
</runtimeType>
</extension>

<extension point="org.eclipse.wst.common.project.facet.core.runtimes">
<runtime-component-type.../>
<runtime-component-version.../>
<adapter>
<runtime-component.../>
<factory.../>
<type.../>
</adapter>
<supported>
<runtime-component.../>
<facet
id="my.type"
version="1.0">
</facet>
</supported>
</extension>


Also, in my Serverdef I have:
<module>
<type>my.type</type>
<publishDir>${deploy.dir}</publishDir>
<publisherReference>org.eclipse.jst.server.generic.antpublisher </publisherReference>
</module>

I've added the natures:
"org.eclipse.wst.common.project.facet.core.nature" - For the ability to
use facet dependencies
and
"org.eclipse.wst.common.modulecore.ModuleCoreNature" - To be able to be
used as a module, to add to a Server Adapter.
to my project type.

My problem is that most of this is just figured out by taking from
different examples. But I've found no example as a whole, how to create a
new Module Type. I've tried reading the sources of WST/JST, but they're
not really written in a way that makes it easy to follow.

What more do I need to do in order to make this work? Are there any
examples of this? I have found no help in the book "Eclipse Web Tools
Platform".

Thanks in advance,

Anders Olsson
 
Read Message
Read Message
Previous Topic:Serializing namespaces on the xsd schema level
Next Topic:Tomcat start fails with syntax error
Goto Forum:
  


Current Time: Sat May 25 13:05:33 EDT 2013

Powered by FUDForum. Page generated in 0.04703 seconds