Skip to content

Instantly share code, notes, and snippets.

@brianjriddle
Created March 3, 2010 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjriddle/320606 to your computer and use it in GitHub Desktop.
Save brianjriddle/320606 to your computer and use it in GitHub Desktop.
<target name="compile-jsp" depends="compile" description="precompile jsp">
<java classname="com.caucho.jsp.JspCompiler" fork="true" failonerror="true">
<classpath refid="resin.classpath" />
<arg line="-app-dir ${src.web.dispatcher.dir} ${src.web.dispatcher.dir}" />
</java>
<delete>
<fileset dir="${src.web.dispatcher.dir}/WEB-INF/work"/>
<fileset dir="${src.web.dispatcher.dir}/WEB-INF/tmp"/>
</delete>
</target>
@brianjriddle
Copy link
Author

resin.classpath looks like this:

<path id="resin.classpath">
    <pathelement path="${build.classes.dir}" />
    <fileset dir="${resin.home}">
        <include name="lib/*.jar"/>
    </fileset>
    <fileset dir="${depends.run.dir}">
        <include name="**/*.jar" />
    </fileset>
    <fileset file="${polopoly.lib.dir}">
        <include name="**/*.jar" />
    </fileset>
</path>

and resin.home

<property name="resin.home" value="${user.home}/work/apps/resin"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment