harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r941503 [4/5] - in /harmony/enhanced/java/trunk: ./ classlib/ classlib/make/ classlib/modules/accessibility/ classlib/modules/annotation/ classlib/modules/applet/ classlib/modules/archive/ classlib/modules/auth/ classlib/modules/awt/ classl...
Date Wed, 05 May 2010 21:29:20 GMT
Modified: harmony/enhanced/java/trunk/classlib/modules/swing/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/swing/build.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/swing/build.xml (original)
+++ harmony/enhanced/java/trunk/classlib/modules/swing/build.xml Wed May  5 21:29:16 2010
@@ -34,9 +34,10 @@
 
     <property file="../../make/depends.properties" />
 
-    <target name="build" depends="compile-java, build-jar" />
+    <target name="build" depends="-build-no-check"/>
+    <target name="-build-no-check" depends="-build-jar,-test-jar" />
 
-    <target name="clean" depends="clean-java,clean-test" />
+    <target name="clean" depends="-clean-java,-clean-test" />
 
     <target name="test" depends="-test-module">
         <fail message="Some tests failed">
@@ -50,11 +51,12 @@
     </target>
 
     <!-- internal target for local and global test run sequence -->
-    <target name="-test-module" depends="build, run-tests" />
+    <target name="-test-module" depends="build,-run-tests" />
 
-    <target name="clean-java" depends="class-patternset">
-        <delete file="${hy.jdk}/jre/lib/boot/swing.jar" />
-        <delete file="${hy.jdk}/jre/lib/boot/swing-src.jar" />
+    <target name="-clean-java" unless="skip.java.build"
+            depends="-class-patternset">
+        <delete file="${hy.jdk}/jre/lib/boot/${hy.module}.jar" />
+        <delete file="${hy.jdk}/jre/lib/boot/${hy.module}-src.jar" />
         <delete failonerror="false">
             <fileset refid="classes" />
             <fileset refid="hidden.classes"/>
@@ -62,60 +64,50 @@
         <delete-patternset module="${hy.module}" />
     </target>
 
-    <target name="clean-test">
+    <target name="-clean-test" unless="skip.test.build">
         <delete dir="${tests.hdk.dir}" failonerror="false" />
         <delete failonerror="false" dir="bin"/>
     </target>
 
-    <target name="compile-java">
-        <echo message="Compiling ${hy.module} classes" />
-
-        <mkdir dir="../../build/classes" />
-
-        <hy.javac sourcepath=""
-                  destdir="../../build/classes">
-
-            <compilerarg line="${build.compilerarg}" />
-
-            <src>
-                <pathelement location="src/main/java/common"/>
-                <pathelement location="src/main/java/${hy.os.family}" />
-            </src>
-
-            <bootclasspath>
-                <fileset dir="${hy.jdk}/jre/lib/boot">
-                    <include name="**/*.jar" />
-                </fileset>
-            </bootclasspath>
-        </hy.javac>
+    <target name="-compile-java" unless="skip.java.build">
+        <compile-classes description="${hy.module} classes">
+            <javac-elements>
+                <src>
+                    <pathelement location="src/main/java/common"/>
+                    <pathelement location="src/main/java/${hy.os.family}" />
+                </src>
+            </javac-elements>
+        </compile-classes>
     </target>
 
-    <target name="findbugs" depends="build-jar">
+    <target name="findbugs" depends="-build-jar">
         <run-findBugs
-            jarFile="${hy.jdk}/jre/lib/boot/swing.jar"
+            jarFile="${hy.jdk}/jre/lib/boot/${hy.module}.jar"
             excludeFilter="make/findbugs-exclude-filter.xml"
-            outputFile="${findBugs.report}/swing.xml"/>
+            outputFile="${findBugs.report}/${hy.module}.xml"/>
     </target>
 
-    <target name="build-jar" depends="svn-info,class-patternset">
-        <hy.jar.bin destfile="${hy.jdk}/jre/lib/boot/swing.jar"
+    <target name="-build-jar" unless="skip.java.build"
+            depends="-svn-info,-compile-java,-class-patternset">
+        <hy.jar.bin destfile="${hy.jdk}/jre/lib/boot/${hy.module}.jar"
              manifest="META-INF/MANIFEST.MF">
             <fileset refid="classes" />
             <fileset refid="hidden.classes" />
             <fileset refid="common.resources" />
         </hy.jar.bin>
 
-        <hy.jar.src destfile="${hy.jdk}/jre/lib/boot/swing-src.jar">
+        <hy.jar.src destfile="${hy.jdk}/jre/lib/boot/${hy.module}-src.jar">
             <fileset dir="src/main/java/common" />
         </hy.jar.src>
     </target>
 
-    <target name="test-jar" depends="svn-info,compile-tests">
+    <target name="-test-jar" unless="skip.test.build"
+            depends="-svn-info,-compile-tests">
         <mkdir dir="${tests.hdk.dir}" />
         
         <copy file="make/run-test.xml" tofile="${tests.hdk.dir}/build.xml" />
         
-        <hy.jar.bin destfile="${tests.hdk.dir}/swing_tests.jar">
+        <hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_tests.jar">
             <fileset dir="bin/test/injected" />
         </hy.jar.bin>
 
@@ -134,8 +126,8 @@
         </copy>
     </target>
 
-    <target name="compile-tests">
-        <compile-tests description="swing tests"
+    <target name="-compile-tests" unless="skip.test.build">
+        <compile-tests description="${hy.module} tests"
                        destdir="bin/test/injected">
             <javac-elements>
                 <src>
@@ -145,11 +137,11 @@
         </compile-tests>
     </target>
 
-    <target name="run-tests" depends="test-jar">
+    <target name="-run-tests" depends="-test-jar">
         <ant dir="${tests.hdk.dir}" target="test-module" />
     </target>
 
-    <target name="class-patternset">
+    <target name="-class-patternset" unless="skip.java.build">
         <make-patternset module="${hy.module}" />
     </target>
 

Modified: harmony/enhanced/java/trunk/classlib/modules/text/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/text/build.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/text/build.xml (original)
+++ harmony/enhanced/java/trunk/classlib/modules/text/build.xml Wed May  5 21:29:16 2010
@@ -26,7 +26,8 @@
 
     <property file="../../make/depends.properties" />
 
-    <target name="build" depends="compile-java, build-jar" />
+    <target name="build" depends="-build-no-check"/>
+    <target name="-build-no-check" depends="-build-jar,-test-jar" />
 
     <target name="test" depends="-test-module">
         <fail message="Some tests failed">
@@ -40,68 +41,60 @@
     </target>
 
     <!-- internal target for local and global test run sequence -->
-    <target name="-test-module" depends="build, run-tests" />
+    <target name="-test-module" depends="build,-run-tests" />
     
-    <target name="clean" depends="clean-java,clean-test" />
+    <target name="clean" depends="-clean-java,-clean-test" />
     
-    <target name="clean-java" depends="class-patternset">
-        <delete file="${hy.jdk}/jre/lib/boot/text.jar" />
-        <delete file="${hy.jdk}/jre/lib/boot/text-src.jar" />
+    <target name="-clean-java" unless="skip.java.build"
+            depends="-class-patternset">
+        <delete file="${hy.jdk}/jre/lib/boot/${hy.module}.jar" />
+        <delete file="${hy.jdk}/jre/lib/boot/${hy.module}-src.jar" />
         <delete failonerror="false">
             <fileset refid="classes" />
         </delete>
         <delete-patternset module="${hy.module}" />
     </target>
 
-    <target name="clean-test">
+    <target name="-clean-test" unless="skip.test.build">
         <delete dir="${tests.hdk.dir}" failonerror="false" />
         <delete failonerror="false" dir="bin"/>
     </target>
 
-    <target name="compile-java">
-        <echo message="Compiling ${hy.module} classes" />
-
-        <mkdir dir="../../build/classes" />
-
-        <hy.javac sourcepath=""
-                  srcdir="src/main/java"
-                  destdir="../../build/classes">
-
-            <compilerarg line="${build.compilerarg}" />
-
-            <bootclasspath>
-                <fileset dir="${hy.jdk}/jre/lib/boot">
-                    <include name="**/*.jar" />
-                </fileset>
-            </bootclasspath>
-        </hy.javac>
+    <target name="-compile-java" unless="skip.java.build">
+        <compile-classes description="${hy.module} classes">
+            <javac-elements>
+                <src path="src/main/java" />
+            </javac-elements>
+        </compile-classes>
     </target>
 
-    <target name="findbugs" depends="build-jar">
+    <target name="findbugs" depends="-build-jar">
         <run-findBugs
-            jarFile="${hy.jdk}/jre/lib/boot/text.jar"
+            jarFile="${hy.jdk}/jre/lib/boot/${hy.module}.jar"
             excludeFilter="make/findbugs-exclude-filter.xml"
-            outputFile="${findBugs.report}/text.xml"/>
+            outputFile="${findBugs.report}/${hy.module}.xml"/>
     </target>
 
-    <target name="build-jar" depends="svn-info,class-patternset">
-        <hy.jar.bin destfile="${hy.jdk}/jre/lib/boot/text.jar"
+    <target name="-build-jar" unless="skip.java.build"
+            depends="-svn-info,-compile-java,-class-patternset">
+        <hy.jar.bin destfile="${hy.jdk}/jre/lib/boot/${hy.module}.jar"
                     manifest="META-INF/MANIFEST.MF">
             <fileset refid="classes" />
             <fileset refid="resources" />
         </hy.jar.bin>
 
-        <hy.jar.src destfile="${hy.jdk}/jre/lib/boot/text-src.jar">
+        <hy.jar.src destfile="${hy.jdk}/jre/lib/boot/${hy.module}-src.jar">
             <fileset dir="src/main/java" />
         </hy.jar.src>
     </target>
 
-    <target name="test-jar" depends="svn-info,compile-tests">
+    <target name="-test-jar" unless="skip.test.build"
+            depends="-svn-info,-compile-tests">
         <mkdir dir="${tests.hdk.dir}" />
 
         <copy file="make/run-test.xml" tofile="${tests.hdk.dir}/build.xml" />
         
-        <hy.jar.bin destfile="${tests.hdk.dir}/text_tests.jar">
+        <hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_tests.jar">
             <fileset dir="bin/test" />
         </hy.jar.bin>
 
@@ -120,8 +113,8 @@
         </copy>
     </target>
 
