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

Fixes for jetty


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@88 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9c2189e8
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
<property name="jspc.dest.dir" value="${target.dir}/jspc" /> <property name="jspc.dest.dir" value="${target.dir}/jspc" />
<property name="jspc.java.dest.dir" value="${target.dir}/jspc/java" /> <property name="jspc.java.dest.dir" value="${target.dir}/jspc/java" />
<property name="jspc.classes.dest.dir" value="${target.dir}/jspc/classes" /> <property name="jspc.classes.dest.dir" value="${target.dir}/jspc/classes" />
<property name="jspc.jar.name" value="admin-jsp.jar" />
<property name="test.dest.dir" value="${target.dir}/test" /> <property name="test.dest.dir" value="${target.dir}/test" />
<property name="test.classes.dest.dir" value="${test.dest.dir}/classes" /> <property name="test.classes.dest.dir" value="${test.dest.dir}/classes" />
<property name="test.results.dest.dir" value="${test.dest.dir}/results" /> <property name="test.results.dest.dir" value="${test.dest.dir}/results" />
...@@ -92,6 +93,15 @@ ...@@ -92,6 +93,15 @@
<include name="**/*Test.java" /> <include name="**/*Test.java" />
</patternset> </patternset>
<patternset id="web.sources">
<include name="**/*.jsp" />
<include name="**/*.jspf" />
<include name="**/*.html" />
<include name="**/*.css" />
<include name="**/*.gif" />
<include name="**/*.jpg" /> <!-- TODO: convert these to gif files -->
</patternset>
<filterset id="docs.filters"> <filterset id="docs.filters">
<filter token="version" value="${version}" /> <filter token="version" value="${version}" />
</filterset> </filterset>
...@@ -234,6 +244,11 @@ ...@@ -234,6 +244,11 @@
</filterset> </filterset>
</copy> </copy>
<!-- Create a jar of compiled servlets -->
<jar jarfile="${jspc.dest.dir}/${jspc.jar.name}">
<fileset dir="${jspc.classes.dest.dir}" includes="**/*.class" />
</jar>
</target> </target>
<!-- test ================================================================================== --> <!-- test ================================================================================== -->
...@@ -297,8 +312,10 @@ ...@@ -297,8 +312,10 @@
<fileset dir="${src.dir}" includes="conf/**/*.*"></fileset> <fileset dir="${src.dir}" includes="conf/**/*.*"></fileset>
</copy> </copy>
<!-- Create a bin dir (TODO) --> <!-- Copy bin dir -->
<mkdir dir="${release.out.dir}/bin" /> <copy todir="${release.out.dir}">
<fileset dir="${src.dir}" includes="bin/*.*" />
</copy>
<!-- Create a logs dir in the binary release --> <!-- Create a logs dir in the binary release -->
<mkdir dir="${release.out.dir}/logs" /> <mkdir dir="${release.out.dir}/logs" />
...@@ -308,6 +325,29 @@ ...@@ -308,6 +325,29 @@
<fileset dir="${src.dir}" includes="plugins/**/*.*" /> <fileset dir="${src.dir}" includes="plugins/**/*.*" />
</copy> </copy>
<!-- TODO: the following should probably take place in another target -->
<!-- Copy admin plugin resources -->
<copy todir="${release.out.dir}/plugins/admin/webapp">
<!-- All web resources minus jsp's and jspf's - those are precompiled -->
<fileset dir="${web.dir}">
<patternset refid="web.sources" />
<exclude name="**/*.jsp" />
<exclude name="**/*.jspf" />
</fileset>
</copy>
<!-- Copy other WEB-INF stuff -->
<copy todir="${release.out.dir}/plugins/admin/webapp">
<fileset dir="${webapp.dest.dir}" />
</copy>
<!-- Copy in pre-compiled JSP jar -->
<copy todir="${release.out.dir}/plugins/admin/webapp/WEB-INF/lib">
<fileset dir="${jspc.dest.dir}" includes="${jspc.jar.name}" />
</copy>
<!-- Copy in jasper runtime jar -->
<copy todir="${release.out.dir}/plugins/admin/webapp/WEB-INF/lib">
<fileset dir="${lib.build.dir}" includes="jasper-runtime.jar" />
</copy>
<!-- Copy dist docs, use filtering --> <!-- Copy dist docs, use filtering -->
<copy todir="${release.out.dir}"> <copy todir="${release.out.dir}">
<fileset dir="${docs.dir}/dist" includes="*.*" /> <fileset dir="${docs.dir}/dist" includes="*.*" />
......
...@@ -65,7 +65,7 @@ public class JettyModule implements Module { ...@@ -65,7 +65,7 @@ public class JettyModule implements Module {
// Add web-app // Add web-app
webAppContext = jetty.addWebApplication("/", webAppContext = jetty.addWebApplication("/",
context.getHomeDirectory() + "/web-app/"); context.getHomeDirectory() + "/webapp/");
} }
catch (Exception e) { catch (Exception e) {
Log.error("Trouble initializing Jetty", e); Log.error("Trouble initializing Jetty", e);
......
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