-
Notifications
You must be signed in to change notification settings - Fork 164
/
build.xml
51 lines (43 loc) · 1.81 KB
/
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
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<project name="CflatCompiler" default="compile" basedir=".">
<target name="init">
<property file="${user.home}/.ant-global.properties" />
<property file="build.properties" />
</target>
<target name="parser" depends="init">
<javacc target="${src.jj.file}" javacchome="${javacc.dir}" />
</target>
<target name="compile" depends="init, parser">
<mkdir dir="${build.dir}" />
<mkdir dir="${build.classes.dir}" />
<javac destdir="${build.classes.dir}" srcdir="${src.dir}"
debug="true" optimize="true">
<compilerarg value="-Xlint:unchecked" />
<include name="net/**/*.java" />
</javac>
<jar jarfile="${build.jar}" basedir="${build.classes.dir}" />
</target>
<target name="recompile" depends="clean, compile" />
<target name="test" depends="compile">
<exec executable="./test/run.sh" />
</target>
<target name="comptest" depends="clean, test" />
<target name="clean" depends="init, clean-build">
<delete file="${build.jar}" />
</target>
<target name="clean-build" depends="init">
<delete dir="${build.dir}" />
<delete file="${build.parser.dir}/Parser.java" />
<delete file="${build.parser.dir}/ParserConstants.java" />
<delete file="${build.parser.dir}/ParserTokenManager.java" />
<delete file="${build.parser.dir}/ParseException.java" />
<delete file="${build.parser.dir}/Token.java" />
<delete file="${build.parser.dir}/TokenMgrError.java" />
<delete file="${build.parser.dir}/SimpleCharStream.java" />
</target>
<target name="dist">
<antcall target="clean" />
<antcall target="compile" />
<antcall target="clean-build" />
</target>
</project>