-    <target name="compile-tests">
-        <compile-tests description="text tests">
+    <target name="-compile-tests" unless="skip.test.build">
+        <compile-tests description="${hy.module} tests">
             <javac-elements>
                 <src>
                     <pathelement location="src/test/java" />
@@ -130,11 +123,11 @@
         </compile-tests>
     </target>
 
-    <target name="run-tests" depends="test-jar">
+    <target name="-run-tests" depends="-test-jar">
         <ant dir="${tests.hdk.dir}" target="test-module" />
     </target>
 
-    <target name="class-patternset">
+    <target name="-class-patternset" unless="skip.java.build">
         <make-patternset module="${hy.module}" />
     </target>
 

Modified: harmony/enhanced/java/trunk/classlib/modules/x-net/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/x-net/build.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/x-net/build.xml (original)
+++ harmony/enhanced/java/trunk/classlib/modules/x-net/build.xml Wed May  5 21:29:16 2010
@@ -26,7 +26,8 @@
 
     <property file="../../make/depends.properties" />
 
-    <target name="build" depends="compile-java, build-jar" />
+    <target name="build" depends="-build-no-check"/>
+    <target name="-build-no-check" depends="-build-jar,-test-jar" />
 
     <target name="test" depends="-test-module">
         <fail message="Some tests failed">
@@ -40,80 +41,72 @@
     </target>
 
     <!-- internal target for local and global test run sequence -->
-    <target name="-test-module" depends="build, run-tests" />
+    <target name="-test-module" depends="build,-run-tests" />
 
-    <target name="clean" depends="clean-java,clean-test" />
+    <target name="clean" depends="-clean-java,-clean-test" />
     
-    <target name="clean-java" depends="class-patternset">
-        <delete file="${hy.jdk}/jre/lib/boot/x-net.jar" />
-        <delete file="${hy.jdk}/jre/lib/boot/x-net-src.jar" />
+    <target name="-clean-java" unless="skip.java.build"
+            depends="-class-patternset">
+        <delete file="${hy.jdk}/jre/lib/boot/${hy.module}.jar" />
+        <delete file="${hy.jdk}/jre/lib/boot/${hy.module}-src.jar" />
         <delete failonerror="false">
             <fileset refid="classes" />
         </delete>
         <delete-patternset module="${hy.module}" />
     </target>
 
-    <target name="clean-test">
+    <target name="-clean-test" unless="skip.test.build">
         <delete dir="${tests.hdk.dir}" failonerror="false" />
         <delete failonerror="false" dir="bin"/>
     </target>
 
-    <target name="compile-java">
-        <echo message="Compiling ${hy.module} classes" />
-
-        <mkdir dir="../../build/classes" />
-
-        <hy.javac sourcepath=""
-               srcdir="src/main/java"
-               destdir="../../build/classes">
-
-            <compilerarg line="${build.compilerarg}" />
-
-            <bootclasspath>
-                <fileset dir="${hy.jdk}/jre/lib/boot">
-                    <include name="**/*.jar" />
-                </fileset>
-            </bootclasspath>
-        </hy.javac>
+    <target name="-compile-java" unless="skip.java.build">
+        <compile-classes description="${hy.module} classes">
+            <javac-elements>
+                <src path="src/main/java" />
+            </javac-elements>
+        </compile-classes>
     </target>
 
-    <target name="findbugs" depends="build-jar">
+    <target name="findbugs" depends="-build-jar">
         <run-findBugs
-            jarFile="${hy.jdk}/jre/lib/boot/x-net.jar"
+            jarFile="${hy.jdk}/jre/lib/boot/${hy.module}.jar"
             excludeFilter="make/findbugs-exclude-filter.xml"
-            outputFile="${findBugs.report}/x-net.xml"/>
+            outputFile="${findBugs.report}/${hy.module}.xml"/>
     </target>
 
-    <target name="build-jar" depends="svn-info,class-patternset">
-        <hy.jar.bin destfile="${hy.jdk}/jre/lib/boot/x-net.jar"
+    <target name="-build-jar" unless="skip.java.build"
+            depends="-svn-info,-compile-java,-class-patternset">
+        <hy.jar.bin destfile="${hy.jdk}/jre/lib/boot/${hy.module}.jar"
                 manifest="META-INF/MANIFEST.MF">
             <fileset refid="classes" />
             <fileset refid="resources" />
         </hy.jar.bin>
 
-        <hy.jar.src destfile="${hy.jdk}/jre/lib/boot/x-net-src.jar">
+        <hy.jar.src destfile="${hy.jdk}/jre/lib/boot/${hy.module}-src.jar">
             <fileset dir="src/main/java" />
         </hy.jar.src>
     </target>
 
-    <target name="test-jar" depends="svn-info,compile-tests">
+    <target name="-test-jar" unless="skip.test.build"
+            depends="-svn-info,-compile-tests">
         <mkdir dir="${tests.hdk.dir}" />
 
         <copy file="make/run-test.xml" tofile="${tests.hdk.dir}/build.xml" />
 
-        <hy.jar.bin destfile="${tests.hdk.dir}/x-net_test_support.jar">
+        <hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_test_support.jar">
             <fileset dir="bin/test/support" />
         </hy.jar.bin>
 
-        <hy.jar.bin destfile="${tests.hdk.dir}/x-net_api_tests.jar">
+        <hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_api_tests.jar">
             <fileset dir="bin/test/api" />
         </hy.jar.bin>
 
-        <hy.jar.bin destfile="${tests.hdk.dir}/x-net_impl_boot_tests.jar">
+        <hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_impl_boot_tests.jar">
             <fileset dir="bin/test/impl.injected" />
         </hy.jar.bin>
 
-        <hy.jar.bin destfile="${tests.hdk.dir}/x-net_impl_tests.jar">
+        <hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_impl_tests.jar">
             <fileset dir="bin/test/impl" />
         </hy.jar.bin>
 
@@ -132,9 +125,9 @@
         </copy>
     </target>
 
-    <target name="compile-tests">
+    <target name="-compile-tests" unless="skip.test.build">
 
-        <compile-tests description="x-net test support files"
+        <compile-tests description="${hy.module} test support files"
                        destdir="bin/test/support">
             <javac-elements>
                 <src>
@@ -145,7 +138,8 @@
             </javac-elements>
         </compile-tests>
         
-        <compile-tests description="x-net api tests" destdir="bin/test/api">
+        <compile-tests description="${hy.module} api tests"
+                       destdir="bin/test/api">
             <javac-elements>
                 <classpath location="bin/test/support" />
                 <src path="src/test/api/java"/>
@@ -154,7 +148,7 @@
             </javac-elements>
         </compile-tests>
 
-        <compile-tests description="x-net impl injected tests"
+        <compile-tests description="${hy.module} impl injected tests"
                        destdir="bin/test/impl.injected">
             <javac-elements>
                 <classpath location="bin/test/support" />
@@ -163,7 +157,8 @@
             </javac-elements>
         </compile-tests>
         
-        <compile-tests description="x-net impl tests" destdir="bin/test/impl">
+        <compile-tests description="${hy.module} impl tests"
+                       destdir="bin/test/impl">
             <javac-elements>
                 <src path="src/test/impl/java"/>
                 <include name="**/*Test.java" />
@@ -171,11 +166,11 @@
         </compile-tests>
     </target>
 
-    <target name="run-tests" depends="test-jar">
+    <target name="-run-tests" depends="-test-jar">
         <ant dir="${tests.hdk.dir}" target="test-module" />
     </target>
 
-    <target name="class-patternset">
+    <target name="-class-patternset" unless="skip.java.build">
         <make-patternset module="${hy.module}" />
     </target>
 

Propchange: harmony/enhanced/java/trunk/common_resources/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed May  5 21:29:16 2010
@@ -1,2 +1,3 @@
+/harmony/enhanced/java/branches/mrh/common_resources:935751-941490
 /harmony/enhanced/trunk/common_resources:476396-920147
 /incubator/harmony/enhanced/trunk/common_resources:423974-476394

Modified: harmony/enhanced/java/trunk/common_resources/make/properties.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/common_resources/make/properties.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/common_resources/make/properties.xml (original)
+++ harmony/enhanced/java/trunk/common_resources/make/properties.xml Wed May  5 21:29:16 2010
@@ -150,7 +150,7 @@
         </not>
      </condition>
 
-    <target name="echo" depends="svn-info, test-jre-vm-info"
+    <target name="echo" depends="-svn-info, test-jre-vm-info"
             description="Display the properties defined by this ant file" >
         <echo>
 Harmony release configuration property:
@@ -207,7 +207,7 @@ Harmony platform properties:
   hy.hdk = ${hy.hdk}
 
 
-The following properties are only set if the "svn-info" target has been
+The following properties are only set if the "-svn-info" target has been
 called:
 
   svn.revision = ${svn.revision}
@@ -381,6 +381,12 @@ Alternatively, you can switch to another
                 <attribute name="Implementation-URL"
                            value="http://harmony.apache.org"/>
                 <attribute name="Implementation-Version" value="${svn.info}"/> 
+                <attribute name="Specification-Vendor"
+                           value="Sun Microsystems, Inc." />
+                <attribute name="Specification-Title"
+                           value="Java Platform API Specification" />
+                <attribute name="Specification-Version"
+                           value="${hy.specification.version}" />
                 <attribute name="X-Compile-Source-JDK"
                            value="${hy.javac.source}"/> 
                 <attribute name="X-Compile-Target-JDK"

Modified: harmony/enhanced/java/trunk/common_resources/make/svn.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/common_resources/make/svn.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/common_resources/make/svn.xml (original)
+++ harmony/enhanced/java/trunk/common_resources/make/svn.xml Wed May  5 21:29:16 2010
@@ -21,7 +21,7 @@
 
 <project name="svn-deps">
     
-    <target name="svn-info" 
+    <target name="-svn-info" 
         description="Sets global SVN properties of the workspace: 
         is.svn, svn.revision and svn.info">
         <svn-info dir="${basedir}" prefix="global"/>

Propchange: harmony/enhanced/java/trunk/drlvm/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed May  5 21:29:16 2010
@@ -1,2 +1,3 @@
+/harmony/enhanced/java/branches/mrh/drlvm:935751-941490
 /harmony/enhanced/trunk/working_vm:476396-920147
 /incubator/harmony/enhanced/trunk/working_vm:423974-476394

Modified: harmony/enhanced/java/trunk/drlvm/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/build.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/build.xml (original)
+++ harmony/enhanced/java/trunk/drlvm/build.xml Wed May  5 21:29:16 2010
@@ -180,10 +180,10 @@ Usage:
         <mkdir dir="${drlvm.deploy.dir}/include" />        
         <copy todir="${drlvm.deploy.dir}">
             <fileset dir="${hy.hdk}">
