Commit 961c3f5c authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Generation of web.xml fixed when the plugin contains more than one JSP.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1282 b35dd754-fafc-0310-a699-88a17e54d16e
parent daffc1b8
...@@ -883,17 +883,15 @@ ...@@ -883,17 +883,15 @@
<equals arg1="${plugin.@{plugin}.webxml.available}" arg2="true" /> <equals arg1="${plugin.@{plugin}.webxml.available}" arg2="true" />
<then> <then>
<xmltask source="${plugin.dev.dest.dir}/@{plugin}/target/jspc/web.xml"> <!-- Copy the servlet and servlet-mapping elements from the original web.xml to a temp buffer.
<copy path="//web-app/servlet" buffer="foobar" /> Note: The original web.xml can only contain one servlet and servlet-mapping -->
<xmltask source="@{pluginsrc}/@{plugin}/src/web/WEB-INF/web.xml">
<copy path="//web-app/servlet[last()]" buffer="foobar" />
<copy path="//web-app/servlet-mapping[last()]" buffer="foobar2" />
</xmltask> </xmltask>
<xmltask source="@{pluginsrc}/@{plugin}/src/web/WEB-INF/web.xml" dest="${plugin.dev.dest.dir}/@{plugin}/target/web/WEB-INF/web.xml"> <!-- Add the copied servlet and servlet-mapping elements to the generated web.xml -->
<xmltask source="${plugin.dev.dest.dir}/@{plugin}/target/jspc/web.xml" dest="${plugin.dev.dest.dir}/@{plugin}/target/web/WEB-INF/web.xml">
<insert path="/web-app/servlet[last()]" buffer="foobar" position="after" /> <insert path="/web-app/servlet[last()]" buffer="foobar" position="after" />
</xmltask>
<xmltask source="${plugin.dev.dest.dir}/@{plugin}/target/jspc/web.xml">
<copy path="//web-app/servlet-mapping" buffer="foobar2" />
</xmltask>
<xmltask source="@{pluginsrc}/@{plugin}/src/web/WEB-INF/web.xml" dest="${plugin.dev.dest.dir}/@{plugin}/target/web/WEB-INF/web.xml">
<insert path="/web-app/servlet-mapping[last()]" buffer="foobar2" position="after" /> <insert path="/web-app/servlet-mapping[last()]" buffer="foobar2" position="after" />
</xmltask> </xmltask>
......
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