-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpre.build.xml
executable file
·41 lines (34 loc) · 1.49 KB
/
pre.build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!-- build file for a version of muse.jar with pre-compiled jsp's. for analysis tools only, not for real use! -->
<project name="Webapp Precompilation" default="precompiled-jar" basedir=".">
<property name="tomcat.home" value="/Users/hangal/apache-tomcat-8.0.30"/>
<property name="webapp.path" value="WebContent"/>
<property name="webinf.lib.dir" location="WebContent/WEB-INF/lib" />
<property name="tomcat.home" location="/Users/hangal/apache-tomcat-8.0.30"/>
<import file="${tomcat.home}/bin/catalina-tasks.xml"/>
<import file="build.xml"/>
<target name="jspc">
<jasper
validateXml="false"
uriroot="${webapp.path}"
webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
outputDir="src/java" />
</target>
<target name="cleanup">
<delete dir="src/java/org/apache/jsp"/>
<delete dir="build/classes/org/apache/jsp"/>
</target>
<path id="lib.path">
<fileset dir="${lib.dir}" includes="*.jar" />
<fileset dir="${webinf.lib.dir}" includes="*.jar" />
<fileset dir="${tomcat.home}/lib" includes="*.jar" />
</path>
<target name="build" depends="init" description="compile the source ">
<!-- Compile the java code from ${src} into ${build} -->
<mkdir dir="${build.classes.dir}" />
<javac destdir="${build.classes.dir}" classpathref="lib.path" debug="${debug}" target="1.5">
<src location="${src.java.dir}" />
</javac>
</target>
<target name="precompiled-jar" depends="jspc,build,cleanup">
</target>
</project>