-                <include name="**" if="import.hdk"/>
-                <include name="jdk/jre/**" unless="import.hdk"/>
-                <exclude name="jdk/jre/bin/default/**" unless="import.hdk"/>
-                <exclude name="jdk/jre/bin/*hythr*" unless="import.hdk"/>
+                <include name="**" unless="skip.import.hdk"/>
+                <include name="jdk/jre/**" if="skip.import.hdk"/>
+                <exclude name="jdk/jre/bin/default/**" if="skip.import.hdk"/>
+                <exclude name="jdk/jre/bin/*hythr*" if="skip.import.hdk"/>
             </fileset>
         </copy>
     </target>
@@ -239,7 +239,7 @@ Usage:
       so irrespective of the platform, compiler or release/debug
       there's a predicable place to find the output 
       ================================================================== -->
-    <target name="deploy-canonical" if="deploy.canonical.flag">
+    <target name="deploy-canonical" unless="skip.deploy.canonical">
         <property name="canonical.deploy.dir" location="${drlvm.base.dir}/deploy" />
         <delete dir="${canonical.deploy.dir}" failonerror="false" />
         <mkdir dir="${canonical.deploy.dir}" />

Modified: harmony/enhanced/java/trunk/drlvm/make/depends.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/make/depends.properties?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/make/depends.properties (original)
+++ harmony/enhanced/java/trunk/drlvm/make/depends.properties Wed May  5 21:29:16 2010
@@ -33,7 +33,7 @@ apr.src.tgz.md5=85bcd8005153b8fa63b1e3f9
 # Ant-contrib, version 0.6 or above
 # http://sourceforge.net/project/showfiles.php?group_id=36177
 ant-contrib=${depends.jars}/ant-contrib-1.0b3/ant-contrib.zip
-ant-contrib.jar=${depends.jars}/ant-contrib-1.0b3/ant-contrib.jar
+ant-contrib.jar=${depends.jars}/ant-contrib-1.0b3/ant-contrib-1.0b3.jar
 ant-contrib.unzip.path=ant-contrib/ant-contrib-1.0b3.jar
 ant-contrib.url=http://downloads.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-bin.zip
 ant-contrib.md5=c5a75fc28cbc52f09bd43b5506978601

Modified: harmony/enhanced/java/trunk/drlvm/make/properties.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/make/properties.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/make/properties.xml (original)
+++ harmony/enhanced/java/trunk/drlvm/make/properties.xml Wed May  5 21:29:16 2010
@@ -31,6 +31,7 @@
     <condition property="hy.cfg" value="${env.BUILD_CFG}">
         <isset property="env.BUILD_CFG" />
     </condition>
+    <property name="hy.specification.version" value="1.5" />
 
     <!-- pick up cpp compiler from command line or env -->
     <condition property="hy.cpp.compiler" value="${CXX}">
@@ -98,8 +99,15 @@
         <isset property="shlib.is.linklib"/>
     </condition>
     <property name="base.test.dir" location="${drlvm.build.dir}/tests"/>
+
+    <condition property="skip.deploy.canonical" value="true">
+        <equals arg1="${deploy.canonical.flag}" arg2="false" />
+    </condition>
+    <condition property="skip.import.hdk" value="true">
+        <equals arg1="${import.hdk}" arg2="false" />
+    </condition>
     
-    <target name="drlvm-echo" depends="svn-info">
+    <target name="drlvm-echo" depends="-svn-info">
         <echo message="DRLVM build Configuration:" />
         <echo message="     Hosting Java = ${java.version} (${java.vendor})" />
         <echo message="               os = ${hy.os}" />

Modified: harmony/enhanced/java/trunk/drlvm/make/vm/gc_gen.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/make/vm/gc_gen.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/make/vm/gc_gen.xml (original)
+++ harmony/enhanced/java/trunk/drlvm/make/vm/gc_gen.xml Wed May  5 21:29:16 2010
@@ -51,7 +51,6 @@
         </condition>
         
         <path id="gc.includes">
-            <pathelement location="${drlvm.include.dir}" />
             <dirset dir="${vm.home}">
                 <include name="include" />
                 <include name="port/include" />
@@ -74,6 +73,7 @@
                 <include name="verify" />
                 <include name="finalizer_weakref" />
             </dirset>
+            <pathelement location="${drlvm.include.dir}" />
         </path>
         
         <compiler id="cpp.compiler" extends="common.cpp.compiler">

Modified: harmony/enhanced/java/trunk/drlvm/make/vm/hythr.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/make/vm/hythr.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/make/vm/hythr.xml (original)
+++ harmony/enhanced/java/trunk/drlvm/make/vm/hythr.xml Wed May  5 21:29:16 2010
@@ -32,9 +32,9 @@
         <make-native libname="hythr" type="shared">
         <compiler id="c.compiler" extends="common.c.compiler">
             <includepath>
-              <pathelement location="${drlvm.include.dir}" />
               <path refid="vm.include"/>
               <pathelement location="${vm.home}/thread/src" />
+              <pathelement location="${drlvm.include.dir}" />
               <pathelement location="${hy.hdk}/include" />
             </includepath>
 

Modified: harmony/enhanced/java/trunk/drlvm/make/vm/interpreter.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/make/vm/interpreter.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/make/vm/interpreter.xml (original)
+++ harmony/enhanced/java/trunk/drlvm/make/vm/interpreter.xml Wed May  5 21:29:16 2010
@@ -37,7 +37,6 @@
         </compile-asm>
         
         <path id="int.includes">
-            <pathelement location="${drlvm.include.dir}" />
             <dirset dir="${vm.home}">
                 <include name="include" />
                 <include name="vmcore/include" />
@@ -58,6 +57,7 @@
                 <include name="port/src/encoder/ia32_em64t" if="is.x86_64"/>
                 <include name="vmcore/src/lil/em64t/include" if="is.x86_64"/>
             </dirset>
+            <pathelement location="${drlvm.include.dir}" />
         </path>
         <depend-includes paths="int.includes"/>
         <depend-selector rebuild-flag="int.includes.uptodate" id="int.depends"/>

Modified: harmony/enhanced/java/trunk/drlvm/make/vm/jitrino.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/make/vm/jitrino.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/make/vm/jitrino.xml (original)
+++ harmony/enhanced/java/trunk/drlvm/make/vm/jitrino.xml Wed May  5 21:29:16 2010
@@ -50,10 +50,10 @@
                 <include name="vmcore/src/util/win/include" if="is.windows"/>
                 <include name="vmcore/src/util/linux/include" if="is.unix"/>
             </dirset>
-            <pathelement location="${drlvm.include.dir}" />
             <pathelement location="${vm.home}/include" />
             <pathelement location="${vm.home}/vmcore/include" />
             <pathelement location="${vm.home}/port/include" />
+            <pathelement location="${drlvm.include.dir}" />
         </path>
         <depend-includes paths="jit.includes"/>
         <depend-selector rebuild-flag="jit.includes.uptodate" id="jit.depends"/>

Modified: harmony/enhanced/java/trunk/drlvm/make/vm/verifier.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/make/vm/verifier.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/make/vm/verifier.xml (original)
+++ harmony/enhanced/java/trunk/drlvm/make/vm/verifier.xml Wed May  5 21:29:16 2010
@@ -25,9 +25,9 @@
         <init-native/>
         <make-native libname="verifier" type="static">
             <includepath>
-                <pathelement location="${drlvm.include.dir}" />
                 <pathelement location="${vm.home}/vmcore/include" />
                 <pathelement location="${vm.home}/include" />
+                <pathelement location="${drlvm.include.dir}" />
             </includepath>
             <compiler extends="common.cpp.compiler">
                 <fileset dir="${vm.home}/vmcore/src/verifier-3363">

Modified: harmony/enhanced/java/trunk/drlvm/make/vm/vmcore.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/make/vm/vmcore.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/make/vm/vmcore.xml (original)
+++ harmony/enhanced/java/trunk/drlvm/make/vm/vmcore.xml Wed May  5 21:29:16 2010
@@ -76,8 +76,6 @@
         </compile-asm>
 
         <path id="vmcore.includes">
-            <pathelement location="${drlvm.include.dir}" />
-
             <dirset dir="${vm.home}">
                 <include name="include" />
                 <include name="vmcore/include" />
@@ -98,6 +96,7 @@
                 <include name="port/src/encoder/ia32_em64t" if="is.x86_64"/>
                 <include name="vmcore/src/lil/em64t/include" if="is.x86_64"/>
             </dirset>
+            <pathelement location="${drlvm.include.dir}" />
             <pathelement location="${hy.hdk}/include" />
         </path>
         <depend-includes paths="vmcore.includes"/>

Modified: harmony/enhanced/java/trunk/drlvm/make/vm/vmi.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/make/vm/vmi.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/make/vm/vmi.xml (original)
+++ harmony/enhanced/java/trunk/drlvm/make/vm/vmi.xml Wed May  5 21:29:16 2010
@@ -26,13 +26,13 @@
         <make-native libname="vmi" type="shared">
             <compiler id="cpp.compiler" extends="common.cpp.compiler">
                 <includepath>
-                    <pathelement location="${drlvm.include.dir}" />
                     <path refid="vm.include"/>
                     <dirset dir="${vm.home}">
                         <include name="vmcore/include" />
                         <include name="vmcore/src/util/win/include" if="is.windows"/>
                         <include name="vmcore/src/util/linux/include" if="is.unix"/>
                     </dirset>
+                    <pathelement location="${drlvm.include.dir}" />
                     <pathelement location="${hy.hdk}/include" />
                 </includepath>
 

Modified: harmony/enhanced/java/trunk/drlvm/vm/gc_gen/resource/MANIFEST.MF
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/vm/gc_gen/resource/MANIFEST.MF?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/vm/gc_gen/resource/MANIFEST.MF (original)
+++ harmony/enhanced/java/trunk/drlvm/vm/gc_gen/resource/MANIFEST.MF Wed May  5 21:29:16 2010
@@ -3,4 +3,3 @@ Implementation-Title: Apache Harmony
 Implementation-Vendor: The Apache Software Foundation
 Implementation-Vendor-Id: org.apache.harmony
 Implementation-URL: http://harmony.apache.org
-Implementation-Version: 1.5

