modify web.xml in amp extensions

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2013 04:56 AM
Hi
I've added 2 amp extensions for Share and each of them overrides web.xml, adds some filters, is there any way to merge web.xml changes in the resulting war file? Now I can see only two solutions:
1. apply ALL changes in every amp's web.xml
2. create separate amp with the aggregated web.xml
in both cases I can not deploy a single amp separately and run integration tests for example.
May be someone invented a better approach for this.
Many thanks
I've added 2 amp extensions for Share and each of them overrides web.xml, adds some filters, is there any way to merge web.xml changes in the resulting war file? Now I can see only two solutions:
1. apply ALL changes in every amp's web.xml
2. create separate amp with the aggregated web.xml
in both cases I can not deploy a single amp separately and run integration tests for example.
May be someone invented a better approach for this.
Many thanks

Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2013 06:32 AM
Hello,
an adapted, aggregated web.xml should only be added in the final WAR build project, where you perform your AMP to WAR installations / overlay. I see no other way of doing this.
Why do your AMPs need to modify the web.xml? In all my years of Alfresco development I have never needed to do this except for some personal experiments…
Regards
Axel
an adapted, aggregated web.xml should only be added in the final WAR build project, where you perform your AMP to WAR installations / overlay. I see no other way of doing this.
Why do your AMPs need to modify the web.xml? In all my years of Alfresco development I have never needed to do this except for some personal experiments…
Regards
Axel

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2013 02:47 AM
>>Why do your AMPs need to modify the web.xml?
I need filters to be added for SSO integration and for monitoring tools.
I need filters to be added for SSO integration and for monitoring tools.
