49 lines
1.6 KiB
XML
49 lines
1.6 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<project name="LispInterpreter" basedir="." default="compile">
|
|
<property name="src.dir" value="src" />
|
|
<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" />
|
|
<property name="test.dir" value="test" />
|
|
<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}"
|
|
destdir="${build.dir}"
|
|
includeantruntime="false" />
|
|
</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,
|
|
main/*.java" />
|
|
<tag name="postcondition" description="Postcondition:" />
|
|
</javadoc>
|
|
</target>
|
|
|
|
<target name="clean-jar" depends="clean, jar" />
|
|
</project>
|