Modified: harmony/enhanced/java/trunk/drlvm/vm/vmcore/src/kernel_classes/resource/MANIFEST.MF
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/drlvm/vm/vmcore/src/kernel_classes/resource/MANIFEST.MF?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/drlvm/vm/vmcore/src/kernel_classes/resource/MANIFEST.MF (original)
+++ harmony/enhanced/java/trunk/drlvm/vm/vmcore/src/kernel_classes/resource/MANIFEST.MF Wed May  5 21:29:16 2010
@@ -1,8 +1,6 @@
 Manifest-Version: 1.0
 Specification-Title: Java Platform API Specification
-Specification-Version: 1.5
 Implementation-Title: Apache Harmony
 Implementation-Vendor: The Apache Software Foundation
 Implementation-Vendor-Id: org.apache.harmony
 Implementation-URL: http://harmony.apache.org
-Implementation-Version: 1.5

Modified: harmony/enhanced/java/trunk/ibm-v4/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/ibm-v4/build.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/ibm-v4/build.xml (original)
+++ harmony/enhanced/java/trunk/ibm-v4/build.xml Wed May  5 21:29:16 2010
@@ -21,6 +21,12 @@
         Layout IBM VME in the required format 
     </description>
 
+    <fail message="Property 'hy.hdk' is not defined">
+        <condition>
+            <not><isset property="hy.hdk" /></not>
+        </condition>
+    </fail>
+
     <!-- set the path root for the external resources  -->
     <property name="common.resources" value="../common_resources" />
     <fail>
@@ -38,8 +44,8 @@
     <property name="ibm.vme.dir" value="${hy.os}-${hy.arch}.vme" />
 
     <target name="build">
-        <mkdir dir="deploy/jdk" />
-        <copy todir="deploy/jdk">
+        <mkdir dir="${hy.hdk}/jdk" />
+        <copy todir="${hy.hdk}/jdk">
             <fileset dir="${ibm.vme.dir}" />
         </copy>
     </target>
@@ -47,7 +53,11 @@
     <target name="fetch-depends" />
 
     <target name="clean">
-        <delete dir="deploy" failonerror="false" />
+        <delete failonerror="false">
+            <fileset dir="${hy.hdk}/jdk">
+                <present targetdir="${ibm.vme.dir}"/>
+            </fileset>
+        </delete>
     </target>
 
 </project>

Modified: harmony/enhanced/java/trunk/jdktools/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/jdktools/build.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/jdktools/build.xml (original)
+++ harmony/enhanced/java/trunk/jdktools/build.xml Wed May  5 21:29:16 2010
@@ -20,20 +20,17 @@
      ====================================================================== -->
 <project name="jdktools" default="build" basedir=".">
     <description>
-    	Build jdktools
+        Build jdktools
     </description>
 
-    <import file="make/properties.xml"/>
-        
     <target name="help">
         <echo>
-Apache Harmony Ant Build
+Apache Harmony Tools Build
 
 Usage:
 
   ant build
-    Compiles the java and native code to produce a jdk in
-    "deploy/jdk".
+    Compiles the java and native code and populates the hdk.
 
   ant clean
     Removes all the files generated by a build.
@@ -47,136 +44,84 @@ Usage:
   ant doc
     Generates the javadoc.
 
+  ant fetch-depends
+    Fetches dependencies. Note: Some of Harmony's dependencies are
+    licensed under terms other than the Apache License v2.
+
   ant properties
     Display the common properties that are use in the ant build files.
 
-The 'build' and 'test' targets can be restricted to processing only
-a single module by defining the 'build.module' variable on the ant
-command line.  For example, to run only the luni tests:
+The 'build' and 'test' targets can be configured to only build/test a
+single module by setting the 'build.module' property. For example, to
+run the tests for the "jdktools" module:
 
-  ant -Dbuild.module=jdktools test
+  ant test -Dbuild.module=jdktools
 
-        </echo>
-    </target>
-    
-    <target name="rebuild" depends="clean,build"
-        description="Performs a full build - that is 'clean' then 'build'" />
+The 'test' target can further be configured to run a single test by setting
+the 'test.case' property. For example, to run a specific test in the "luni"
+module:
 
-    <target name="build" depends="build-java,build-native"
-        description="Compiles the java and native code to produce a jdk">
+  ant test -Dbuild.module=jdktools -Dtest.case=org/apache/harmony/tests/tools/javac/MainTest
+        </echo>
     </target>
 
-    <target name="clean" depends="clean-java,clean-native,clean-tests"
-            description="Removes all the files generated by a build" />
+    <property file="${user.home}/.harmony-jdktools.properties" />
+    <property name="common.resources" location="../common_resources" />
+    <import file="make/properties.xml" />
 
-    <target name="rebuild-java" depends="clean-java,build-java"
-            description="Like 'rebuild' but for java code only" />
+    <!-- import properties for snapshot targets -->
+    <import file="${hy.hdk}/build/ant/properties.xml" />
 
-    <target name="build-java" 
-            description="Compiles the java code only" >
-        <echo>
-========================================
-Building Java component archives...
-========================================
-        </echo>
-        <ant antfile="make/build-java.xml" inheritall="false" target="build">
-            <property name="hy.hdk" value="${hy.hdk}"/>
-            <property name="hy.jdk" value="${hy.jdk}"/>
-            <property name="harmony.jdktools" value="${harmony.jdktools}"/>
-            <property name="external.resources" value="${external.resources}"/>
-        </ant>
+    <!-- ================================
+	 target : rebuild
+	     
+	 builds with a clean first
+	 ================================= -->
+    <target name="rebuild" depends="clean,build"
+        description="Performs a full build - that is 'clean' then 'build'" />
+	
+    <target name="build" description="Compiles the java, natives and tests">
+        <poll-modules target="build" />
     </target>
 
-    <target name="clean-java" 
-            description="Removes the compiled java code" >
-        <echo>
-========================================
-Cleaning Java component archives...
-========================================
-        </echo>
-        <ant antfile="make/build-java.xml" inheritall="false" target="clean">
-            <property name="hy.hdk" value="${hy.hdk}"/>
-            <property name="hy.jdk" value="${hy.jdk}"/>
-            <property name="harmony.jdktools" value="${harmony.jdktools}"/>
-            <property name="external.resources" value="${external.resources}"/>
-        </ant>
+    <target name="clean"
+            description="Removes all the files generated by a build" >
+        <poll-modules target="clean" />
     </target>
 
-    <target name="rebuild-native" depends="clean-native,build-native"
-            description="Like 'rebuild' but for native code only" />
+    <target name="test" depends="clean-test-output,-test-modules"
+            description="Runs all tests" />
 
-    <target name="build-native" 
-            description="Compiles the native code only" >
-        <echo>
-========================================
-Building native libs and executables...
-========================================
-        </echo>
-        <ant antfile="make/build-native.xml" inheritall="false" target="build">
-            <property name="hy.hdk" value="${hy.hdk}"/>
-            <property name="hy.jdk" value="${hy.jdk}"/>
-            <property name="harmony.jdktools" value="${harmony.jdktools}"/>
-            <property name="external.resources" value="${external.resources}"/>
-        </ant>
+    <target name="-test-modules">
+        <poll-modules target="test" />
     </target>
 
-    <target name="clean-native"
-        description="Removes the compiled native code" >
-        <echo>
-========================================
-Cleaning native libs and executables...
-========================================
-        </echo>
-        <ant antfile="make/build-native.xml" inheritall="false" target="clean">
-            <property name="hy.hdk" value="${hy.hdk}"/>
-            <property name="hy.jdk" value="${hy.jdk}"/>
-            <property name="harmony.jdktools" value="${harmony.jdktools}"/>
-            <property name="external.resources" value="${external.resources}"/>
-        </ant>
-    </target>
-
-    <target name="clean-tests"
-        description="Removes the compiled tests and results" >
-        <echo>
-========================================
-Cleaning compiled tests and results...
-========================================
-        </echo>
-        <ant antfile="make/build-test.xml" inheritall="false" target="clean">
-            <property name="hy.hdk" value="${hy.hdk}"/>
-            <property name="hy.jdk" value="${hy.jdk}"/>
-            <property name="harmony.jdktools" value="${harmony.jdktools}"/>
-            <property name="external.resources" value="${external.resources}"/>
-        </ant>
+    <target name="clean-test-output">
+        <delete dir="${tests.output}" />
     </target>
 
-    <target name="test"
-            description="Runs all tests">
+    <target name="findbugs" depends="check-depends"
+            description="Runs FindBugs on all modules">
         <echo>
 ========================================
-Testing jdktools binaries...
+Finding bugs in all class libraries...
 ========================================
 </echo>
-        <ant antfile="make/build-test.xml" inheritall="false" target="test-all">
-            <property name="hy.hdk" value="${hy.hdk}"/>
-            <property name="hy.jdk" value="${hy.jdk}"/>
-            <property name="harmony.jdktools" value="${harmony.jdktools}"/>
-            <property name="external.resources" value="${external.resources}"/>
-        </ant>
+        <poll-modules target="findbugs" />
     </target>
 
     <target name="check-depends"
             description="Report on whether the dependencies are met">
-        <ant antfile="make/depends.xml" target="check"/>
+        <poll-modules target="check-depends" />
     </target>
 
     <target name="fetch-depends"
         description="Fetches dependencies. Note: Some of Harmony's dependencies are licensed under terms other than the Apache License v2.">
-        <ant antfile="make/depends.xml" target="fetch"/>
+        <poll-modules target="fetch-depends" />
     </target>
 
-    <target name="properties" depends="tools-echo"
-        description="Display the properties that are use in the ant build files"/>
+    <target name="properties" depends="echo"
+        description="Display the properties that are use by this build" />
 
 </project>
 

Modified: harmony/enhanced/java/trunk/jdktools/make/depends.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/jdktools/make/depends.properties?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/jdktools/make/depends.properties (original)
+++ harmony/enhanced/java/trunk/jdktools/make/depends.properties Wed May  5 21:29:16 2010
@@ -13,11 +13,14 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-icu=${depends.jars}/eclipse-ICU4J/com.ibm.icu.base-3.3.zip
+depends.jars=${depends.dir}/jars
+
+icu.dir=${depends.jars}/eclipse-ICU4J
+icu=${icu.dir}/com.ibm.icu.base-3.3.zip
 icu.url=http://archive.eclipse.org/eclipse/downloads/drops/R-3.3-200706251500/com.ibm.icu.base-3.3.zip
 icu.md5=5b8a0fc0e48431d376c7efd7be8c0f7b
 icu.unzip.path=eclipse/plugins/com.ibm.icu.base_3.6.1.v20070417.jar
