Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » How to work with dependent modules
How to work with dependent modules [message #136860] Wed, 07 September 2005 03:49 Go to next message
Eclipse UserFriend
Hello all,

I have 2 simple java projects which I want to use within my web tools
project. There should be a possibility to generate automaticly a jar file
of these projects and deploy this jar into the .deployable/modules dir.

But I couldn't find any information about editing and working with the
wtpmodules file.

Is there any step by step how-to? How does it work?

Thanks
Marc
Re: How to work with dependent modules [message #136871 is a reply to message #136860] Wed, 07 September 2005 04:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neale.likemynds.com

Hi Marc,

If you look back to my post [Managing builds with shared jars...] on the
1st Sept, you'll find an attached .wtpmodules that covers what you are
asking about.

One important thing to note is that dependencies between modules in the
same project do not seem to work. Since I wrote that email, I've been
looking at some of the design documentation for webtools, and it seems
to be a 'feature' of the design.

I certainly have some problems with that project, where it sometimes
builds only part of the build. Usually solved with a Clean All.

Cheers,

Neale



Marc wrote:
> Hello all,
>
> I have 2 simple java projects which I want to use within my web tools
> project. There should be a possibility to generate automaticly a jar
> file of these projects and deploy this jar into the .deployable/modules
> dir.
>
> But I couldn't find any information about editing and working with the
> wtpmodules file.
>
> Is there any step by step how-to? How does it work?
>
> Thanks
> Marc
>
Re: How to work with dependent modules [message #136883 is a reply to message #136871] Wed, 07 September 2005 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Thank you,

I have tried it and followed the instructions.

But the list with the JAR / Modules is empty and so I can't select a jar.

What I am doing wrong?
Marc
Re: How to work with dependent modules [message #136990 is a reply to message #136883] Wed, 07 September 2005 09:50 Go to previous message
Eclipse UserFriend
Okay I got it work:

I put .wtpmodules File in my util-Project with this content:

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId">
<wb-module deploy-name="util">
<module-type module-type-id="jst.utility">
<version></version>
</module-type>
<wb-resource deploy-path="/" source-path="/resources"/>
<wb-resource deploy-path="/" source-path="/src"/>
</wb-module>
</project-modules>


Then I extended the .wtpmodule File of my web app project with the
following lines:

<dependent-module deploy-path="/WEB-INF/lib/"
handle="module:/resource/util-project/util">
<dependency-type>uses</dependency-type>
</dependent-module>

Regards,
Marc
Previous Topic:Problem starting Jboss 3.2.7 from eclipse
Next Topic:Extending servlet and dynamic web project wizards
Goto Forum:
  


Current Time: Tue May 06 05:21:46 EDT 2025

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

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

Back to the top