[armedbear-cvs] r12026 - trunk/abcl

Mark Evenson mevenson at common-lisp.net
Thu Jul 2 13:54:06 UTC 2009


Author: mevenson
Date: Thu Jul  2 09:54:00 2009
New Revision: 12026

Log:
Restore use of 'additional.jars' Ant build property to include additional jars at runtime.

'-cp' and '-jar' are mutually incompatible options to invoking the
JVM, although not documented consistently as such.  We restore the
previous wrapper scripts to restore the usage of the Ant build
property 'additional.jars' to include additional JAR files at runtime.

Fix Ant uptodate target by excluding org/armedbear/scripting/**/*.lisp
files from abcl.source.lisp.fasls.  Essentially this patternset has to
match the files compiled by compile-system.lisp, or you will end up
invoking the Lisp compilation process each time.  



Modified:
   trunk/abcl/abcl.bat.in
   trunk/abcl/abcl.in
   trunk/abcl/build.xml

Modified: trunk/abcl/abcl.bat.in
==============================================================================
--- trunk/abcl/abcl.bat.in	(original)
+++ trunk/abcl/abcl.bat.in	Thu Jul  2 09:54:00 2009
@@ -1 +1 @@
-@"@JAVA@" @ABCL_JAVA_OPTIONS@ -jar "@ABCL_CLASSPATH@" %1 %2 %3 %4 %5 %6 %7 %8 %9
+@"@JAVA@" @ABCL_JAVA_OPTIONS@ @ABCL_JAVA_OPTIONS@ -cp @ABCL_CLASSPATH@  org.armedbear.lisp.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 

Modified: trunk/abcl/abcl.in
==============================================================================
--- trunk/abcl/abcl.in	(original)
+++ trunk/abcl/abcl.in	Thu Jul  2 09:54:00 2009
@@ -19,4 +19,8 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-exec @JAVA@ @ABCL_JAVA_OPTIONS@ -jar @ABCL_CLASSPATH@ "$@"
+exec @JAVA@ @ABCL_JAVA_OPTIONS@ \
+  -cp  @ABCL_CLASSPATH@ \
+  org.armedbear.lisp.Main \
+  "$@"
+

Modified: trunk/abcl/build.xml
==============================================================================
--- trunk/abcl/build.xml	(original)
+++ trunk/abcl/build.xml	Thu Jul  2 09:54:00 2009
@@ -182,10 +182,11 @@
     <!-- Adjust the patternset for ABCL source to use the much faster
          Ant 'uptodate' task to check if we need to compile the system
          fasls.  Highly inter-dependent with the behavior specified in
-         'compile-system.lisp'.-->
+         'compile-system.lisp', i.e. files not listed in
+         there should NOT occur here. -->
     <patternset id="abcl.source.lisp.fasls">
       <patternset refid="abcl.source.lisp"/>
-      <exclude name="org/armedbear/lisp/tests/*.lisp"/>
+      <exclude name="org/armedbear/lisp/scripting/**/*.lisp"/>
       <exclude name="org/armedbear/lisp/boot.lisp"/>
       <exclude name="org/armedbear/lisp/emacs.lisp"/>
       <exclude name="org/armedbear/lisp/runtime-class.lisp"/>
@@ -301,10 +302,8 @@
 	  <filter token="JAVA" 
 		  value="${java.path}"/>
 	  <filter token="ABCL_JAVA_OPTIONS" 
-		  value= "${java.options}"/>
-	  <filter token="ABCL_LIBPATH" 
-		  value="${basedir}/src/org/armedbear/lisp/libabcl.so"/>
-	  <filter token="ABCL_CLASSPATH" 
+		  value="${java.options}"/>
+	  <filter token="ABCL_CLASSPATH"
 		  value="${toString:abcl.runtime.classpath}"/>
 	</filterset>
       </copy>
@@ -332,6 +331,7 @@
 	<jvmarg 
 	    value="-agentlib:jdwp=transport=dt_socket,address=6789,server=y"/>
       </java>
+      <echo>JPDA listening on localhost:6789</echo>
     </target>
 
     <target name="abcl.run" depends="abcl.jar">




More information about the armedbear-cvs mailing list