-icu.jar=${depends.jars}/eclipse-ICU4J/com.ibm.icu.base_3.6.1.v20070417.jar
+icu.jar=${icu.dir}/com.ibm.icu.base_3.6.1.v20070417.jar
 
 jdt.version=3.5.1
 jdt.url.base=${harmony.standard.base}/jars/eclipse-JDT-${jdt.version}

Modified: harmony/enhanced/java/trunk/jdktools/make/properties.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/jdktools/make/properties.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/jdktools/make/properties.xml (original)
+++ harmony/enhanced/java/trunk/jdktools/make/properties.xml Wed May  5 21:29:16 2010
@@ -19,55 +19,35 @@
 
  -->
 
-<project name="Top-Level property definitions">
+<project name="Top-Level jdktools property definitions">
     <description>
         Ant file of common properties to be imported by other ant files
     </description>
     
-    <dirname property="prop.imported.basedir" file="${ant.file.Top-Level property definitions}"/>
-    <property name="jdktools.base.dir" location="${prop.imported.basedir}/.." />
-    
-    <property file="jdktools.properties"/>
-    <property file="${user.home}/jdktools.properties"/>
+    <fail message="Property 'hy.hdk' is not defined">
+        <condition>
+            <not><isset property="hy.hdk" /></not>
+        </condition>
+    </fail>
 
-    <!-- Test run property -->
-    <property name="hy.test.forkmode" value="perBatch" />
-    <property name="hy.test.vm.name" value="drl"/>
-
-    <!-- set the path root for the classlib : must be relative to the build directory -->
-    <property name="external.classlib.loc" value="${jdktools.base.dir}/../classlib/deploy" />
-    <property name="external.drlvm.loc" value="${jdktools.base.dir}/../drlvm/deploy" />
-    <property name="external.resources.loc" value="${jdktools.base.dir}/../common_resources" />
-    <property name="external.resources" location="${external.resources.loc}" />
-
-    <property name="harmony.jdktools" location="${jdktools.base.dir}"/>
-    <condition property="hy.deploy" value="${hy.hdk}">
-        <isset property="hy.hdk"/>
-    </condition>
-    <property name="hy.deploy" location="${external.drlvm.loc}"/>
-    <property name="hy.hdk" location="${external.classlib.loc}" />
-    <property name="jdktools.deploy.dir" location="${jdktools.base.dir}/deploy/jdk" />
-    <property name="jretools.deploy.dir" location="${jdktools.base.dir}/deploy/jdk/jre" />
-
-    <!-- set the path root for the external resources  -->
-    <property name="common.resources.loc" value="${jdktools.base.dir}/../common_resources" />
-    <property name="common.resources" location="${common.resources.loc}" />
-    <fail>
+    <fail message="Property 'common.resources' is not defined">
         <condition>
-            <not><available file="${common.resources}/make/properties.xml"/></not>
+            <not><isset property="common.resources" /></not>
+        </condition>
+    </fail>
+
+    <fail message="Property 'hy.hdk' doesn't seem to point to an hdk?">
+        <condition>
+            <not><available file="${hy.hdk}/build/ant/properties.xml" /></not>
+        </condition>
+    </fail>
+
+    <fail message="Property 'common.resources' is not defined">
+        <condition>
+            <not>
+                <available file="${common.resources}/make/depends.properties" />
+            </not>
         </condition>
-        Primary dependency is missing: common_resources.
-        You need to check it out from SVN repository or specify it's location:
-        ant -Dcommon.resources.loc=path
     </fail>
-    
-    <import file="${common.resources}/make/properties.xml"/>
-    <import file="${common.resources}/make/depends.xml"/>
-    
-    <property file="${jdktools.base.dir}/make/depends.properties" />
-    
-    <target name="tools-echo" depends="echo"
-            description="Display the properties defined by this ant file" >
-    </target>
 
 </project>

Modified: harmony/enhanced/java/trunk/jdktools/modules/jdktools/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/jdktools/modules/jdktools/build.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/jdktools/modules/jdktools/build.xml (original)
+++ harmony/enhanced/java/trunk/jdktools/modules/jdktools/build.xml Wed May  5 21:29:16 2010
@@ -16,23 +16,19 @@
     limitations under the License.
 -->
 
-<project name="Tools Build" default="build" basedir=".">
-    <description>Build for Tools component</description>
+<project name="JDK Tools Build" default="build" basedir=".">
+    <description>Build for JDK Tools component</description>
 
-    <!-- import common properties -->
-    <import file="${basedir}/../../make/properties.xml" />
-
-    <property name="tests.output" location="../../build/test_report" />
+    <property name="hy.module" value="jdktools" />
     <property name="hy.hdk" location="../../deploy" />
+    <import file="../../make/properties.xml" />
+    <property name="depends.dir" location="${common.resources}/depends" />
+    <import file="${hy.hdk}/build/ant/properties.xml" />
+    <import file="${hy.hdk}/build/ant/depends.xml" />
+    <property file="../../make/depends.properties" />
+    <property file="${common.resources}/make/depends.properties" />
 
-    <!-- set global properties for this build. -->
-    <xmlproperty file="make/hyproperties.xml" semanticAttributes="true" />
-
-    <!-- filename for tests exclude list -->
-    <property name="tools.exclude.file"
-              location="${hy.hdk}/build/jdktools.tools.exclude" />
-   
-    <target name="check-depends">
+    <target name="check-depends" unless="skip.java.build">
         <check-one-file src="${jdt.jdi.jar.url}"
                         dest="${jdt.jdi.jar}" />
         <check-one-file src="${jdt.jdimodel.jar.url}"
@@ -48,22 +44,20 @@
         </copy>
     </target>
     
-    <target name="fetch-depends">
+    <target name="fetch-depends" unless="skip.java.build">
         <fetch dep="jdt.jdi.jar"/>
         <fetch dep="jdt.jdimodel.jar"/>
+        <fetch dep="icu"/>
+        <fetch dep="ecj.jar"/>
         <mkdir dir="${bcel.dir}" />
         <download-one-file dest="${bcel.jar}" 
                            src="${bcel.url}" md5="${bcel.md5}"/>
     </target>
 
-    <target name="build" depends="check-depends, build-java" />
-    <target name="build-java" depends="compile-java, build-jar" />
-    <target name="build-native" />
-
-    <target name="clean" depends="clean-java" />
-    <target name="clean-native" />
+    <target name="build" unless="skip.java.build"
+            depends="check-depends,-build-jar,-copy-jars,-test-jar" />
 
-    <target name="test" depends="test-module">
+    <target name="test" depends="-test-module">
         <fail message="Some tests failed">
             <condition>
                 <or>
@@ -75,18 +69,24 @@
     </target>
 
     <!-- internal target for local and global test run sequence -->
-    <target name="test-module" depends="build-tests, prepare-exclude, run-tests" />
+    <target name="-test-module" depends="build,-run-tests" />
 
-    <target name="clean-java">
-        <echo message="Cleaning TOOLS classes" />
+    <target name="clean" depends="-clean-java,-clean-test" />
+
+    <target name="-clean-java" unless="skip.java.build">
+        <echo message="Cleaning ${hy.module} classes" />
+        <delete file="${hy.jdk}/lib/tools.jar" />
+        <delete file="${hy.jdk}/lib/tools-src.jar" />
+        <delete dir="bin/main" includeemptydirs="true" failonerror="false" />
+    </target>
 
-        <delete file="${jdktools.deploy.dir}/lib/tools.jar" />
-        <delete file="${jdktools.deploy.dir}/lib/tools-src.jar" />
-        <delete dir="bin" includeemptydirs="true" failonerror="false" />
+    <target name="-clean-test" unless="skip.test.build">
+        <delete dir="${tests.hdk.dir}" failonerror="false" />
+        <delete failonerror="false" dir="bin/test"/>
     </target>
 
-    <target name="compile-java">
-        <echo message="Compiling TOOLS classes" />
+    <target name="-compile-java" unless="skip.java.build">
+        <echo message="Compiling ${hy.module} classes" />
         <ensure-javac/>
         <mkdir dir="bin/main" />
 
@@ -94,8 +94,10 @@
                   srcdir="src/main/java"
                   destdir="bin/main">
 
+            <compilerarg line="${build.compilerarg}" />
+
             <bootclasspath>
-                <fileset dir="${hy.hdk}/jdk/jre/lib/boot">
+                <fileset dir="${hy.jdk}/jre/lib/boot">
                     <include name="**/*.jar" />
                 </fileset>
                 <fileset dir="${hy.hdk}/lib">
@@ -113,14 +115,20 @@
         </hy.javac>
     </target>
 
-    <target name="build-jar" depends="svn-info">
-        <mkdir dir="${jdktools.deploy.dir}/lib" />
+    <target name="findbugs" depends="-build-jar">
+        <run-findBugs
+            jarFile="${hy.jdk}/lib/tools.jar"
+            excludeFilter="make/findbugs-exclude-filter.xml"
+            outputFile="${findBugs.report}/${hy.module}.xml"/>
+    </target>
 
-        <hy.jar.bin destfile="${jdktools.deploy.dir}/lib/tools.jar"
-                    manifest="META-INF/MANIFEST.MF">
+    <target name="-build-jar" unless="skip.java.build"
+            depends="-svn-info,-compile-java">
+        <mkdir dir="${hy.jdk}/lib" />
 
+        <hy.jar.bin destfile="${hy.jdk}/lib/tools.jar"
+                    manifest="META-INF/MANIFEST.MF">
             <fileset dir="bin/main" />
-
             <fileset dir="src/main/java">
                 <exclude name="**/*.java" />
             </fileset>
@@ -132,99 +140,57 @@
 
         </hy.jar.bin>
 
-        <hy.jar.src destfile="${jdktools.deploy.dir}/lib/tools-src.jar">
+        <hy.jar.src destfile="${hy.jdk}/lib/tools-src.jar">
             <fileset dir="src/main/java" />
         </hy.jar.src>
     </target>
 
