Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1.0
-
Component/s: Documentation
-
Labels:None
-
Complexity:Intermediate
-
Tested on JDKs:1.4, 5.0. 6.0
-
Number of attachments :
Description
My merge file is like this
<?xml version="1.0" encoding="UTF-8"?>
<uberwar>
<wars>
<war>com.tty.tragid:Tragid</war>
<war>QuartersUI:QuartersUI</war>
</wars>
<webXml>
<contextParams>
<strategy name="ChooseByName">
<default>
<strategy name="Preserve"/>
</default>
<choice name="contextConfigLocation">
<strategy name="NodeMerge">
<context-param>
<param-name>$left:/param-name</param-name>
<param-value>$left:/param-value, $right:/param-value</param-value>
</context-param>
</strategy>
</choice>
</strategy>
</contextParams>
</webXml>
</uberwar>
I had a look at the source code and it seems to me that webXML node doesnt get processed at all, because the processing is happening in doMerge(...) which happens only for <merges/> nodes.
Is this a known issue? I am stuck with this issue and cannot use the uberwar goal because of this reason.
I did some reverse engineering on that. It seems that merge of "web.xml" does not work as documented since mid-2007 (sic!). The functionality is implemented via special merge type with parameters. Sample merge descriptor is attached.