transcendental-lisp/build.xml

51 lines
1.7 KiB
XML
Raw Normal View History

2016-12-07 14:16:45 -05:00
<?xml version="1.0"?>
<project name="LispInterpreter" basedir="." default="compile">
<property name="src.dir" value="." />
<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="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">
<mkdir dir="${classes.dir}" />
<javac srcdir="${src.dir}"
destdir="${classes.dir}"
includeantruntime="false"
excludes="main/LispInterpreter2.java" />
</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"
excludes="main/LispInterpreter2.java" />
<tag name="postcondition" description="Postcondition:" />
</javadoc>
</target>
<target name="clean-jar" depends="clean, jar" />
</project>