Commit 06876d60 authored by Guus der Kinderen's avatar Guus der Kinderen

Merge pull request #324 from guusdk/OF-930

OF-930: Overlay should allow for WEB-INF overrides.
parents 8a003ae9 2c74b64e
...@@ -606,20 +606,27 @@ ...@@ -606,20 +606,27 @@
</filterset> </filterset>
</copy> </copy>
<!-- Copy over Sitemesh files. --> <!-- Copy over other WEB-INF files. -->
<copy file="${web.dir}/WEB-INF/decorators.xml" <copy todir="${webapp.dest.dir}/WEB-INF" overwrite="true">
toFile="${webapp.dest.dir}/WEB-INF/decorators.xml" <fileset dir="${web.dir}/WEB-INF">
overwrite="true"> <include name="**/*"/>
</copy> <exclude name="web.xml"/>
<copy file="${web.dir}/WEB-INF/sitemesh.xml" </fileset>
toFile="${webapp.dest.dir}/WEB-INF/sitemesh.xml"
overwrite="true">
</copy>
<copy file="${web.dir}/WEB-INF/dwr.xml"
toFile="${webapp.dest.dir}/WEB-INF/dwr.xml"
overwrite="true">
</copy> </copy>
<!-- When there are WEB-INF overlay files, use those. -->
<if>
<equals arg1="${overlay.web.dir.found}" arg2="true"/>
<then>
<copy todir="${webapp.dest.dir}/WEB-INF" overwrite="true">
<fileset dir="${overlay.web.dir}/WEB-INF">
<include name="**/*"/>
<exclude name="web.xml"/>
</fileset>
</copy>
</then>
</if>
<!-- Create a jar of compiled servlets --> <!-- Create a jar of compiled servlets -->
<jar jarfile="${jspc.dest.dir}/${jspc.jar.name}"> <jar jarfile="${jspc.dest.dir}/${jspc.jar.name}">
<fileset dir="${jspc.classes.dest.dir}" includes="**/*.class"/> <fileset dir="${jspc.classes.dest.dir}" includes="**/*.class"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment