You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2006/11/27 22:01:29 UTC

svn commit: r479762 - /harmony/enhanced/classlib/trunk/make/build-java.xml

Author: tellison
Date: Mon Nov 27 13:01:26 2006
New Revision: 479762

URL: http://svn.apache.org/viewvc?view=rev&rev=479762
Log:
Tweak javac task to remove unused attributes, and avoid getting the Ant runtime JARs.
Specify a bootclasspath to avoid getting the Java runtime JARs.

Modified:
    harmony/enhanced/classlib/trunk/make/build-java.xml

Modified: harmony/enhanced/classlib/trunk/make/build-java.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/make/build-java.xml?view=diff&rev=479762&r1=479761&r2=479762
==============================================================================
--- harmony/enhanced/classlib/trunk/make/build-java.xml (original)
+++ harmony/enhanced/classlib/trunk/make/build-java.xml Mon Nov 27 13:01:26 2006
@@ -118,13 +118,12 @@
         </fail>
         <mkdir dir="${build.output}" />
 
-        <javac fork="yes" 
-               compiler="${hy.javac.compiler}"
-               memoryMaximumSize="${hy.javac.maxmem}"
+        <javac compiler="${hy.javac.compiler}"
                destdir="${build.output}"
                source="${hy.javac.source}" 
                target="${hy.javac.target}"
-               debug="${hy.javac.debug}">
+               debug="${hy.javac.debug}"
+               includeAntRuntime="no">
             
             <compilerarg value="-warn:none" />
             
@@ -171,6 +170,15 @@
                     <include name="**/*.jar" />
                 </fileset>
             </classpath>
+
+            <!-- We need to set some BCP to avoid the compiler picking
+                 up the JRE's JARs -->
+            <bootclasspath>
+                <fileset dir="${depends.jars}">
+                    <!-- FIXME: picked mx4j arbitrarily, needs to be non-empty set -->
+                    <include name="**/mx4j.jar" />
+                </fileset>
+            </bootclasspath>
         </javac>
 
         <call-modules target="build" />