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

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

LISP_HOME, Site.java

File size: 2.6 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="LISP_HOME" value="${basedir}/org/armedbear/lisp"/>
14
15  <property name="debug" value="yes"/>
16  <property name="build.compiler.emacs" value="yes"/>
17
18  <target name="compile" depends="lisp"/>
19
20  <target name="prepare">
21    <!-- Create the time stamp -->
22    <tstamp>
23      <format property="build" pattern="EEE MMM dd yyyy HH:mm:ss zzz"/>
24    </tstamp>
25  </target>
26
27  <target name="lisp" depends="prepare">
28    <echo message="debug=${debug}" />
29    <filter token="LISP_HOME" value="${LISP_HOME}"/>
30    <copy file="${LISP_HOME}/Site.java.in" tofile="${LISP_HOME}/Site.java" filtering="yes" overwrite="yes"/>
31    <javac
32      compiler="jikes"
33      srcdir="."
34      destdir="${basedir}"
35      classpath="${basedir}:${jdk}/jre/lib/rt.jar:${junit}"
36      includeAntRuntime="no"
37      includes="org/armedbear/lisp/**/*"
38      debug="no"
39      optimize="yes"
40    />
41    <junit printsummary="yes" haltonfailure="yes">
42      <formatter type="plain" />
43      <classpath>
44        <pathelement path="${basedir}:${jdk}/jre/lib/rt.jar:${junit}" />
45      </classpath>
46      <test name="org.armedbear.lisp.Tests" />
47    </junit>
48    <tstamp>
49      <format property="build" pattern="EEE MMM dd yyyy HH:mm:ss zzz"/>
50    </tstamp>
51    <echo message="${build}&#10;" file="${basedir}/org/armedbear/lisp/build"/>
52  </target>
53
54  <target name="clean">
55    <delete>
56      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.zip"/>
57      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.tar.gz"/>
58      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.jar"/>
59      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*.class"/>
60      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/*~"/>
61      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/.#*"/>
62      <fileset dir="${basedir}/org/armedbear/lisp" includes="**/TEST-*.txt"/>
63    </delete>
64    <delete file="${basedir}/org/armedbear/lisp/build"/>
65  </target>
66
67  <target name="lisp.zip">
68    <delete file="${topdir}/lisp.zip"/>
69    <zip
70      zipfile="${topdir}/lisp.zip"
71      basedir="${basedir}/org/armedbear/lisp"
72      includes="build.xml, *.java, *.lisp"
73    />
74  </target>
75
76</project>
Note: See TracBrowser for help on using the repository browser.