Author: mturk
Date: Mon Apr 13 09:50:38 2009
New Revision: 764384

URL: http://svn.apache.org/viewvc?rev=764384&view=rev
Log:
Add -d64 targets. This can probably be made via some property
but then there are VM's that don't understand -dNN options

Modified:
    commons/sandbox/runtime/trunk/build.xml

Modified: commons/sandbox/runtime/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/build.xml?rev=764384&r1=764383&r2=764384&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/build.xml (original)
+++ commons/sandbox/runtime/trunk/build.xml Mon Apr 13 09:50:38 2009
@@ -276,6 +276,21 @@
     </target>
 
     <!-- =================================================================== 
-->
+    <!-- Junit tests for 64-bit JVM                                          
-->
+    <!-- =================================================================== 
-->
+    <target name="test64" depends="tests">
+        <echo message="Running Commons Runtime package tests ..."/>
+        <java dir="${test.dir}" classname="${test.entry}" fork="yes"
+              failonerror="${test.failonerror}">
+            <classpath refid="test.classpath"/>
+            <env key="PATH" 
path="${runtime.library.path}${path.separator}${java.library.path}"/>
+            <env key="Path" 
path="${runtime.library.path}${path.separator}${java.library.path}"/>
+            <jvmarg value="-Djava.library.path=${runtime.library.path}"/>
+            <jvmarg value="-d64"/>
+        </java>
+    </target>
+
+    <!-- =================================================================== 
-->
     <!-- Run Example                                                         
-->
     <!-- =================================================================== 
-->
     <target name="run" depends="examples">
@@ -290,5 +305,21 @@
             <jvmarg value="-Djava.library.path=${runtime.library.path}"/>
         </java>
     </target>
+    <!-- =================================================================== 
-->
+    <!-- Run Example with 64-bit JVM                                         
-->
+    <!-- =================================================================== 
-->
+    <target name="run64" depends="examples">
+        <echo message="Running Commons Runtime package example ${example} 
..."/>
+        <java dir="${examples.dir}"
+              classname="org.apache.commons.runtime.${example}"
+              fork="yes"
+              failonerror="${test.failonerror}">
+            <classpath refid="examples.classpath"/>
+            <env key="PATH" 
path="${runtime.library.path}${path.separator}${java.library.path}"/>
+            <env key="Path" 
path="${runtime.library.path}${path.separator}${java.library.path}"/>
+            <jvmarg value="-Djava.library.path=${runtime.library.path}"/>
+            <jvmarg value="-d64"/>
+        </java>
+    </target>
 
 </project>


Reply via email to