-    <target name="build-tests">
-        <echo message="Compiling TOOLS tests" />
-        <ensure-javac/>
-        <mkdir dir="bin/test" />
-
-        <hy.javac srcdir="src/test/java"
-                  destdir="bin/test"
-                  sourcepath=""
-                  debug="on">
-
-            <bootclasspath>
-                <fileset dir="${hy.hdk}/jdk/jre/lib/boot">
-                    <include name="**/*.jar" />
-                </fileset>
-            </bootclasspath>
-            <classpath>
-                <pathelement path="${jdktools.deploy.dir}/lib/tools.jar"/>
-                <pathelement path="${junit.jar}"/>
-            </classpath>
-            <classpath location="bin/test" />
-
-            <!-- temporarely exclude one test that breaks compilation -->
-            <exclude name="**/javah/Test02.java"/>
-        </hy.javac>
-    </target>
-
-    <target name="prepare-exclude">
-        <echo message="TOOLS exclude list: ${tools.exclude.file}" />
-        <prepare-exclude-list moduleName="tools" dir="./make"
-                             result="${tools.exclude.file}" />
+    <target name="-copy-jars" unless="skip.java.build">
+        <mkdir dir="${hy.jdk}/lib" />
+        <copy todir="${hy.jdk}/lib" flatten="true">
+            <fileset file="${ecj.jar}"/>
+        </copy>
     </target>
 
-    <target name="run-tests" depends="build-tests, prepare-exclude">
+    <target name="-test-jar" unless="skip.test.build"
+            depends="-svn-info,-compile-tests">
+        <mkdir dir="${tests.hdk.dir}" />
 
-        <property name="test.jre.home" value="${jdktools.deploy.dir}/jre" />
+        <copy file="make/run-test.xml" tofile="${tests.hdk.dir}/build.xml" />
 
-        <echo message="Running TOOLS tests" />
-        <echo message="test.jre.home=${test.jre.home}" />
-
-        <mkdir dir="${tests.output}" />
-
-        <junit fork="yes"
-                       forkmode="${hy.test.forkmode}"
-                       timeout="${hy.test.timeout}"
-                       printsummary="withOutAndErr"
-                       errorproperty="test.errors"
-                       failureproperty="test.failures"
-                       showoutput="on"
-                       dir="${tests.output}"
-                       jvm="${test.jre.home}/bin/java">
-
-            <jvmarg line="${hy.test.vmargs}" />
-
-            <classpath>
-                <pathelement path="bin/test"/>
-                <pathelement path="${jdktools.deploy.dir}/lib/tools.jar"/>
-            </classpath>
-
-            <formatter type="xml" />
-
-            <test name="${test.case}" todir="${tests.output}"
-                              if="test.case" />
-
-            <batchtest todir="${tests.output}" haltonfailure="no"
-                                   unless="test.case">
-
-                <fileset dir="src/test/java">
-                    <!-- if ${test.case}     -->
-                    <include name="${converted.tc}" if="test.case" />
+        <hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_tests.jar">
+            <fileset dir="bin/test" />
+        </hy.jar.bin>
 
-                    <!-- unless ${test.case} -->
-                    <include name="**/*Test.java" unless="test.case" />
-                    <excludesfile name="${tools.exclude.file}" unless="test.case" />
-                </fileset>
-            </batchtest>
-        </junit>
-        <antcall target="touch-failures-file" />
-        <antcall target="touch-errors-file" />
-    </target>
+        <mkdir dir="${tests.excludes.hdk.dir}"/>
+        <copy todir="${tests.excludes.hdk.dir}">
+            <fileset dir="make" includes="exclude*"/>
+            <filterchain>
+                <tokenfilter>
+                    <replaceregex pattern="\.java" replace="\.class" flags="g"/>
+                </tokenfilter>
+            </filterchain>
+        </copy>
+     </target>
 
-    <target name="touch-failures-file" if="test.failures">
-        <echo file="${tests.output}/test.failures"
-            append="true">tools${line.separator}</echo>
+    <target name="-compile-tests" unless="skip.test.build">
+        <compile-tests description="${hy.module} tests">
+            <javac-elements>
+                <src>
+                    <pathelement location="src/test/java" />
+                </src>
+                <classpath>
+                    <pathelement path="${hy.jdk}/lib/tools.jar"/>
+                </classpath>
+
+                <!-- temporarely exclude one test that breaks compilation -->
+                <exclude name="**/javah/Test02.java"/>
+            </javac-elements>
+        </compile-tests>
     </target>
 
-    <target name="touch-errors-file" if="test.errors">
-        <echo file="${tests.output}/test.errors"
-            append="true">tools${line.separator}</echo>
+    <target name="-run-tests" depends="-test-jar">
+        <ant dir="${tests.hdk.dir}" target="test-module" />
     </target>
 
 </project>

Modified: harmony/enhanced/java/trunk/jdktools/modules/jpda/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/jdktools/modules/jpda/build.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/jdktools/modules/jpda/build.xml (original)
+++ harmony/enhanced/java/trunk/jdktools/modules/jpda/build.xml Wed May  5 21:29:16 2010
@@ -19,35 +19,16 @@
 <project name="JPDA Build" default="build" basedir=".">
     <description>Build for JPDA component</description>
 
-    <!-- import common properties -->
-    <property name="tests.build.output" location="${basedir}/../../build/tests" />
-    <import file="../../make/properties.xml" />
-
-    <property name="tests.output" location="../../build/test_report" />
+    <property name="hy.module" value="jpda" />
     <property name="hy.hdk" location="../../deploy" />
-    <property name="hy.build" location="bin/main" />
-    
-    <!-- filename for tests exclude list -->
-    <property name="jpda.exclude.file" location="${hy.hdk}/build/jdktools.jpda.exclude" />
-
-    <fileset id="classes" dir="${hy.build}">
-        <or>
-            <present targetdir="src/main/java" />
-            <present targetdir="src/main/java">
-                <mapper type="regexp"
-                        from="^(.*?)(\$$[^/\\\.]*)?\.class$$"
-                        to="\1.java"/>
-            </present>
-        </or>
-    </fileset>
-
-    <target name="fetch-depends">
-        <fetch dep="jdt.jdi.jar"/>
-        <fetch dep="jdt.jdimodel.jar"/>
-        <fetch dep="icu"/>
-    </target>
+    <import file="../../make/properties.xml" />
+    <property name="depends.dir" location="${common.resources}/depends" />
+    <import file="${hy.hdk}/build/ant/properties.xml" />
+    <import file="${hy.hdk}/build/ant/depends.xml" />
+    <property file="../../make/depends.properties" />
+    <property file="${common.resources}/make/depends.properties" />
 
-    <target name="check-depends">
+    <target name="check-depends" unless="skip.java.build">
         <check-one-file src="${jdt.jdi.jar.url}"
                         dest="${jdt.jdi.jar}" />
         <check-one-file src="${jdt.jdimodel.jar.url}"
@@ -55,11 +36,18 @@
         <check-one-file src="${icu.url}" dest="${icu.jar}" />
     </target>
 
-    <target name="build" depends="check-depends, build-java, build-native" />
+    <target name="fetch-depends" unless="skip.java.build">
+        <fetch dep="jdt.jdi.jar"/>
+        <fetch dep="jdt.jdimodel.jar"/>
+        <fetch dep="icu"/>
+    </target>
 
-    <target name="clean" depends="clean-java, clean-native" />
+    <target name="build"
+            depends="check-depends,
+                     -build-jar,-copy-jars,-build-native,
+                     -test-jar" />
 
-    <target name="test" depends="test-module">
+    <target name="test" depends="-test-module">
         <fail message="Some tests failed">
             <condition>
                 <or>
@@ -70,17 +58,66 @@
         </fail>
     </target>
 
-    <!-- Build Java code -->
-    <target name="build-java" depends="compile-java, build-jar, copy-jars" />
+    <!-- internal target for local and global test run sequence -->
+    <target name="-test-module" depends="build,-run-tests" />
+
+    <target name="clean" depends="-clean-java,-clean-native,-clean-test" />
+
+    <target name="-clean-java" unless="skip.java.build">
+        <echo message="Cleaning ${hy.module} classes" />
+
+        <delete file="${hy.jdk}/lib/jdtstub.jar" />
+        <delete file="${hy.jdk}/lib/jdtstub-src.jar" />
+
+        <delete includeemptydirs="true" failonerror="false">
+            <fileset dir="bin/main" />
+            <fileset dir="bin/test" />
+        </delete>
+    </target>
+
+    <target name="-clean-native" unless="skip.native.build"
+            depends="-clean-native-common,-clean-native-windows" />
+
+    <target name="-clean-native-common" unless="skip.native.build">
+        <echo message="Cleaning ${hy.module} natives" />
+        <make dir="src/main/native/jdwp/${hy.os.family}/agent"
+              target="clean">
+            <make-elements>
+                <arg line="TOOLSDLLPATH=${hy.jdk}/jre/bin/" />
+            </make-elements>
+        </make>
+
+        <make dir="src/main/native/jdwp/${hy.os.family}/transport/dt_socket"
+              target="clean">
+            <make-elements>
+                <arg line="TOOLSDLLPATH=${hy.jdk}/jre/bin/" />
+            </make-elements>
+        </make>
+    </target>
+
+    <target name="-clean-native-windows" if="is.windows"
+            unless="skip.native.build">
+        <make dir="src/main/native/jdwp/${hy.os.family}/transport/dt_shmem"
+              target="clean">
+            <make-elements>
+                <arg line="TOOLSDLLPATH=${hy.jdk}/jre/bin/" />
+            </make-elements>
+        </make>
+    </target>
+
+    <target name="-clean-test" unless="skip.test.build">
+        <delete dir="${tests.hdk.dir}" failonerror="false" />
+        <delete failonerror="false" dir="bin/test"/>
+    </target>
 
-    <target name="compile-java">
-        <echo message="Compiling JPDA classes" />
+    <target name="-compile-java" unless="skip.java.build">
+        <echo message="Compiling ${hy.module} classes" />
         <ensure-javac/>
-        <mkdir dir="${hy.build}" />
+        <mkdir dir="bin/main" />
 
         <hy.javac sourcepath=""
                srcdir="src/main/java"
-               destdir="${hy.build}">
+               destdir="bin/main">
 
             <!-- HDK class library -->
             <classpath>
@@ -98,221 +135,101 @@
     </target>
 
     <!-- create jdtstub.jar to resolve JDI implementation dependency -->
-    <target name="build-jar" depends="svn-info">
-        <mkdir dir="${jdktools.deploy.dir}/lib" />
+    <target name="-build-jar" unless="skip.java.build"
+            depends="-svn-info,-compile-java">
+        <mkdir dir="${hy.jdk}/lib" />
 
-        <hy.jar.bin destfile="${jdktools.deploy.dir}/lib/jdtstub.jar"
+        <hy.jar.bin destfile="${hy.jdk}/lib/jdtstub.jar"
                     manifest="META-INF/MANIFEST.MF">
