Hi there,
I've just built an ant task to allow for compilation of Jsps (jspc)
*) the compiled jsps are put into /web/WEB-INF/src/*.java
*) a generated WEB-INF directory is created at
/web/WEB-INF/generated_web.xml
However, I'd like to accomplish the following:
*) automatically merge the generated_web.xml into the web.xml that already
exists
*) deploy the webapp to the container (not only install, I mean deploy)
Has anybody done this so far?
thx
Johannes
<!-- ==============================
jspc task definition
============================== -->
<target name="jspc">
<taskdef classname="org.apache.jasper.JspC" name="jasper2" >
<classpath id="jspc.classpath">
<pathelement location="${java.home}/../lib/tools.jar"/>
<fileset dir="${catalina.home}/server/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${catalina.home}/common/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
<jasper2
validateXml="false"
uriroot="${webapp.path}"
webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
outputDir="${webapp.path}/WEB-INF/src" />
</target>