I have Java project with different modules on it. The project have one core module where all the common configuration files kept. Each module has separate configuration files like .properties
files, hibernate.cfg
, web.xml
etc. It is not necessary that every time all modules will be there on the final build.
My problem is that, suppose 3 modules such as A, B & C are present. Each has its on web.xml
and it contains only the servlets and mapping necessary for that. I want to know how concatenate these web.xml
while building. I know that from ant
I can call a Java application. The position of tags is important in web.xml
.
How it possible to concatenate these web.xml
effectively? I tried xstream for this but it was a failure.