transcendental-lisp/build.xml

49 lines
1.6 KiB
XML
Raw Normal View History

2016-12-07 14:16:45 -05:00
<?xml version="1.0"?>
<project name="LispInterpreter" basedir="." default="compile">
2016-12-07 16:40:08 -05:00
<property name="src.dir" value="src" />
2016-12-07 14:16:45 -05:00
<property name="build.dir" value="build" />
<property name="classes.dir" value="${build.dir}/classes" />
<property name="jar.dir" value="jar" />
<property name="doc.dir" value="doc" />
2016-12-07 16:40:08 -05:00
<property name="test.dir" value="test" />
2016-12-07 14:16:45 -05:00
<property name="jar-file" value="${jar.dir}/LispInterpreter.jar" />
<property name="main-class" value="main.LispInterpreter" />
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${doc.dir}" />
<delete dir="${jar.dir}" />
</target>
<target name="compile">
<javac srcdir="${src.dir}"
2016-12-08 09:11:12 -05:00
destdir="${build.dir}"
2016-12-07 16:40:08 -05:00
includeantruntime="false" />
2016-12-07 14:16:45 -05:00
</target>
<target name="jar" depends="compile">
<jar destfile="${jar-file}" basedir="${classes.dir}">
<manifest>
<attribute name="Manifest-Version" value="1.0" />
<attribute name="Main-Class" value="${main-class}" />
</manifest>
</jar>
</target>
<target name="javadoc">
<mkdir dir="${doc.dir}" />
<javadoc destdir="${doc.dir}">
<fileset dir="${src.dir}"
includes="scanner/*.java,
parser/*.java,
eval/*.java,
error/*.java,
2016-12-08 09:11:12 -05:00
main/*.java" />
2016-12-07 14:16:45 -05:00
<tag name="postcondition" description="Postcondition:" />
</javadoc>
</target>
<target name="clean-jar" depends="clean, jar" />
</project>