Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » need explanation of org.eclipse.wst.common.component file
need explanation of org.eclipse.wst.common.component file [message #631571] Thu, 07 October 2010 23:54 Go to next message
sasha is currently offline sasha
Messages: 58
Registered: July 2009
Member
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"/>

</wb-module>

</project-modules>

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
all
Re: need explanation of org.eclipse.wst.common.component file [message #631580 is a reply to message #631571] Fri, 08 October 2010 01:48 Go to previous message
Kaloyan Raev is currently offline Kaloyan Raev
Messages: 185
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: Wed Jul 23 01:47:09 EDT 2014

Powered by FUDForum. Page generated in 0.06030 seconds