2007-12-24 16:19:51 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-02-03 17:37:24 +08:00
|
|
|
<project name="CflatCompiler" default="compile" basedir=".">
|
2007-12-24 16:19:51 +08:00
|
|
|
<target name="init">
|
2008-01-15 00:05:00 +08:00
|
|
|
<property file="${user.home}/.ant-global.properties" />
|
2007-12-24 16:19:51 +08:00
|
|
|
<property file="build.properties" />
|
|
|
|
</target>
|
2008-01-14 23:09:51 +08:00
|
|
|
|
2007-12-24 16:19:51 +08:00
|
|
|
<target name="parser" depends="init">
|
2008-01-14 23:09:51 +08:00
|
|
|
<javacc target="${src.jj.file}" javacchome="${javacc.dir}" />
|
2007-12-24 16:19:51 +08:00
|
|
|
</target>
|
2008-01-14 23:09:51 +08:00
|
|
|
|
2007-12-24 16:19:51 +08:00
|
|
|
<target name="compile" depends="init, parser">
|
|
|
|
<mkdir dir="${build.dir}" />
|
|
|
|
<mkdir dir="${build.classes.dir}" />
|
|
|
|
<javac destdir="${build.classes.dir}" srcdir="${src.dir}"
|
2008-09-29 02:46:56 +08:00
|
|
|
debug="true" optimize="true">
|
|
|
|
<compilerarg value="-Xlint:unchecked" />
|
2007-12-24 16:19:51 +08:00
|
|
|
<include name="net/**/*.java" />
|
|
|
|
</javac>
|
2008-01-14 23:09:51 +08:00
|
|
|
<jar jarfile="${build.jar}" basedir="${build.classes.dir}" />
|
|
|
|
</target>
|
|
|
|
|
2008-02-03 17:37:24 +08:00
|
|
|
<target name="recompile" depends="clean, compile" />
|
|
|
|
|
|
|
|
<target name="test" depends="compile">
|
2008-08-29 16:12:21 +08:00
|
|
|
<exec executable="./test/run.sh" />
|
2008-01-14 23:30:45 +08:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="comptest" depends="clean, test" />
|
|
|
|
|
2008-01-14 23:09:51 +08:00
|
|
|
<target name="clean" depends="init, clean-build">
|
|
|
|
<delete file="${build.jar}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean-build" depends="init">
|
2007-12-24 16:19:51 +08:00
|
|
|
<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>
|
2008-01-14 23:09:51 +08:00
|
|
|
|
|
|
|
<target name="dist">
|
|
|
|
<antcall target="clean" />
|
2008-02-03 17:37:24 +08:00
|
|
|
<antcall target="compile" />
|
2008-01-14 23:09:51 +08:00
|
|
|
<antcall target="clean-build" />
|
|
|
|
</target>
|
2007-12-24 16:19:51 +08:00
|
|
|
</project>
|