SF.net SVN: jikesrvm:[15771] rvmroot/trunk/bin/test-mmtk

View: New views
1 Messages — Rating Filter:   Alert me  

SF.net SVN: jikesrvm:[15771] rvmroot/trunk/bin/test-mmtk

by rgarner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 15771
          http://jikesrvm.svn.sourceforge.net/jikesrvm/?rev=15771&view=rev
Author:   rgarner
Date:     2009-08-28 01:47:25 +0000 (Fri, 28 Aug 2009)

Log Message:
-----------
Make less platform-dependent

Modified Paths:
--------------
    rvmroot/trunk/bin/test-mmtk

Modified: rvmroot/trunk/bin/test-mmtk
===================================================================
--- rvmroot/trunk/bin/test-mmtk 2009-08-20 00:05:22 UTC (rev 15770)
+++ rvmroot/trunk/bin/test-mmtk 2009-08-28 01:47:25 UTC (rev 15771)
@@ -89,6 +89,12 @@
 fi
 mkdir -p $RESULTS
 
+if [ ! -z "$JAVA_HOME" ]; then
+  JAVA=$JAVA_HOME/bin/java
+else
+  JAVA=java
+fi
+
 for plan in $plans
 do
   planClass=$(classForPlan $plan)
@@ -102,8 +108,8 @@
       scriptopts=
     fi
     (
-      echo /opt/jdk1.6.0/bin/java ${jvm_opts} -jar target/mmtk/mmtk-harness.jar $script plan=$plan $opts $scriptopts;
-      /opt/jdk1.6.0/bin/java ${jvm_opts} -jar target/mmtk/mmtk-harness.jar $script plan=$planClass $opts $scriptopts
+      echo $JAVA ${jvm_opts} -jar target/mmtk/mmtk-harness.jar $script plan=$plan $opts $scriptopts;
+      $JAVA ${jvm_opts} -jar target/mmtk/mmtk-harness.jar $script plan=$planClass $opts $scriptopts
     ) &> ${RESULTS}/temp.out
     if [ $? == 0 ]
     then


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jikesrvm-commits mailing list
Jikesrvm-commits@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-commits