harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r794763 - /harmony/enhanced/classlib/trunk/modules/awt/build.xml
Date Thu, 16 Jul 2009 17:34:25 GMT
Author: hindessm
Date: Thu Jul 16 17:34:24 2009
New Revision: 794763

URL: http://svn.apache.org/viewvc?rev=794763&view=rev
Log:
Use compile-tests macro for awt tests.

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/build.xml

Modified: harmony/enhanced/classlib/trunk/modules/awt/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/build.xml?rev=794763&r1=794762&r2=794763&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/build.xml (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/build.xml Thu Jul 16 17:34:24 2009
@@ -323,57 +323,23 @@
     </target>
 
     <target name="compile-tests" depends="copy-test-resources">
-        <echo message="Compiling AWT tests" />
-
-        <mkdir dir="bin/test/boot" />
-        <javac destdir="bin/test/boot"
-               sourcepath=""
-               compiler="${hy.javac.compiler}"
-               memoryMaximumSize="${hy.javac.maxmem}"
-               source="${hy.javac.source}" 
-               target="${hy.javac.target}"
-               debug="${hy.javac.debug}">
-
-            <compilerarg line="${build.compilerarg}" />
-
-            <src>
-                <pathelement location="src/test/impl/boot" />
-            </src>
-               
-            <bootclasspath>
-                <fileset dir="${hy.jdk}/jre/lib/boot">
-                    <include name="**/*.jar" />
-                </fileset>
-            </bootclasspath>
-            <classpath location="${basedir}/../../${junit.jar}" />
-            <classpath location="${hy.hdk}/build/test/support.jar" />
-        </javac>
-
-        <mkdir dir="bin/test/classes" />
-        <javac destdir="bin/test/classes"
-               sourcepath=""
-               compiler="${hy.javac.compiler}"
-               memoryMaximumSize="${hy.javac.maxmem}"
-               source="${hy.javac.source}" 
-               target="${hy.javac.target}"
-               debug="${hy.javac.debug}">
-
-            <compilerarg line="${build.compilerarg}" />
-
-            <src>
-                <pathelement location="src/test/api/java" />
-                <pathelement location="${hy.awt.src.test.impl.platform}" />
-            </src>
-               
-            <bootclasspath>
-                <fileset dir="${hy.jdk}/jre/lib/boot">
-                    <include name="**/*.jar" />
-                </fileset>
-            </bootclasspath>
-            <classpath location="${basedir}/../../${junit.jar}" />
-            <classpath location="${hy.hdk}/build/test/support.jar" />
-        </javac>
-
+        <compile-tests description="awt impl tests"
+                       destdir="bin/test/boot">
+            <javac-elements>
+                <src>
+                    <pathelement location="src/test/impl/boot" />
+                </src>
+            </javac-elements>
+        </compile-tests>
+        <compile-tests description="awt api tests"
+                       destdir="bin/test/classes">
+            <javac-elements>
+                <src>
+                    <pathelement location="src/test/api/java" />
+                    <pathelement location="${hy.awt.src.test.impl.platform}" />
+                </src>
+            </javac-elements>
+        </compile-tests>
     </target>
 
     <target name="copy-test-resources">



Mime
View raw message