source: trunk/j/src/org/armedbear/lisp/build.xml @ 4787

Last change on this file since 4787 was 4787, checked in by piso, 18 years ago

Added src/org/armedbear/lisp/java/awt directory.

File size: 2.4 KB
Line 
1<project name="lisp" default="compile" basedir="../../..">
2
3  <!-- Set global properties for this build -->
4  <property name="topdir" value="${basedir}/.."/>
5  <property file="${topdir}/build.properties"/>
6  <property name="java" value="${jdk}/jre/bin/java"/>
7  <property name="junit" value=""/>
8  <property name="build.compiler.pedantic" value="yes"/>
9
10  <property name="JAVA" value="${java}"/>
11  <property name="JAVA_OPTIONS" value="${java_options}"/>
12
13  <property name="debug" value="yes"/>
14  <property name="build.compiler.emacs" value="yes"/>
15
16  <target name="compile" depends="lisp"/>
17
18  <target name="prepare">
19    <!-- Create the time stamp -->
20    <tstamp>
21      <format property="build" pattern="EEE MMM dd yyyy HH:mm:ss zzz"/>
22    </tstamp>
23  </target>
24
25  <target name="lisp" depends="prepare">
26    <echo message="debug=${debug}" />
27    <javac
28      compiler="jikes"
29      srcdir="."
30      destdir="${basedir}"
31      classpath="${basedir}:${jdk}/jre/lib/rt.jar:${junit}"
32      includeAntRuntime="no"
33      includes="org/armedbear/lisp/**/*"
34      debug="no"
35      optimize="yes"
36    />
37    <junit printsummary="yes" haltonfailure="yes">
38      <formatter type="plain" />
39      <classpath>
40        <pathelement path="${basedir}:${jdk}/jre/lib/rt.jar:${junit}" />
41      </classpath>
42      <test name="org.armedbear.lisp.Tests" />
43    </junit>
44    <tstamp>
45      <format property="build" pattern="EEE MMM dd yyyy HH:mm:ss zzz"/>
46    </tstamp>
47    <echo message="${build}&#10;" file="${basedir}/org/armedbear/lisp/build"/>
48  </target>
49
50  <target name="clean">
51    <delete>
52      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.zip"/>
53      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.tar.gz"/>
54      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.jar"/>
55      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.class"/>
56      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*~"/>
57      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/.#*"/>
58      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/TEST-*.txt"/>
59    </delete>
60    <delete file="${basedir}/org/armedbear/lisp/build"/>
61  </target>
62
63  <target name="lisp.zip">
64    <delete file="${topdir}/lisp.zip"/>
65    <zip
66      zipfile="${topdir}/lisp.zip"
67      basedir="${basedir}/org/armedbear/lisp"
68      includes="build.xml, *.java, *.lisp"
69    />
70  </target>
71
72</project>
Note: See TracBrowser for help on using the repository browser.