chiark / gitweb /
invoke std java for control panel via jre directory 0.9.4
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 25 Aug 2010 21:58:52 +0000 (22:58 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 25 Aug 2010 21:58:52 +0000 (22:58 +0100)
jpctb

diff --git a/jpctb b/jpctb
index 14b05d0..600bf14 100755 (executable)
--- a/jpctb
+++ b/jpctb
@@ -152,12 +152,14 @@ linkfarm="$jtmp/linkfarm"
 extdir="$jtmp/ext"
 
 export JPCTB_JRE="$javadir/$jreleaf"
+realjava="$JPCTB_JRE/bin/java"
 
 #---------- confirm for the user which paths we're using ----------
 
 cat <<END
-   java:         "$javadir"
+   java dir.:    "$javadir"
    JRE:          "$JPCTB_JRE"
+   primary java: "$realjava"
    PCTB jars:    "$srcjardir"
    jpctb tmpdir: "$jtmp"
 END
@@ -167,7 +169,7 @@ END
 if $check_only; then echo "Check successful."; exit 0; fi
 
 set +e
-$setup_only_simulate "$javadir/bin/java" \
+$setup_only_simulate "$realjava" \
  -Dcom.tedpearson.ypp.market.controlpanel.exitstatus=12 \
  -jar "$srcjardir/PCTB-ControlPanel.jar"
 rc=$?