Commit 475b2be6 authored by Bill Lynch's avatar Bill Lynch Committed by bill

Fixes to JSPC target


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@56 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5ef3ac8f
...@@ -22,6 +22,16 @@ ...@@ -22,6 +22,16 @@
Jive Messenger build script. Jive Messenger build script.
</description> </description>
<!-- ======================================================================================= -->
<!-- GLOBAL TASKDEFS -->
<!-- ======================================================================================= -->
<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask">
<classpath>
<pathelement location="${basedir}/build/lib/xmltask.jar"/>
</classpath>
</taskdef>
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<!-- GLOBAL PROPERTIES --> <!-- GLOBAL PROPERTIES -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
...@@ -44,6 +54,7 @@ ...@@ -44,6 +54,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="webapp.dest.dir" value="${target.dir}/webapp" />
<property name="release.dest.dir" value="${target.dir}/release" /> <property name="release.dest.dir" value="${target.dir}/release" />
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
...@@ -132,6 +143,7 @@ ...@@ -132,6 +143,7 @@
<mkdir dir="${jspc.java.dest.dir}" /> <mkdir dir="${jspc.java.dest.dir}" />
<mkdir dir="${jspc.classes.dest.dir}" /> <mkdir dir="${jspc.classes.dest.dir}" />
<!-- Have to use Tomcat 5's JspC task, not the default Ant one -->
<taskdef classname="org.apache.jasper.JspC" name="jasper2" > <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
<classpath id="jspc.classpath"> <classpath id="jspc.classpath">
<pathelement location="${java.home}/../lib/tools.jar" /> <pathelement location="${java.home}/../lib/tools.jar" />
...@@ -140,25 +152,21 @@ ...@@ -140,25 +152,21 @@
</classpath> </classpath>
</taskdef> </taskdef>
<!-- todo - try standard jspc task, use jasper2 compiler --> <!-- JSP to JAVA -->
<jasper2 <jasper2
validateXml="false" validateXml="false"
uriroot="${web.dir}" uriroot="${web.dir}"
outputDir="${jspc.java.dest.dir}" outputDir="${jspc.java.dest.dir}"
package="org.jivesoftware.messenger.admin" package="org.jivesoftware.messenger.admin"
webXmlFragment="${jspc.dest.dir}/web.tmp.xml" /> webXmlFragment="${jspc.dest.dir}/web.partial.xml" />
<!-- <include name="**/*.jsp" />-->
<!-- <exclude name="session-row.jsp" />-->
<!-- </jasper2>-->
<!-- Compile java source -->
<javac <javac
destdir="${jspc.classes.dest.dir}" destdir="${jspc.classes.dest.dir}"
includeAntRuntime="no" includeAntRuntime="no"
debug="on" debug="on"
source="1.5" source="1.5"
includes="org/jivesoftware/messenger/admin/**/*.java" includes="org/jivesoftware/messenger/admin/**/*.java"
excludes="**/*.smap"
> >
<src path="${jspc.java.dest.dir}" /> <src path="${jspc.java.dest.dir}" />
<classpath> <classpath>
...@@ -167,22 +175,15 @@ ...@@ -167,22 +175,15 @@
</classpath> </classpath>
</javac> </javac>
<!-- <classpath>--> <!-- Update the web.xml to include the servlet and servlet mapping defs from jspc -->
<!-- <pathelement path="${compile.dir}" />--> <mkdir dir="${webapp.dest.dir}" />
<!-- <path refid="compile.dependencies" />--> <loadfile property="servlet-xml" srcFile="${jspc.dest.dir}/web.partial.xml" />
<!-- </classpath>--> <copy file="${web.dir}/WEB-INF/web.xml" toFile="${webapp.dest.dir}/WEB-INF/web.xml">
<!-- </jasper2>--> <filterset begintoken="&lt;!--@@" endtoken="@@--&gt;">
<filter token="JSPC-SERVLETS" value="${servlet-xml}" />
<!-- <jspc srcdir="${web.dir}"--> </filterset>
<!-- destdir="${jspc.java.dest.dir}"--> </copy>
<!-- package="com.jivesoftware.messenger.admin"-->
<!-- webinc="${jspc.dest.dir}/web.tmp.xml">-->
<!-- <include name="**/*.jsp" />-->
<!-- <classpath>-->
<!-- <pathelement path="${compile.dir}" />-->
<!-- <path refid="compile.dependencies" />-->
<!-- </classpath>-->
<!-- </jspc>-->
</target> </target>
<!-- jspcjar =============================================================================== --> <!-- jspcjar =============================================================================== -->
...@@ -203,4 +204,9 @@ ...@@ -203,4 +204,9 @@
<delete dir="${target.dir}" /> <delete dir="${target.dir}" />
</target> </target>
<!-- clean-jspc ============================================================================ -->
<target name="clean-jspc" description="Cleans all JSPC output">
<delete dir="${jspc.dest.dir}" />
</target>
</project> </project>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<load-on-startup>1</load-on-startup> <load-on-startup>1</load-on-startup>
</servlet> </servlet>
<!-- @@ JSPC DEFINED SERVLET PLACEHOLDER @@ --> <!--@@JSPC-SERVLETS@@-->
<taglib> <taglib>
<taglib-uri>core</taglib-uri> <taglib-uri>core</taglib-uri>
......
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