<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>