forked from ePADD/muse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.xml
executable file
·63 lines (52 loc) · 1.64 KB
/
check.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<project name="Webapp Precompilation" default="all" basedir=".">
<property environment="env"/>
<property name="tomcat.home" value="${env.TOMCAT_HOME}"/>
<property name="webapp.path" value="WebContent"/>
<import file="${tomcat.home}/bin/catalina-tasks.xml"/>
<target name="jspc">
<jasper2
validateXml="false"
failonerror="true"
uriroot="${webapp.path}"
webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
outputDir="/tmp/src" />
</target>
<target name="compile">
<mkdir dir="/tmp/src"/>
<javac destdir="/tmp"
optimize="off"
debug="on" failonerror="true"
srcdir="/tmp/src"
excludes="**/*.smap">
<classpath>
<pathelement location="${java.home}/../lib/tools.jar"/>
<pathelement location="${webapp.path}/WEB-INF/classes"/>
<fileset dir="${webapp.path}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${tomcat.home}/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${tomcat.home}/bin">
<include name="*.jar"/>
</fileset>
<fileset dir="build/jar">
<include name="*.jar"/>
</fileset>
</classpath>
<include name="**" />
<exclude name="tags/**" />
</javac>
</target>
<target name="all" depends="jspc,compile,cleanup">
</target>
<target name="cleanup">
<delete>
<fileset dir="/tmp/src"/>
<fileset dir="/tmp/org"/>
<fileset dir="WebContent/WEB-INF">
<include name="generated_web.xml"/>
</fileset>
</delete>
</target>
</project>