-            <fileset refid="classes" />
+            <fileset dir="bin/main" />
         </hy.jar.bin>
 
-        <hy.jar.src destfile="${jdktools.deploy.dir}/lib/jdtstub-src.jar">
+        <hy.jar.src destfile="${hy.jdk}/lib/jdtstub-src.jar">
             <fileset dir="src/main/java" />
         </hy.jar.src>
     </target>
 
-    <!-- copy all required jars with JDI implementation and dependent classes -->
-    <target name="copy-jars">
-        <mkdir dir="${jdktools.deploy.dir}/lib" />
-        <copy todir="${jdktools.deploy.dir}/lib" flatten="true">
+    <!-- copy all required jars with JDI implementation and dependent
+         classes -->
+    <target name="-copy-jars" unless="skip.java.build">
+        <mkdir dir="${hy.jdk}/lib" />
+        <copy todir="${hy.jdk}/lib" flatten="true">
             <fileset file="${icu.jar}"/>
             <fileset file="${jdt.jdimodel.jar}"/>
         </copy>
     </target>
 
     <!-- Build native code -->
-    <target name="build-native"
+    <target name="-build-native" unless="skip.native.build"
             depends="-build-native-common,-build-native-windows" />
 
-    <target name="-build-native-common">
+    <target name="-build-native-common" unless="skip.native.build">
         
-        <echo message="Compiling JPDA natives" />
+        <echo message="Compiling ${hy.module} natives" />
 
         <!-- Build agent shared lib -->
         <make dir="src/main/native/jdwp/${hy.os.family}/agent">
             <make-elements>
-                <arg line="TOOLSDLLPATH=${jdktools.deploy.dir}/jre/bin/" />
+                <arg line="TOOLSDLLPATH=${hy.jdk}/jre/bin/" />
             </make-elements>
         </make>
         
         <!-- Build socket transport shared lib -->
         <make dir="src/main/native/jdwp/${hy.os.family}/transport/dt_socket">
             <make-elements>
-                <arg line="TOOLSDLLPATH=${jdktools.deploy.dir}/jre/bin/" />
+                <arg line="TOOLSDLLPATH=${hy.jdk}/jre/bin/" />
             </make-elements>
         </make>
     </target>
 
-    <target name="-build-native-windows" if="is.windows">
+    <target name="-build-native-windows" if="is.windows"
+            unless="skip.native.build">
         <!-- Build shared memory transport shared lib on Windows -->
         <make dir="src/main/native/jdwp/${hy.os.family}/transport/dt_shmem">
             <make-elements>
-                <arg line="TOOLSDLLPATH=${jdktools.deploy.dir}/jre/bin/" />
+                <arg line="TOOLSDLLPATH=${hy.jdk}/jre/bin/" />
             </make-elements>
         </make>
 
     </target>
 
-    <!-- internal target for local and global test run sequence -->
-    <target name="test-module" depends="build-tests, prepare-exclude, run-tests" />
-
-    <!-- Clean Java -->
-    <target name="clean-java">
-        <echo message="Cleaning JPDA classes" />
-
-        <delete file="${jdktools.deploy.dir}/lib/jdtstub.jar" />
-        <delete file="${jdktools.deploy.dir}/lib/jdtstub-src.jar" />
+    <target name="-test-jar" unless="skip.test.build"
+            depends="-svn-info,-compile-tests">
+        <mkdir dir="${tests.hdk.dir}" />
 
-        <delete includeemptydirs="true" failonerror="false">
-            <!--fileset refid="classes" /-->
-            <fileset dir="${hy.build}" />
-            <fileset dir="${tests.build.output}/classes" />
-        </delete>
-    </target>
+        <copy file="make/run-test.xml" tofile="${tests.hdk.dir}/build.xml" />
 
-    <!-- Clean natives -->
-    <target name="clean-native"
-            depends="-clean-native-common,-clean-native-windows" />
-
-    <target name="-clean-native-common">
-        <echo message="Cleaning JPDA natives" />
-        <make dir="src/main/native/jdwp/${hy.os.family}/agent"
-              target="clean">
-            <make-elements>
-                <arg line="TOOLSDLLPATH=${jdktools.deploy.dir}/jre/bin/" />
-            </make-elements>
-        </make>
-
-        <make dir="src/main/native/jdwp/${hy.os.family}/transport/dt_socket"
-              target="clean">
-            <make-elements>
-                <arg line="TOOLSDLLPATH=${jdktools.deploy.dir}/jre/bin/" />
-            </make-elements>
-        </make>
-    </target>
-
-    <target name="-clean-native-windows" if="is.windows">
-        <make dir="src/main/native/jdwp/${hy.os.family}/transport/dt_shmem"
-              target="clean">
-            <make-elements>
-                <arg line="TOOLSDLLPATH=${jdktools.deploy.dir}/jre/bin/" />
-            </make-elements>
-        </make>
-    </target>
-
-    <!-- Compile JDWP tests always with debug info included -->
-    <target name="build-tests" >
-        <echo message="Compiling JPDA tests" />
-        <ensure-javac/>
-        <mkdir dir="${tests.build.output}/classes" />
-        <hy.javac
-            srcdir="src/test/java"
-            destdir="${tests.build.output}/classes"
-            sourcepath=""
-            debug="on">
-
-            <!-- HDK class library -->
-            <classpath>
-                <fileset dir="${hy.hdk}/jdk/jre/lib/boot">
-                    <include name="**/*.jar" />
-                    <exclude name="**/*-src.jar" />
-                </fileset>
-            </classpath>
-            
-            <classpath>
-                <pathelement path="${tests.build.output}/classes"/>
-                <pathelement path="${junit.jar}"/>
-            </classpath>
-        </hy.javac>
-    </target>
-
-    <target name="prepare-exclude">
-        <echo message="JPDA exclude list: ${jpda.exclude.file}" />
-        <prepare-exclude-list moduleName="jpda" dir="./make"
-                             result="${jpda.exclude.file}" />
-    </target>
-
-    <target name="run-tests" depends="build-tests, prepare-exclude">
-
-        <property name="test.jre.home" value="${jdktools.deploy.dir}/jre" />
-        <property name="test.jre.jvm" value="${test.jre.home}/bin/java" />
-        <property name="test.debugger.jvm" value="${test.jre.jvm}" />
-        <property name="test.debuggee.jvm" value="${test.jre.jvm}" />
-	
-        <echo message="Running JPDA tests" />
-        <echo message="  Debugger JVM=${test.debugger.jvm}" />
-        <echo message="  Debuggee JVM=${test.debuggee.jvm}" />
-
-        <mkdir dir="${tests.output}" />
-
-        <junit fork="yes"
-                       forkmode="${hy.test.forkmode}"
-                       timeout="${hy.test.timeout}"
-                       printsummary="withOutAndErr"
-                       errorproperty="test.errors"
-                       failureproperty="test.failures"
-                       showoutput="off"
-                       dir="${tests.output}"
-                       jvm="${test.debugger.jvm}">
-
-            <!-- JVM arguments for debugger process -->
-            <jvmarg line="${hy.test.vmargs}" />
-            
-            <!-- JVM path and arguments for debuggee process -->
-            <jvmarg value="-Djpda.settings.debuggeeJavaPath=${test.debuggee.jvm}" />
-            <jvmarg value="-Djpda.settings.debuggeeVMExtraOptions=${hy.test.vmargs}" />
-
-            <classpath>
-                <pathelement path="${tests.build.output}/classes"/>
-            </classpath>
-
-            <formatter type="xml" />
-
-            <test name="${test.case}" todir="${tests.output}" if="test.case" />
-
-            <!-- short running tests-->
-            <batchtest todir="${tests.output}" haltonfailure="off" unless="test.case">
-
-                <fileset dir="src/test/java">
-                    <!-- if ${test.case}     -->
-                    <include name="${converted.tc}" if="test.case" />
-
-                    <!-- unless ${test.case} -->
-                    <include name="**/*Test.java" unless="test.case" />
-                    <exclude name="**/org/apache/harmony/jpda/tests/jdwp/MultiSession/*Test.java" unless="test.case" />
-                    <exclude name="**/org/apache/harmony/jpda/tests/jdwp/ThreadReference/StopTest.java" unless="test.case" />
-                    <exclude name="**/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/HoldEventsTest.java" unless="test.case" />
-                    <excludesfile name="${jpda.exclude.file}" unless="test.case" />
-                </fileset>
-            </batchtest>
-
-            <!-- long running tests-->
-            <batchtest todir="${tests.output}" haltonfailure="off" unless="test.case">
-                <fileset dir="src/test/java">
-                    <!-- if ${test.case}     -->
-                    <include name="${converted.tc}" if="test.case" />
-
-                    <!-- unless ${test.case} -->
-                    <include name="**/org/apache/harmony/jpda/tests/jdwp/MultiSession/*Test.java" unless="test.case" />
-                    <include name="**/org/apache/harmony/jpda/tests/jdwp/ThreadReference/StopTest.java" unless="test.case" />
-                    <include name="**/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/HoldEventsTest.java" unless="test.case" />
-                    <excludesfile name="${jpda.exclude.file}" unless="test.case" />
-                </fileset>
-            </batchtest>
-        </junit>
-
-        <antcall target="touch-failures-file" />
-        <antcall target="touch-errors-file" />
+        <hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_tests.jar">
+            <fileset dir="bin/test" />
+        </hy.jar.bin>
+ 
+        <mkdir dir="${tests.excludes.hdk.dir}"/>
+        <copy todir="${tests.excludes.hdk.dir}">
+            <fileset dir="make" includes="exclude*"/>
+            <filterchain>
+                <tokenfilter>
+                    <replaceregex pattern="\.java" replace="\.class" flags="g"/>
+                </tokenfilter>
+            </filterchain>
+        </copy>
     </target>
 
-    <target name="touch-failures-file" if="test.failures">
-        <echo file="${tests.output}/test.failures"
-            append="true">jpda${line.separator}</echo>
+    <target name="-compile-tests" unless="skip.test.build">
+        <compile-tests description="${hy.module} tests">
+            <javac-elements>
+                <src>
+                    <pathelement location="src/test/java" />
+                </src>
+                <classpath>
+                    <pathelement path="${hy.jdk}/lib/tools.jar"/>
+                </classpath>
+                <!-- TOFIX: hy.javac debug="on" ? -->
+            </javac-elements>
+        </compile-tests>
     </target>
 
