robocode (1.6.2+dfsg-3) 05-codesize-jar.diff

Summary

 build/build.xml |   14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

    
download this patch

Patch contents

 Don't embed a sourceless copy of codesize.jar; use bcel.jar instead.

    -- Chris Lamb <lamby@debian.org>  Sun, 10 May 2009 12:28:18 +0100

diff -urNad /tmp/bp-build/robocode.orig/build/build.xml /tmp/bp-build/robocode/build/build.xml
--- robocode.orig/build/build.xml	2009-05-10 12:22:28.000000000 +0100
+++ robocode/build/build.xml	2009-05-10 12:23:15.000000000 +0100
@@ -143,11 +143,8 @@
 
     <echo message="Compiling Robocode..."/>
  
-  	<!-- Copy libs into the build folder -->
-  	<copy file="${src.extract}/libs/codesize.jar" toDir="${build}/libs"/>
- 
     <!-- Compile Robocode -->
-    <compile srcdir="${src.robocode}" destdir="${build}" classpath="${build}/libs/codesize.jar"/>
+    <compile srcdir="${src.robocode}" destdir="${build}" classpath="bcel.jar"/>
 
     <!-- Flag that Robocode has been built -->
     <touch file="${build}/.robocode_build"/>
@@ -217,7 +214,7 @@
       <echo message="Compiling tests..."/>
 
       <!-- Compile Robocode -->
-      <compile srcdir="${src.tests}/tests" destdir="${build}/tests" classpath="${build}/libs/codesize.jar;${build}/libs/robocode.jar;${src.tests}/libs/junit-4.4.jar"/>
+      <compile srcdir="${src.tests}/tests" destdir="${build}/tests" classpath="bcel.jar;${build}/libs/robocode.jar;${src.tests}/libs/junit-4.4.jar"/>
 
       <!-- Flag that Robocode has been built -->
       <touch file="${build}/.tests_build"/>
@@ -257,11 +254,8 @@
 
     <echo message="Compiling RoboRumble..."/>
  
-  	<!-- Copy libs into the build folder -->
-  	<copy file="${src.extract}/libs/codesize.jar" toDir="${build}/libs"/>
-
   	<!-- Compile RoboRumble -->
-    <compile srcdir="${src.roborumble}" destdir="${build}" classpath="${build}/libs/codesize.jar"/>
+    <compile srcdir="${src.roborumble}" destdir="${build}" classpath="bcel.jar"/>
 
     <!-- Flag that RoboRumble has been built -->
     <touch file="${build}/.roborumble_build"/>
@@ -443,7 +437,7 @@
       <classpath>
           <pathelement location="${build}/tests"/>
           <pathelement location="${build}/libs/robocode.jar"/>
-          <pathelement location="${build}/libs/codesize.jar"/>
+          <pathelement location="bcel.jar"/>
           <pathelement location="${src.tests}/libs/junit-4.4.jar"/>
       </classpath>
       <formatter type="plain"/>