source: trunk/abcl/build.xml @ 12333

Last change on this file since 12333 was 12333, checked in by astalla, 12 years ago

Removed unused patternsets from build.xml

  • Property svn:eol-style set to LF
File size: 23.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="antlib:org.apache.tools.ant"
3   name="abcl-master" default="abcl.wrapper" basedir=".">
4    <description>Compiling, testing, and packaging Armed Bear Common Lisp</description>
5
6    <target name="abcl" depends="abcl.wrapper"/>
7
8    <property file="build.properties"/>
9
10    <property name="build.dir" 
11        value="${basedir}/build"/>
12    <property name="build.classes.dir" 
13        value="${build.dir}/classes"/>
14    <property name="src.dir" 
15        value="${basedir}/src"/>
16    <property name="dist.dir" 
17        value="${basedir}/dist"/>
18    <property name="abcl.jar.path"
19        value="${dist.dir}/abcl.jar"/>
20    <property name="abcl.ext.dir"
21        value="${basedir}/ext"/>
22 
23    <target name="help">
24      <echo>Main Ant targets:
25 abcl.compile 
26   -- compile ABCL to ${build.classes.dir}.
27 abcl.jar     
28   -- create packaged ${abcl.jar.path}.
29 abcl.wrapper 
30   -- create executable wrapper for ABCL.
31 abcl.source.zip abcl.source.tar
32   -- create source distributions in ${dist.dir}.
33 abcl.test.java
34   -- Run junit tests under ${abcl.test.src.dir}.
35 abcl.clean
36   -- remove ABCL intermediate files</echo>
37      <echo>Corresponding targets for J have been removed.</echo>
38    </target>
39
40    <!-- Checks if JSR-223 support is available - thanks to Mark Evenson -->
41    <available property="abcl.jsr-223.p"
42         classname="javax.script.ScriptEngine"/>
43
44    <patternset id="abcl.source.java">
45      <include name="org/armedbear/lisp/*.java"/>
46      <include name="org/armedbear/lisp/util/*.java"/>
47      <include name="org/armedbear/lisp/java/**/*.java"/>
48      <include name="org/armedbear/lisp/scripting/*.java" if="abcl.jsr-223.p"/>
49      <include name="org/armedbear/lisp/scripting/util/*.java" if="abcl.jsr-223.p"/>
50      <include name="org/armedbear/Main.java"/>
51    </patternset>
52
53    <patternset id="abcl.source.lisp">
54      <include name="org/armedbear/lisp/*.lisp"/>
55      <include name="org/armedbear/lisp/java/**/*.lisp"/>
56      <include name="org/armedbear/lisp/tests/*.lisp"/>
57      <exclude name="org/armedbear/lisp/j.lisp"/>
58      <include name="org/armedbear/lisp/scripting/lisp/*.lisp" if="abcl.jsr-223.p"/>
59    </patternset>
60
61    <!-- Lisp files required at runtime -->
62    <patternset id="abcl.source.lisp.dist">
63      <include name="org/armedbear/lisp/boot.lisp"/>
64      <include name="org/armedbear/lisp/scripting/lisp/*.lisp" if="abcl.jsr-223.p"/>
65    </patternset>
66
67    <patternset id="abcl.objects">
68      <include name="org/armedbear/lisp/**/*.class"/>
69      <include name="org/armedbear/lisp/**/*.cls"/> 
70      <include name="org/armedbear/lisp/**/*.abcl"/>
71      <include name="org/armedbear/lisp/scripting/*.class" if="abcl.jsr-223.p"/>
72      <include name="org/armedbear/lisp/scripting/util/*.class" if="abcl.jsr-223.p"/>
73      <patternset refid="abcl.source.lisp.dist"/>
74    </patternset>
75   
76    <path id="abcl.classpath.dist">
77      <pathelement location="${abcl.jar.path}"/>
78    </path>
79   
80    <path id="abcl.classpath.build">
81      <pathelement location="${build.classes.dir}"/>
82    </path>
83
84    <target name="abcl.compile" depends="abcl.clean.maybe,abcl.compile.lisp">
85      <echo>Compiled ABCL with Java version: ${java.version}</echo>
86    </target>
87   
88    <target name="abcl.clean.maybe" unless="abcl.build.incremental">
89      <echo>Cleaning all intermediate compilation artifacts.</echo>
90      <echo>Setting 'abcl.build.incremental' enables incremental compilation.</echo>
91      <antcall target="abcl.clean"/>
92    </target>
93     
94
95    <target name="abcl.init">
96      <tstamp>
97  <format property="build" pattern="EEE MMM dd yyyy HH:mm:ss zzz"/>
98      </tstamp>
99
100      <tstamp>
101  <format property="build.stamp" pattern="yyyymmdd-HHmm"/>
102      </tstamp>
103
104      <property name="abcl.test.log.file"
105    value="abcl-test-${build.stamp}.log"/>
106
107      <!--- antversion fails in ant 1.7.1 <antversion property="ant.version"
108                                                atleast="1.7"/> -->
109      <property name="java.path"
110    value="${java.home}/bin/java"/>
111
112      <!-- Deprecated. Two main types of build environents: 'unix' or 'windows'. -->
113      <condition property="unix"> 
114  <or>
115    <os family="unix"/>
116    <os family="mac"/>
117  </or>
118      </condition>
119      <condition property="windows"> 
120  <os family="windows"/>
121      </condition>
122
123      <!-- Deprecated. -->
124      <available file="${src.dir}org/armedbear/lisp/Interpreter.java" 
125     property="abcl.lisp.p"/>
126
127      <echo>java.version: ${java.version}</echo>
128      <condition property="abcl.java.version.p">
129  <or>
130    <matches string="${java.version}" pattern="1\.5"/>
131    <matches string="${java.version}" pattern="1\.6\.0_1[0-9]"/>
132  </or> 
133      </condition>
134
135      <!-- Set from commandline via -D or in 'build.properties' -->
136      <property name="build.version" value="abcl.svn"/>
137      <echo>Implementation-Source: ${version.src}</echo>
138
139    </target>
140   
141    <target name="abcl.java.warning" 
142      depends="abcl.init"
143      unless="abcl.java.version.p">
144      <echo>WARNING: Use of Java version ${java.version} not recommended.</echo>
145    </target>
146 
147    <target name="abcl.jsr-223.notice"
148      depends="abcl.init"
149      unless="abcl.jsr-223.p">
150      <echo>
151  Notice: JSR-223 support won't be built since it is not
152          supported, neither natively by your JVM nor by
153    libraries in the CLASSPATH.
154      </echo>
155    </target>
156
157    <target name="abcl.compile.java" 
158      depends="abcl.init,abcl.java.warning,abcl.jsr-223.notice">
159      <mkdir dir="${build.dir}"/>
160      <mkdir dir="${build.classes.dir}"/>
161      <javac destdir="${build.classes.dir}"
162       debug="true"
163       target="1.5"
164       failonerror="true">
165  <src path="${src.dir}"/>
166  <patternset refid="abcl.source.java"/>
167      </javac>
168      <echo message="${build}" 
169      file="${build.classes.dir}/org/armedbear/lisp/build"/>
170    </target>
171
172    <target name="abcl.copy.lisp">
173      <copy todir="${build.classes.dir}" preservelastmodified="yes">
174  <fileset dir="${src.dir}">
175          <patternset refid="abcl.source.lisp.dist"/>
176  </fileset>
177      </copy>
178    </target>
179
180    <!-- Adjust the patternset for ABCL source to use the much faster
181         Ant 'uptodate' task to check if we need to compile the system
182         fasls.  Highly inter-dependent with the behavior specified in
183         'compile-system.lisp', i.e. files not listed in
184         there should NOT occur here. -->
185    <patternset id="abcl.source.lisp.fasls">
186      <patternset refid="abcl.source.lisp"/>
187      <exclude name="org/armedbear/lisp/scripting/**/*.lisp"/>
188      <exclude name="org/armedbear/lisp/boot.lisp"/>
189      <exclude name="org/armedbear/lisp/emacs.lisp"/>
190      <exclude name="org/armedbear/lisp/runtime-class.lisp"/>
191      <exclude name="org/armedbear/lisp/run-benchmarks.lisp"/>
192    </patternset>
193
194    <target name="abcl.fasls.uptodate">
195      <uptodate property="abcl.fasls.uptodate.p" value="true">
196  <srcfiles dir="${src.dir}">
197    <patternset refid="abcl.source.lisp.fasls"/>
198  </srcfiles>
199  <mapper type="glob" from="*.lisp" to="${build.classes.dir}/*.abcl"/>
200      </uptodate>
201    </target>
202
203    <path id="abcl.home.dir.path">
204        <path location="${src.dir}/org/armedbear/lisp/"/>
205    </path>         
206    <pathconvert property="abcl.home.dir" refid="abcl.home.dir.path"/>
207
208    <path id="abcl.lisp.output.path"
209          location="${build.classes.dir}/org/armedbear/lisp/"/>
210   
211    <target name="abcl.compile.lisp" 
212      depends="abcl.copy.lisp,abcl.compile.java,abcl.fasls.uptodate"
213      unless="abcl.fasls.uptodate.p">
214
215      <!-- The following shenanigans are necessary to get something
216           that ABCL under Windows can parse as a pathname with the
217           drive syntax not being interpreted as a Lisp package
218           namespace, and with backslash characters not starting
219           escape sequences.  -->
220      <tempfile property="abcl.compile.lisp.tmp" suffix=".lisp"/>
221
222      <echo file="${abcl.compile.lisp.tmp}">
223      (compile-system :zip nil :quit t
224          :output-path "${toString:abcl.lisp.output.path}${file.separator}")
225      </echo>
226
227      <tempfile property="abcl.compile.lisp.tmp.2"  suffix=".lisp"/>
228     
229      <copy file="${abcl.compile.lisp.tmp}"
230            tofile="${abcl.compile.lisp.tmp.2}">
231   <filterchain>
232      <replacestring from="\" to="/"/>
233   </filterchain>
234      </copy>
235
236      <java classpath="${build.classes.dir}"
237      fork="true"
238      failonerror="true"
239      classname="org.armedbear.lisp.Main">
240        <jvmarg value="-Dabcl.home=${abcl.home.dir}${file.separator}"/>
241  <arg value="--noinit"/>
242  <arg value="--load"/>
243  <arg value="${abcl.compile.lisp.tmp.2}"/>
244      </java>
245            <delete file="${abcl.compile.lisp.tmp}"/> 
246      <delete file="${abcl.compile.lisp.tmp.2}"/> 
247    </target>
248
249    <property name="abcl.build.path"
250        value="${build.classes.dir}/org/armedbear/lisp/build"/>
251    <target name="abcl.stamp" depends="abcl.compile,abcl.stamp.version,abcl.stamp.hostname">
252      <mkdir dir="${abcl.build.path}/.."/>
253      <echo message="${build}" file="${abcl.build.path}"/>   
254    </target>
255
256    <property name="abcl.home.dir"
257              value="${src.dir}/org/armedbear/lisp/"/>
258    <property name="abcl.version.path"
259        value="${build.classes.dir}/org/armedbear/lisp/version"/>
260    <target name="abcl.stamp.version" depends="abcl.compile">
261      <!-- Determine which ABCL version we have just built by parsing
262           the output of LISP-IMPLEMENTATION-VERSION. -->
263      <!-- TODO As an optimization, we could possibly compare the timestamp
264      of 'abcl.version.path' vs. org.armedbear.lisp.Version -->
265      <java fork="true"
266      classpath="${build.classes.dir}"
267      outputproperty="abcl.version"
268      classname="org.armedbear.lisp.Main"
269            logerror="yes"> <!-- Don't catch stderr output -->
270        <jvmarg value="-Dabcl.home=${abcl.home.dir}"/>
271  <arg value="--noinit"/>
272  <arg value="--noinform"/>
273  <arg value="--eval"/>
274  <arg value="(progn (format t (lisp-implementation-version)) (finish-output) (quit))"/>
275      </java>
276
277      <echo>Built ABCL version: ${abcl.version}</echo>
278      <mkdir dir="${abcl.version.path}/.."/>
279      <echo message="${abcl.version}" file="${abcl.version.path}"/> 
280    </target>
281
282    <target name="abcl.stamp.hostname" if="unix">
283      <exec executable="hostname" outputproperty="abcl.hostname"/>
284      <echo>abcl.hostname: ${abcl.hostname}</echo>
285    </target>
286
287    <target name="abcl.jar.uptodate" depends="abcl.compile">
288      <uptodate property="abcl.jar.uptodate.p" targetfile="${abcl.jar.path}">
289        <srcfiles dir="${build.classes.dir}">
290          <patternset refid="abcl.objects"/>
291        </srcfiles>
292      </uptodate>
293    </target>
294
295    <target name="abcl.jar" depends="abcl.stamp,abcl.jar.uptodate"
296      unless="abcl.jar.uptodate.p">
297      <mkdir dir="${dist.dir}"/>
298      <loadfile property="abcl.version"
299      srcFile="${abcl.version.path}"/>
300      <jar destfile="${abcl.jar.path}"
301     compress="true"
302     basedir="${build.classes.dir}">
303  <patternset refid="abcl.objects"/>
304  <manifest>
305    <attribute name="Main-Class" value="org.armedbear.lisp.Main"/>
306    <section name="org/armedbear/lisp">
307      <attribute name="Implementation-Title" 
308           value="ABCL"/>
309      <attribute name="Implementation-Version" 
310           value="${abcl.version}"/>
311      <attribute name="Implementation-Build" 
312           value="${build}"/>
313      <attribute name="Implementation-Source" 
314           value="${version.src}"/>
315    </section>
316  </manifest>
317  <metainf dir="${src.dir}/META-INF"> 
318    <exclude name="services/javax.script.ScriptEngineFactory"
319       unless="abcl.jsr-223.p"/>
320        </metainf>
321      </jar>
322    </target>
323   
324    <target name="abcl.wrapper" 
325      depends="abcl.jar,abcl.wrapper.unix,abcl.wrapper.windows">
326      <description>
327  Creates in-place exectuable shell wrapper in '${abcl.wrapper.file}'
328      </description>
329      <!-- Set from commandline or in 'build.properties' -->
330      <property name="additional.jars" value=""/>
331      <path id="abcl.runtime.classpath">
332  <pathelement location="${abcl.jar.path}"/>
333  <pathelement path="${additional.jars}"/>
334      </path>
335      <!-- set via '-Djava.options=JAVA_OPTIONS' or in 'build.properties -->
336      <property name="java.options" value=""/>
337
338      <copy file="${abcl.wrapper.in.file}" toFile="${abcl.wrapper.file}" overwrite="yes">
339  <filterset>
340    <filter token="JAVA" 
341      value="${java.path}"/>
342    <filter token="ABCL_JAVA_OPTIONS" 
343      value="${java.options}"/>
344    <filter token="ABCL_CLASSPATH"
345      value="${toString:abcl.runtime.classpath}"/>
346  </filterset>
347      </copy>
348      <chmod file="${abcl.wrapper.file}" perm="a+x"/>
349
350      <echo>Created executable ABCL wrapper in '${abcl.wrapper.file}'</echo>
351      <echo>N.B. This wrapper requires '${abcl.jar.path}' not be moved.</echo>
352    </target>
353
354    <target name="abcl.wrapper.unix" if="unix">
355      <property name="abcl.wrapper.file" value="abcl"/>
356      <property name="abcl.wrapper.in.file" value="abcl.in"/>
357    </target>
358
359    <target name="abcl.wrapper.windows" if="windows">
360      <property name="abcl.wrapper.file" value="abcl.bat"/>
361      <property name="abcl.wrapper.in.file" value="abcl.bat.in"/>
362    </target>
363
364    <target name="abcl.debug.jpda" depends="abcl.jar">
365      <description>Invoke ABCL with JPDA listener on port 6789</description>
366      <java fork="true"
367      classpathref="abcl.classpath.dist"
368      classname="org.armedbear.lisp.Main">
369  <jvmarg 
370      value="-agentlib:jdwp=transport=dt_socket,address=6789,server=y"/>
371      </java>
372      <echo>JPDA listening on localhost:6789</echo>
373    </target>
374
375    <target name="abcl.run" depends="abcl.jar">
376      <java fork="true"
377      classpathref="abcl.classpath.dist"
378      classname="org.armedbear.lisp.Main">
379      </java>
380    </target>
381
382    <target name="abcl.clean">
383      <delete dir="${build.dir}"/>
384      <delete file="${abcl.jar.path}"/>
385      <delete file="abcl"/>
386      <delete file="abcl.bat"/>
387    </target>
388
389    <target name="abcl.dist" depends="abcl.jar">
390      <copy file="${abcl.jar.path}"
391      toFile="${dist.dir}/abcl-${abcl.version}.jar"/>
392    </target>
393
394    <target name="abcl.distclean" depends="abcl.clean">
395      <delete dir="${dist.dir}"/>
396      <delete file="abcl"/>
397      <delete file="abcl.bat"/>
398    </target>
399
400    <target name="TAGS">
401      <apply executable="etags" parallel="true" verbose="true">
402  <arg value="--regex=|[ \t]+//[ \t]+###[ \t]+\([^ \t]+\)|\1|"/>
403  <fileset dir="${src.dir}">
404    <patternset refid="abcl.source.java"/>
405    <patternset refid="abcl.source.lisp"/>
406  </fileset>
407      </apply>
408    </target>
409
410    <patternset id="abcl.dist.misc"
411    description="Additional includes in the source distributions relative to basedir">
412      <include name="build.xml"/>
413      <include name="build.properties.in"/>
414      <include name="COPYING"/>
415      <include name="README"/>
416      <include name="CHANGES"/>
417      <include name="abcl.in"/>
418      <include name="abcl.bat.in"/>
419     
420      <!-- The remainder of these files are used by the Lisp hosted
421           build in 'build-abcl.lisp' but not used by Ant, so include
422           them in the source distribution. -->
423      <include name="make-jar.in"/>
424      <include name="make-jar.bat.in"/>
425
426      <include name="build-abcl.lisp"/>
427      <include name="customizations.lisp.in"/>
428
429      <include name="test-abcl.asd"/>
430      <include name="build-abcl.asd"/>
431    </patternset>
432
433    <patternset id="abcl.source.misc"
434    description="Additional includes in the source distribution relative to source root">
435      <include name="org/armedbear/lisp/LICENSE"/>
436      <include name="manifest-abcl"/>
437      <include name="META-INF/services/javax.script.ScriptEngineFactory"/>
438    </patternset>
439
440    <target name="abcl.source.prepare" depends="abcl.stamp.version">
441      <property name="abcl.build.src.dir"
442    value="${build.dir}/abcl-src-${abcl.version}"/>
443      <mkdir dir="${abcl.build.src.dir}/src"/>
444      <copy todir="${abcl.build.src.dir}/src"
445            preservelastmodified="true">
446        <fileset dir="${src.dir}"
447                 id="abcl.source.src">
448            <patternset refid="abcl.source.java"/>
449            <patternset refid="abcl.source.lisp"/>
450            <patternset refid="abcl.source.misc"/>
451        </fileset>
452      </copy>
453      <copy todir="${abcl.build.src.dir}"
454            preservelastmodified="true">
455        <fileset dir="${basedir}">
456            <patternset refid="abcl.dist.misc"/>
457        </fileset>
458      </copy>
459    </target>
460
461    <!--  Files in source distribution that always get LF EOL (aka
462         'unix') -->   
463    <patternset id="abcl.dist.lf">
464      <include name="abcl.in"/>
465    </patternset>
466
467    <!--  Files in source distribution that always get CRLF EOL (aka
468         'dos') -->   
469    <patternset id="abcl.dist.crlf">
470      <include name="abcl.bat.in"/>
471    </patternset>
472
473    <target name="abcl.source.tar" depends="abcl.source.prepare">
474      <fixcrlf srcdir="${abcl.build.src.dir}"
475               preservelastmodified="true"
476               eol="lf">
477      </fixcrlf>
478
479      <fixcrlf srcdir="${abcl.build.src.dir}"
480               preservelastmodified="true"
481               eol="crlf">
482          <patternset refid="abcl.dist.crlf"/>
483      </fixcrlf>
484
485      <fixcrlf srcdir="${abcl.build.src.dir}"
486               preservelastmodified="true"
487               eol="lf">
488          <patternset refid="abcl.dist.lf"/>
489      </fixcrlf>
490
491      <mkdir dir="${dist.dir}"/>
492      <tar destfile="${dist.dir}/abcl-src-${abcl.version}.tar.gz"
493     compression="gzip">
494  <tarfileset dir="${build.dir}">
495    <include name="abcl-src-${abcl.version}/**"/>
496  </tarfileset>
497      </tar>
498    </target>
499
500    <target name="abcl.source.zip" depends="abcl.source.prepare">
501      <fixcrlf srcdir="${abcl.build.src.dir}"
502               preservelastmodified="true"
503               eol="crlf">
504      </fixcrlf>
505
506      <fixcrlf srcdir="${abcl.build.src.dir}"
507               preservelastmodified="true"
508               eol="crlf">
509          <patternset refid="abcl.dist.crlf"/>
510      </fixcrlf>
511
512      <fixcrlf srcdir="${abcl.build.src.dir}"
513               preservelastmodified="true"
514               eol="lf">
515          <patternset refid="abcl.dist.lf"/>
516      </fixcrlf>
517
518      <mkdir dir="${dist.dir}"/>
519      <zip destfile="${dist.dir}/abcl-src-${abcl.version}.zip"
520     compress="true">
521  <zipfileset dir="${abcl.build.src.dir}" prefix="abcl-src-${abcl.version}"/>
522      </zip>
523    </target>
524   
525    <target name="abcl.binary.prepare" depends="abcl.jar,abcl.stamp.version">
526      <property name="abcl.build.binary.dir"
527                value="${build.dir}/abcl-bin-${abcl.version}"/>
528      <mkdir dir="${abcl.build.binary.dir}"/>
529      <copy todir="${abcl.build.binary.dir}"
530            preservelastmodified="true">
531        <fileset dir="${basedir}/dist">
532          <patternset>
533            <include name="abcl.jar"/>
534          </patternset>
535        </fileset>
536        <fileset dir="${basedir}">
537          <patternset>
538            <include name="README"/>
539            <include name="CHANGES"/>
540          </patternset>
541        </fileset>
542      </copy>
543    </target>
544
545    <target name="abcl.binary.tar" depends="abcl.binary.prepare">
546      <tar destfile="${dist.dir}/abcl-bin-${abcl.version}.tar.gz"
547           compression="gzip">
548        <tarfileset dir="${build.dir}">
549          <include name="abcl-bin-${abcl.version}/**"/>
550          </tarfileset>
551      </tar>
552    </target>
553
554    <target name="abcl.binary.zip" depends="abcl.binary.prepare">
555      <zip destfile="${dist.dir}/abcl-bin-${abcl.version}.zip"
556           compress="true">
557        <zipfileset dir="${abcl.build.binary.dir}" prefix="abcl-bin-${abcl.version}"/>
558      </zip>
559    </target>
560
561    <property name="abcl.test.classes.dir"
562        value="${build.dir}/classes-test"/>
563
564    <property name="abcl.test.src.dir"
565        value="${basedir}/test/src"/>
566
567    <patternset id="abcl.test.source.java">
568      <!-- For now, we list tests explicitly, because we have to
569           enumerate them later to the JUnit test runner. -->
570      <include name="org/armedbear/lisp/FastStringBufferTest.java"/>
571    </patternset>
572
573    <property name="junit-4.5.path"
574        value="${abcl.ext.dir}/junit-4.5.jar"/>
575
576    <path id="abcl.test.compile.classpath">
577      <pathelement location="${junit-4.5.path}"/>
578      <pathelement location="${build.classes.dir}"/>
579    </path>
580
581    <target name="abcl.test.pre-compile" depends="abcl.ext"/>
582
583    <target name="abcl.ext.p">
584      <!--XXX generalize over enumeration of all contributions to abcl.ext -->
585      <available file="${junit-4.5.path}" property="abcl.ext.p"/>
586    </target>
587    <target name="abcl.ext" depends="abcl.ext.p" unless="abcl.ext.p">
588
589      <mkdir dir="${abcl.ext.dir}"/>
590      <get src="http://downloads.sourceforge.net/junit/junit-4.5.jar?modtime=1218209625"
591     usetimestamp="true"
592     dest="${junit-4.5.path}"/>
593    </target>
594 
595    <target name="abcl.test.compile" 
596      depends="abcl.test.pre-compile,abcl.compile">
597      <mkdir dir="${abcl.test.classes.dir}"/>
598      <javac destdir="${abcl.test.classes.dir}"
599       classpathref="abcl.test.compile.classpath"
600       debug="true"
601       target="1.5">
602  <src path="${abcl.test.src.dir}"/>
603  <patternset refid="abcl.test.source.java"/>
604      </javac>
605    </target>
606
607    <path id="abcl.test.run.classpath">
608      <path refid="abcl.test.compile.classpath"/>
609      <pathelement location="${abcl.test.classes.dir}"/>
610    </path>
611
612    <target name="abcl.test" 
613      depends="abcl.test.java,abcl.test.lisp"/>
614 
615    <target name="abcl.test.java" depends="abcl.test.compile">
616      <java fork="true"
617      classpathref="abcl.test.run.classpath"
618      classname="org.junit.runner.JUnitCore">
619  <arg value="org.armedbear.lisp.FastStringBufferTest"/>
620      </java>
621    </target>
622
623    <target name="abcl.test.lisp" 
624      depends="test.ansi.compiled,test.abcl"/>
625
626    <target name="test.ansi.interpreted" depends="abcl.jar">
627      <echo>Recording test output in ${abcl.test.log.file}.</echo>
628      <record name="${abcl.test.log.file}" emacsmode="true" action="start" append="yes"/>
629      <java fork="true" dir="${basedir}"
630      classpathref="abcl.classpath.dist"
631      classname="org.armedbear.lisp.Main">
632  <arg value="--noinit"/> 
633  <arg value="--load"/>
634  <arg line="${basedir}/test/lisp/ansi/ansi-tests-interpreted.lisp"/>
635      </java>
636      <record name="${abcl.test.log.file}" emacsmode="true" action="stop"/>
637      <echo>Finished recording test output in ${abcl.test.log.file}.</echo>
638    </target>
639
640    <target name="test.ansi.compiled" depends="abcl.jar">
641      <echo>Recording test output in ${abcl.test.log.file}.</echo>
642      <record name="${abcl.test.log.file}" emacsmode="true" action="start" append="yes"/>
643      <java fork="true" dir="${basedir}"
644      classpathref="abcl.classpath.dist"
645      classname="org.armedbear.lisp.Main">
646  <arg value="--noinit"/> 
647  <arg value="--load"/>
648  <arg line="${basedir}/test/lisp/ansi/ansi-tests-compiled.lisp "/> 
649      </java>
650      <record name="${abcl.test.log.file}" emacsmode="true" action="stop"/>
651      <echo>Finished recording test output in ${abcl.test.log.file}.</echo>
652    </target>
653
654    <target name="test.abcl" depends="abcl.jar">
655      <echo>Recording test output in ${abcl.test.log.file}.</echo>
656      <record name="${abcl.test.log.file}" emacsmode="true" action="start" append="yes"/>
657      <java fork="true" dir="${basedir}"
658      classpathref="abcl.classpath.dist"
659      classname="org.armedbear.lisp.Main">
660  <arg value="--noinit"/> 
661  <arg value="--load"/>
662  <arg line="${basedir}/test/lisp/abcl/abcl-test.lisp"/>
663      </java>
664      <record name="${abcl.test.log.file}" emacsmode="true" action="stop"/>
665      <echo>Finished recording test output in ${abcl.test.log.file}.</echo>
666    </target>
667
668    <import file="netbeans-build.xml" optional="true"/> 
669<!--    <import file="j-build.xml" optional="true"/>  -->
670    <import file="not.org-build.xml" optional="true"/> 
671</project>
672
Note: See TracBrowser for help on using the repository browser.