Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP 1.0.1 Flexible Project Support - How to include non Java resources from another project?
WTP 1.0.1 Flexible Project Support - How to include non Java resources from another project? [message #162612] Wed, 01 March 2006 22:24
Brian Guan is currently offline Brian GuanFriend
Messages: 6
Registered: July 2009
Junior Member
Hi all,

Using the newly released WTP 1.0.1, I am trying to accomplish something I
have been able to do under WTP 0.7 but I am not having any luck due to
lack of documentation or what I suspect to be a bug...

Basically, I have project A (simple resource project) which consists of a
bunch of files e.g. i18n.properties, and project B (Dynamic Web project)
which needs contents of A as files in say WEB-INF/i18n instead of packaged
into a jar and placed in WEB-INF/lib.

This used to be achievable in WTP 0.7 when I followed instruction outlined
on this blog: http://roumanoff.blogspot.com/ - basically by editing
..wtpmodules to have a dependent module included as "consumes" instead of
"uses"

Can someone who has achieved this in WTP 1.0.x give me a hand?

Many thanks in advance.


P.S. I posted a bug titled: "WTP intermodule dependency-type 'consumes'
not working" as https://bugs.eclipse.org/bugs/show_bug.cgi?id=129380 on
the same subject but I am not getting any feedback.

Anyway, here's the steps to reproduce this:

1. Setup 2 projects:

resources - using New Project Wizard as Java project
web - using New Project Wizard as Dynamic Web Project

2. Add a file hello.txt into resources

3. Edit web project's properties J2EE module dependency to include resources

4. Use WTP to add a tomcat server and deploy web project to it, and verify that
resources.jar containing hello.txt is included in tomcat's
webapps/web/WEB-INF/lib

5. Now edit web project's .settings/.component so to change the dependency-type
from "uses" to "consumes" as in WTP 0.7 i.e.

<dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/resources/resources">
<dependency-type>consumes</dependency-type>
</dependent-module>

6. Republish the web project, and observe that resources is still
published as a jar, not with files as-is

It is possible that I have misunderstood how to setup this sort of inter-module
dependency properly, but this is a very under-documented area of WTP.
Previous Topic:CHKJ3000E: WAR Validation Failed: java.lang.NullPointerException
Next Topic:wtp downloads
Goto Forum:
  


Current Time: Tue Apr 23 06:48:57 GMT 2024

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

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

Back to the top