6774710: spp.sh used by genBasic.sh/genCopyDirectMemory.sh
authorsherman
Tue, 25 Nov 2008 10:09:26 -0800
changeset 1633 02413b195191
parent 1632 79700ce7c059
child 1634 3871c2046043
6774710: spp.sh used by genBasic.sh/genCopyDirectMemory.sh Summary: update the scripts to use java version of spp Reviewed-by: alanb
jdk/test/java/nio/Buffer/genBasic.sh
jdk/test/java/nio/Buffer/genCopyDirectMemory.sh
--- a/jdk/test/java/nio/Buffer/genBasic.sh	Tue Nov 25 10:17:00 2008 -0500
+++ b/jdk/test/java/nio/Buffer/genBasic.sh	Tue Nov 25 10:09:26 2008 -0800
@@ -23,10 +23,10 @@
 # have any questions.
 #
 
-SPP='sh ../../../../make/java/nio/spp.sh'
+javac -d . ../../../../make/tools/src/build/tools/spp/Spp.java > Spp.java
 
 gen() {
-  $SPP -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3 <Basic-X.java >Basic$2.java
+    java build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3 <Basic-X.java >Basic$2.java
 }
 
 gen byte Byte Byte
@@ -36,3 +36,5 @@
 gen long Long Long
 gen float Float Float
 gen double Double Double
+
+rm -rf build
--- a/jdk/test/java/nio/Buffer/genCopyDirectMemory.sh	Tue Nov 25 10:17:00 2008 -0500
+++ b/jdk/test/java/nio/Buffer/genCopyDirectMemory.sh	Tue Nov 25 10:09:26 2008 -0800
@@ -23,10 +23,10 @@
 # have any questions.
 #
 
-SPP='sh ../../../../make/java/nio/spp.sh'
+javac -d . ../../../../make/tools/src/build/tools/spp/Spp.java > Spp.java
 
 gen() {
-  $SPP -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3<CopyDirect-X-Memory.java >CopyDirect$2Memory.java
+    java  build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3<CopyDirect-X-Memory.java >CopyDirect$2Memory.java
 }
 
 gen byte Byte Byte
@@ -37,3 +37,4 @@
 gen float Float Float
 gen double Double Double
 
+rm -rf build