[armedbear-cvs] r12294 - trunk/abcl
Mark Evenson
mevenson at common-lisp.net
Mon Dec 7 11:56:57 UTC 2009
Author: mevenson
Date: Mon Dec 7 06:56:52 2009
New Revision: 12294
Log:
Fix abcl.compile.lisp under Windows.
Modified:
trunk/abcl/build.xml
Modified: trunk/abcl/build.xml
==============================================================================
--- trunk/abcl/build.xml (original)
+++ trunk/abcl/build.xml Mon Dec 7 06:56:52 2009
@@ -208,19 +208,46 @@
<mapper type="glob" from="*.lisp" to="${build.classes.dir}/*.abcl"/>
</uptodate>
</target>
+
+ <path id="abcl.home.dir.path">
+ <path location="${src.dir}/org/armedbear/lisp/"/>
+ </path>
+ <pathconvert property="abcl.home.dir" refid="abcl.home.dir.path"/>
+
+ <path id="abcl.lisp.output.path"
+ location="${build.classes.dir}/org/armedbear/lisp/"/>
<target name="abcl.compile.lisp"
depends="abcl.copy.lisp,abcl.compile.java,abcl.fasls.uptodate"
unless="abcl.fasls.uptodate.p">
+
+ <tempfile property="abcl.compile.lisp.tmp" suffix=".lisp"/>
+
+ <echo file="${abcl.compile.lisp.tmp}">
+ (compile-system :zip nil :quit t
+ :output-path "${toString:abcl.lisp.output.path}${file.separator}")
+ </echo>
+
+ <tempfile property="abcl.compile.lisp.tmp.2" suffix=".lisp"/>
+
+ <copy verbose="true" file="${abcl.compile.lisp.tmp}"
+ tofile="${abcl.compile.lisp.tmp.2}">
+ <filterchain>
+ <replacestring from="\" to="/"/>
+ </filterchain>
+ </copy>
+
<java classpath="${build.classes.dir}"
fork="true"
failonerror="true"
classname="org.armedbear.lisp.Main">
- <jvmarg value="-Dabcl.home=${abcl.home.dir}"/>
+ <jvmarg value="-Dabcl.home=${abcl.home.dir}${file.separator}"/>
<arg value="--noinit"/>
- <arg value="--eval"/>
- <arg value="(compile-system :zip nil :quit t :output-path "${build.classes.dir}/org/armedbear/lisp/")"/>
+ <arg value="--load"/>
+ <arg value="${abcl.compile.lisp.tmp.2}"/>
</java>
+ <delete file="${abcl.compile.lisp.tmp}"/>
+ <delete file="${abcl.compile.lisp.tmp.2}"/>
</target>
<property name="abcl.build.path"
More information about the armedbear-cvs
mailing list