Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » need explanation of org.eclipse.wst.common.component file
need explanation of org.eclipse.wst.common.component file [message #631571] Fri, 08 October 2010 03:54 Go to next message
sasha is currently offline sashaFriend
Messages: 58
Registered: July 2009
I have this file
<?xml version="1.0" encoding="UTF-8"?>

<project-modules id="moduleCoreId" project-version="1.5.0">

<wb-module deploy-name="myapp1_WAR">

<wb-resource deploy-path="/" source-path="/WebContent"/>

<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>

<property name="context-root" value="/myctxrt"/>

<property name="java-output-path" value="/myapp1_WAR/build/classes"/>



I have a bunch of directories under web-inf such as web-inf/taglib and
web-inf/lib and web-inf/classes. I want them all to be mapped to deploy-path
"/web-inf", do I need to specify all of them , individually ?

If a specify a resource like this

<wb-resource deploy-path="/web-inf" source-path="/WebContent/Web-inf" />
will it map all folders and files under /WebContent to my deploy path ? in
otherwords is it recursive ?

if I already mapped folder

"/Webcontent" to deploypath "/" in my dwp, why do I need to map its
subfolders like WebContent/web-inf ?

Is there some place I can read some docs on this ? It is really not clear at
Re: need explanation of org.eclipse.wst.common.component file [message #631580 is a reply to message #631571] Fri, 08 October 2010 05:48 Go to previous message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Sasha, I highly recommend that you do not edit the org.eclipse.wst.common.component file by hand. There is a property page called Deployment Assembly that provides a GUI for this. You need to right-click on the Web project > Properties > Deployment Assembly.

In you particular case you should not do anything. By default you have the following mapping:

<wb-resource deploy-path="/" source-path="/WebContent"/>

Mappings a recursive. This means that /WebContent/WEB-INF/** will map to /WEB-INF/** and so on.

You can easily test the effect of your current mapping by just exporting your web project to a WAR - just right-click on your Web project > Export > Export WAR.
Previous Topic:Linking between different projects
Next Topic:Trouble with JavaServer Faces
Goto Forum:

Current Time: Tue Oct 27 13:50:06 GMT 2020

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

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

Back to the top