Commit acbcc2f5 authored by Bill Lynch's avatar Bill Lynch Committed by bill

Insert servlet mappings to the plugin.xml file.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@930 b35dd754-fafc-0310-a699-88a17e54d16e
parent e8f50985
...@@ -761,6 +761,10 @@ ...@@ -761,6 +761,10 @@
<fileset dir="@{pluginsrc}/@{plugin}/lib" includes="**/*.*" /> <fileset dir="@{pluginsrc}/@{plugin}/lib" includes="**/*.*" />
</copy> </copy>
<!-- Copy the plugin.xml file to the target dir, code below assumes it's there -->
<copy todir="${plugin.dest.dir}/@{plugin}" file="@{pluginsrc}/@{plugin}/plugin.xml"
overwrite="true" />
<!-- JSPC any JSP pages. Do this conditionally as there might not be a web dir. --> <!-- JSPC any JSP pages. Do this conditionally as there might not be a web dir. -->
<available property="plugin.@{plugin}.webdocs.available" <available property="plugin.@{plugin}.webdocs.available"
type="dir" file="@{pluginsrc}/@{plugin}/src/web" /> type="dir" file="@{pluginsrc}/@{plugin}/src/web" />
...@@ -810,6 +814,26 @@ ...@@ -810,6 +814,26 @@
<!-- Use xmltask to merge the generated web.xml file and a developer one (if any) --> <!-- Use xmltask to merge the generated web.xml file and a developer one (if any) -->
<copy tofile="${plugin.dest.dir}/@{plugin}/plugin_temp.xml" file="${plugin.dest.dir}/@{plugin}/plugin.xml"
overwrite="true" />
<xmltask source="${plugin.dev.dest.dir}/@{plugin}/target/jspc/web.xml">
<copy path="/web-app/servlet" buffer="foobar" />
</xmltask>
<xmltask source="${plugin.dest.dir}/@{plugin}/plugin_temp.xml" dest="${plugin.dest.dir}/@{plugin}/plugin_temp.xml">
<insert path="//plugin" buffer="foobar" />
</xmltask>
<xmltask source="${plugin.dev.dest.dir}/@{plugin}/target/jspc/web.xml">
<copy path="/web-app/servlet-mapping" buffer="foobar2" />
</xmltask>
<xmltask source="${plugin.dest.dir}/@{plugin}/plugin_temp.xml" dest="${plugin.dest.dir}/@{plugin}/plugin_temp.xml">
<insert path="//plugin" buffer="foobar2" />
</xmltask>
<copy tofile="${plugin.dest.dir}/@{plugin}/plugin.xml" file="${plugin.dest.dir}/@{plugin}/plugin_temp.xml"
overwrite="true" />
<delete file="${plugin.dest.dir}/@{plugin}/plugin_temp.xml" />
<!-- Compile java classes --> <!-- Compile java classes -->
<javac <javac
...@@ -836,14 +860,11 @@ ...@@ -836,14 +860,11 @@
</then> </then>
</if> </if>
<!-- Copy everything to Messenger's plugin dir --> <!-- Copy everything else to Messenger's plugin dir -->
<copy todir="${plugin.dest.dir}/@{plugin}"> <copy todir="${plugin.dest.dir}/@{plugin}">
<fileset dir="${plugin.dev.dest.dir}/@{plugin}/target"> <fileset dir="${plugin.dev.dest.dir}/@{plugin}/target">
<include name="lib/*.jar" /> <include name="lib/*.jar" />
</fileset> </fileset>
<fileset dir="@{pluginsrc}/@{plugin}">
<include name="plugin.xml" />
</fileset>
<fileset dir="@{pluginsrc}/@{plugin}/src"> <fileset dir="@{pluginsrc}/@{plugin}/src">
<include name="web/**/*.*" /> <include name="web/**/*.*" />
<exclude name="web/**/*.jsp" /> <exclude name="web/**/*.jsp" />
......
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