-    <target name="touch-errors-file" if="test.errors">
-        <echo file="${tests.output}/test.errors"
-            append="true">jpda${line.separator}</echo>
+    <target name="-run-tests" depends="-test-jar">
+        <ant dir="${tests.hdk.dir}" target="test-module" />
     </target>
 
 </project>

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/.classpath
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/.project
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/.settings/org.eclipse.jdt.core.prefs
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/.settings/org.eclipse.jdt.ui.prefs
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/META-INF/MANIFEST.MF
            ('svn:mergeinfo' removed)

Modified: harmony/enhanced/java/trunk/jdktools/modules/jretools/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/jdktools/modules/jretools/build.xml?rev=941503&r1=941502&r2=941503&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/jdktools/modules/jretools/build.xml (original)
+++ harmony/enhanced/java/trunk/jdktools/modules/jretools/build.xml Wed May  5 21:29:16 2010
@@ -16,27 +16,21 @@
     limitations under the License.
 -->
 
-<project name="Tools Build" default="build" basedir=".">
-    <description>Build for Tools component</description>
+<project name="JRE Tools Build" default="build" basedir=".">
+    <description>Build for JRE Tools component</description>
 
-    <!-- import common properties -->
-    <import file="${basedir}/../../make/properties.xml" />
-
-    <property name="tests.output" location="../../build/test_report" />
+    <property name="hy.module" value="jretools" />
     <property name="hy.hdk" location="../../deploy" />
-
-    <!-- filename for tests exclude list -->
-    <property name="tools.exclude.file"
-              location="${hy.hdk}/build/jretools.tools.exclude" />
+    <import file="../../make/properties.xml" />
+    <property name="depends.dir" location="${common.resources}/depends" />
+    <import file="${hy.hdk}/build/ant/properties.xml" />
+    <import file="${hy.hdk}/build/ant/depends.xml" />
+    <property file="../../make/depends.properties" />
+    <property file="${common.resources}/make/depends.properties" />
     
-    <target name="build" depends="build-java" />
-    <target name="build-java" depends="compile-java, build-jar" />
-    <target name="build-native" />
-
-    <target name="clean" depends="clean-java" />
-    <target name="clean-native" />
+    <target name="build" depends="-build-jar,-test-jar" />
 
-    <target name="test" depends="test-module">
+    <target name="test" depends="-test-module">
         <fail message="Some tests failed">
             <condition>
                 <or>
@@ -48,18 +42,23 @@
     </target>
 
     <!-- internal target for local and global test run sequence -->
-    <target name="test-module" depends="build-tests, prepare-exclude, run-tests" />
+    <target name="-test-module" depends="build,-run-tests" />
 
-    <target name="clean-java">
-        <echo message="Cleaning TOOLS classes" />
+    <target name="clean" depends="-clean-java,-clean-test" />
+
+    <target name="-clean-java" unless="skip.java.build">
+        <delete file="${hy.jre}/lib/tools.jar" />
+        <delete file="${hy.jre}/lib/tools-src.jar" />
+        <delete dir="bin/main" includeemptydirs="true" failonerror="false" />
+    </target>
 
-        <delete file="${jretools.deploy.dir}/lib/tools.jar" />
-        <delete file="${jretools.deploy.dir}/lib/tools-src.jar" />
-        <delete dir="bin" includeemptydirs="true" failonerror="false" />
+    <target name="-clean-test" unless="skip.test.build">
+        <delete dir="${tests.hdk.dir}" failonerror="false" />
+        <delete failonerror="false" dir="bin/test"/>
     </target>
 
-    <target name="compile-java">
-        <echo message="Compiling TOOLS classes" />
+    <target name="-compile-java" unless="skip.java.build">
+        <echo message="Compiling ${hy.module} classes" />
         <ensure-javac/>
         <mkdir dir="bin/main" />
 
@@ -67,8 +66,10 @@
                srcdir="src/main/java"
                destdir="bin/main">
 
+            <compilerarg line="${build.compilerarg}" />
+
             <bootclasspath>
-                <fileset dir="${hy.hdk}/jdk/jre/lib/boot">
+                <fileset dir="${hy.jdk}/jre/lib/boot">
                     <include name="**/*.jar" />
                 </fileset>
                 <fileset dir="${hy.hdk}/lib">
@@ -78,111 +79,66 @@
         </hy.javac>
     </target>
 
-    <target name="build-jar" depends="svn-info">
-        <mkdir dir="${jretools.deploy.dir}/lib" />
+    <target name="findbugs" depends="-build-jar">
+        <run-findBugs
+            jarFile="${hy.jre}/lib/tools.jar"
+            excludeFilter="make/findbugs-exclude-filter.xml"
+            outputFile="${findBugs.report}/${hy.module}.xml"/>
+    </target>
+
+    <target name="-build-jar" unless="skip.java.build"
+            depends="-svn-info,-compile-java">
+        <mkdir dir="${hy.jre}/lib" />
 
-        <hy.jar.bin destfile="${jretools.deploy.dir}/lib/tools.jar"
+        <hy.jar.bin destfile="${hy.jre}/lib/tools.jar"
              manifest="META-INF/MANIFEST.MF">
             <fileset dir="bin/main" />
-
             <fileset dir="src/main/java">
                 <exclude name="**/*.java" />
             </fileset>
         </hy.jar.bin>
 
-        <hy.jar.src destfile="${jretools.deploy.dir}/lib/tools-src.jar">
+        <hy.jar.src destfile="${hy.jre}/lib/tools-src.jar">
             <fileset dir="src/main/java" />
         </hy.jar.src>
     </target>
 
-    <target name="build-tests">
-        <echo message="Compiling TOOLS tests" />
-        <ensure-javac/>
-        <mkdir dir="bin/test" />
-
-        <hy.javac srcdir="src/test/java"
-                  destdir="bin/test"
-                  sourcepath=""
-                  debug="on">
-
-            <bootclasspath>
-                <fileset dir="${hy.hdk}/jdk/jre/lib/boot">
-                    <include name="**/*.jar" />
-                </fileset>
-            </bootclasspath>
-            <classpath>
-                <pathelement path="${jretools.deploy.dir}/lib/tools.jar"/>
-                <pathelement path="${junit.jar}"/>
-            </classpath>
-            <classpath location="bin/test" />
-
-            <!-- temporarely exclude one test that breaks compilation -->
-            <exclude name="**/javah/Test02.java"/>
-        </hy.javac>
-    </target>
-
-    <target name="prepare-exclude">
-        <echo message="TOOLS exclude list: ${tools.exclude.file}" />
-        <prepare-exclude-list moduleName="tools" dir="./make"
-                             result="${tools.exclude.file}" />
-    </target>
-
-    <target name="run-tests" depends="build-tests, prepare-exclude">
-
-        <property name="test.jre.home" value="${jretools.deploy.dir}" />
-
-        <echo message="Running TOOLS tests" />
-        <echo message="test.jre.home=${test.jre.home}" />
-
-        <mkdir dir="${tests.output}" />
-
-        <junit fork="yes"
-                       forkmode="${hy.test.forkmode}"
-                       timeout="${hy.test.timeout}"
-                       printsummary="withOutAndErr"
-                       errorproperty="test.errors"
-                       failureproperty="test.failures"
-                       showoutput="on"
-                       dir="${tests.output}"
-                       jvm="${test.jre.home}/bin/java">
+    <target name="-test-jar" unless="skip.test.build"
+            depends="-svn-info,-compile-tests">
+        <mkdir dir="${tests.hdk.dir}" />
 
-            <jvmarg line="${hy.test.vmargs}" />
+        <copy file="make/run-test.xml" tofile="${tests.hdk.dir}/build.xml" />
 
-            <classpath>
-                <pathelement path="bin/test"/>
-                <pathelement path="${jretools.deploy.dir}/lib/tools.jar"/>
-            </classpath>
-
-            <formatter type="xml" />
-
-            <test name="${test.case}" todir="${tests.output}"
-                              if="test.case" />
-
-            <batchtest todir="${tests.output}" haltonfailure="no"
-                                   unless="test.case">
-
-                <fileset dir="src/test/java">
-                    <!-- if ${test.case}     -->
-                    <include name="${converted.tc}" if="test.case" />
-
-                    <!-- unless ${test.case} -->
-                    <include name="**/*Test.java" unless="test.case" />
-                    <excludesfile name="${tools.exclude.file}" unless="test.case" />
-                </fileset>
-            </batchtest>
-        </junit>
-        <antcall target="touch-failures-file" />
-        <antcall target="touch-errors-file" />
-    </target>
+        <hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_tests.jar">
+            <fileset dir="bin/test" />
+        </hy.jar.bin>
 
-    <target name="touch-failures-file" if="test.failures">
-        <echo file="${tests.output}/test.failures"
-            append="true">tools${line.separator}</echo>
+        <mkdir dir="${tests.excludes.hdk.dir}"/>
+        <copy todir="${tests.excludes.hdk.dir}">
+            <fileset dir="make" includes="exclude*"/>
+            <filterchain>
+                <tokenfilter>
+                    <replaceregex pattern="\.java" replace="\.class" flags="g"/>
+                </tokenfilter>
+            </filterchain>
+        </copy>
+    </target>
+
+    <target name="-compile-tests" unless="skip.test.build">
+        <compile-tests description="${hy.module} tests">
+            <javac-elements>
+                <src>
+                    <pathelement location="src/test/java" />
+                </src>
+                <classpath>
+                    <pathelement path="${hy.jre}/lib/tools.jar"/>
+                </classpath>
+            </javac-elements>
+        </compile-tests>
     </target>
 
-    <target name="touch-errors-file" if="test.errors">
-        <echo file="${tests.output}/test.errors"
-            append="true">tools${line.separator}</echo>
+    <target name="-run-tests" depends="-test-jar">
+        <ant dir="${tests.hdk.dir}" target="test-module" />
     </target>
 
 </project>

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/build.xml
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/internal/nls/Messages.java
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/internal/nls/messages.properties
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/keytool/ArgumentsParser.java
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/keytool/CRLManager.java
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/keytool/CSRGenerator.java
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/keytool/CertChainVerifier.java
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/keytool/CertExporter.java
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/keytool/CertImporter.java
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/keytool/CertReader.java
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/keytool/Command.java
            ('svn:mergeinfo' removed)

Propchange: harmony/enhanced/java/trunk/jdktools/modules/jretools/src/main/java/org/apache/harmony/jretools/keytool/EntryManager.java
            ('svn:mergeinfo' removed)



Mime
View raw message