Merging WEB resources from different source folders [message #199305] |
Sat, 01 September 2007 17:41 |
Eclipse User |
|
|
|
Originally posted by: toth_ferenc.hotmail.com
I have similar problem I read in this list.
( http://dev.eclipse.org/newslists/news.eclipse.webtools/msg10 860.html)
I want to merge WEB resources from different source folders during =
publishing.
My .settings/org.eclipse.wst.common.component file:
----------------------------------------------------
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<project-modules id=3D"moduleCoreId" project-version=3D"1.5.0">
<wb-module deploy-name=3D"jsftest">
=
<!-- java source folders -->
<wb-resource deploy-path=3D"/WEB-INF/classes" =
source-path=3D"/core/src/main/java"/>
<wb-resource deploy-path=3D"/WEB-INF/classes" =
source-path=3D"/core/target/src"/>
<wb-resource deploy-path=3D"/WEB-INF/classes" =
source-path=3D"/common/src/main/java"/>
<wb-resource deploy-path=3D"/WEB-INF/classes" =
source-path=3D"/common/target/src"/>
<wb-resource deploy-path=3D"/WEB-INF/classes" =
source-path=3D"/web/src/main/java"/>
<wb-resource deploy-path=3D"/WEB-INF/classes" =
source-path=3D"/web/target/src"/>
<!-- generated WEB resources -->
<!-- manual editable WEB resources to overwrite generated content -->
<wb-resource deploy-path=3D"/css" source-path=3D"/web/src/main/css"/>
<wb-resource deploy-path=3D"/images" source-path=3D"/web/src/main/image=
s"/>
<wb-resource deploy-path=3D"/skins" source-path=3D"/web/src/main/skins"=
/>
<wb-resource deploy-path=3D"/" source-path=3D"/web/src/main/xhtml"/>
=
<!-- other merged, filtered WEB resource -->
<wb-resource deploy-path=3D"/" source-path=3D"/target/merged-webresourc=
es"/>
<wb-resource deploy-path=3D"/" source-path=3D"/web/target/webresources"=
/>
=
<!-- properties -->
<property name=3D"java-output-path" value=3D"target/classes"/>
<property name=3D"context-root" value=3D"jsftest"/>
</wb-module>
</project-modules>
------------------------------------------------------------ ----------
I want to overwrite files from /web/target/webresources with files
from /target/merged-webresources, so my entries are:
<!-- other merged, filtered WEB resource -->
<wb-resource deploy-path=3D"/" source-path=3D"/web/target/webresources"=
/>
<wb-resource deploy-path=3D"/" source-path=3D"/target/merged-webresourc=
es"/>
Behavior is very strange, it works only with reverse order, when
/target/merged-webresources
<!-- other merged, filtered WEB resource -->
<wb-resource deploy-path=3D"/" source-path=3D"/target/merged-webresourc=
es"/>
<wb-resource deploy-path=3D"/" source-path=3D"/web/target/webresources"=
/>
Is it normal, so processing of <wb-resource> entries performed in revers=
e =
order, or
processing order cannot be defined in config file?
=
Now I have to merge files using Ant script, but I would like to omit it.=
Tnx
Ferenc Toth
=
|
|
|
Powered by
FUDForum. Page generated in 0.01870 seconds