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

Last change on this file since 9266 was 7903, checked in by piso, 17 years ago

Work in progress.

File size: 2.3 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      srcdir="."
29      destdir="${basedir}"
30      classpath="${basedir}:${jdk}/jre/lib/rt.jar:${junit}"
31      includeAntRuntime="no"
32      includes="org/armedbear/lisp/**/*"
33      debug="yes"
34      optimize="no"
35    />
36    <tstamp>
37      <format property="build" pattern="EEE MMM dd yyyy HH:mm:ss zzz"/>
38    </tstamp>
39    <echo message="${build}&#10;" file="${basedir}/org/armedbear/lisp/build"/>
40  </target>
41
42  <target name="clean">
43    <delete>
44      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.zip"/>
45      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.tar.gz"/>
46      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.jar"/>
47      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.class"/>
48      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.fasl"/>
49      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.fasl-tmp"/>
50      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.cls"/>
51      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*~"/>
52      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/.#*"/>
53      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/TEST-*.txt"/>
54    </delete>
55    <delete file="${basedir}/org/armedbear/lisp/build"/>
56  </target>
57
58  <target name="lisp.zip">
59    <delete file="${topdir}/lisp.zip"/>
60    <zip
61      zipfile="${topdir}/lisp.zip"
62      basedir="${basedir}/org/armedbear/lisp"
63      includes="build.xml, *.java, *.lisp"
64    />
65  </target>
66
67</project>
Note: See TracBrowser for help on using the repository browser.