I`ve got some (html) files which eventually have to be included to a WAR file. The files look like:
<html>
..
<!-- marker_id_start -->
.. html mark-up I want to keep...
<!-- marker_id_end -->
..
</html>
I`d like to transform content of each file cutting off everything before marker_id_start and after marker_id_end so the result file would look like:
<!-- marker_id_start -->
.. html mark-up I want to keep...
<!-- marker_id_end -->
or even just like
.. html mark-up I want to keep...
The transformation is part of war assembly process, so I thought I could use maven resource plugin with a custom filter. Obviously I would need to configure marker ids but I`m not sure how to do that and how to make these custom config options visible in my filter.
The only documentation I`ve found is this: https://maven.apache.org/plugins/maven-resources-plugin/examples/custom-resource-filters.html but it does not say much, only very basic things.
Any help is appreciated. Thanks.