<project name="Webapp Precompilation" default="all" basedir=".">
<property name="tomcat.home" value="D:/apache-tomcat-4.1.34-LE-jdk14" />
<property name="webapp.path" value="D:/eclipse3.1/workspace/mpa2.3/WebModule" />
<property name="java.home" value="D:/Java/jdk1.5.0" />
<target name="jspc">
<taskdef classname="org.apache.jasper.JspC" name="jasper2">
<classpath id="jspc.classpath">
<pathelement location="${java.home}/../lib/tools.jar" />
<fileset dir="${tomcat.home}/server/lib">
<include name="*.jar" />
</fileset>
<fileset dir="${tomcat.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>
<target name="compile">
<mkdir dir="${webapp.path}/WEB-INF/classes" />
<mkdir dir="${webapp.path}/WEB-INF/lib" />
<javac destdir="${webapp.path}/WEB-INF/classes" optimize="off" debug="on" failonerror="false" srcdir="${webapp.path}/WEB-INF/src" excludes="**/*.smap">
<classpath>
<pathelement location="${webapp.path}/WEB-INF/classes" />
<fileset dir="${webapp.path}/WEB-INF/lib">
<include name="*.jar" />
</fileset>
<pathelement location="${tomcat.home}/common/classes" />
<fileset dir="${tomcat.home}/common/lib">
<include name="*.jar" />
</fileset>
<pathelement location="${tomcat.home}/shared/classes" />
<fileset dir="${tomcat.home}/shared/lib">
<include name="*.jar" />
</fileset>
</classpath>
<include name="**" />
<exclude name="taglib/**" />
</javac>
</target>
<target name="all" depends="jspc,compile"></target>
</project>