Ignore:
Timestamp:
2021-10-23T17:13:42+13:00 (2 years ago)
Author:
davidb
Message:

Scripts updated to add in the jar files needed to support Java's jce.jar extension.

Location:
main/trunk/release-kits
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/bin/rk

    r35627 r35673  
    4747export ANT_OPTS=-Xmx1024M
    4848
    49 # set JAVACFLAGS (used in the relevant javac lines in our Makefiles) so that any compiled Java code
    50 # is backwards compatible with Java v1.6
    5149
    52 # Note: Given the way autoconf uses 'eval' to test javac, then the usual technique of double-quoting
    53 #       (e.g.) the bootclasspath directory to project against spaces *won't* *work* as it is not passed
    54 #       to a shell environment to be interpretted first. 
    55 #       Instead, we result to backlash escaping any spaces
    56 export RK_HOME_BACKSLASH_ESCAPED=`echo $RK_HOME | sed 's/ /\\\\ /g'`
    57 
    58 export JAVACFLAGS="-source 1.8 -target 1.8 -bootclasspath $RK_HOME_BACKSLASH_ESCAPED/shared/core/java-rt/rt-openjdk8.jar -extdirs ''"
     50if [ "x$JAVACFLAGS" = "x" ] ; then
     51    echo "****" >&2
     52    echo "Warning: Expected to have JAVACFLAGS set.  Have your sourced rk3-setup.bassh?" >&2
     53    echo "****" >&2
     54    echo "Sleeping for 5 seconds then continuing, unless ^C is pressed" >&2
     55    sleep 5
     56fi
    5957
    6058#create the command
  • main/trunk/release-kits/bin/rk.bat

    r35622 r35673  
    1111:: set JAVACFLAGS (used in the relevant javac lines in our win32.mak/Makefiles) so that any compiled Java code
    1212:: is backwards compatible with Java v1.6
     13echo ****** Setting JAVACFLAGS in rk.bat
     14echo ****** Need to update the script so it is done through rk-setup.bat
    1315set JAVACFLAGS=-source 1.8 -target 1.8 -bootclasspath "%RK_HOME%\shared\core\java-rt\rt-openjdk8.jar" -extdirs ""
    1416
  • main/trunk/release-kits/rk-setup.bash

    r35634 r35673  
    77fi
    88
     9# https://stackoverflow.com/questions/59895/how-can-i-get-the-source-directory-of-a-bash-script-from-within-the-script-itsel
     10# SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
     11
    912export RK_HOME="`pwd`"
    1013export PATH="$RK_HOME/bin":$PATH
     
    1215echo "Set RK_HOME and added RK_HOME/bin into PATH"
    1316
    14 export RK_HOME_BACKSLASH_ESCAPED=`echo $RK_HOME | sed 's/ /\\\\ /g'`
    1517
    16 export JAVACFLAGS="-source 1.8 -target 1.8 -bootclasspath $RK_HOME_BACKSLASH_ESCAPED/shared/core/java-rt/rt-openjdk8.jar -extdirs ''"
     18# Set JAVACFLAGS (used in the relevant javac lines in our Makefiles)
     19# so that any compiled Java code is backwards compatible with Java v1.8
     20
     21# Note: Given the way autoconf/configure uses 'eval' to test for
     22#       javac, then the usual technique of double-quoting (e.g.) the
     23#       bootclasspath directory to project against spaces *doesn't*
     24#       *work* as in an eval it is not passed to a shell environment
     25#       to be interpretted first.  The main outcome of all of this
     26#       is that we need to resort to backlash escaping any spaces
     27#       to keep things on track
     28
     29# Given the way the bootclasspath developed to needing multiple jar
     30# files, no longer use RK_HOME_BACKSLASH_ESCAPED.  But the
     31# principle still applies
     32
     33##export RK_HOME_BACKSLASH_ESCAPED=`echo $RK_HOME | sed 's/ /\\\\ /g'`
     34
     35jrt_home_dir="$RK_HOME/shared/core/java-rt"
     36
     37rt_jar="$jrt_home_dir/rt-openjdk8.jar"
     38jce_jars="$jrt_home_dir/jce1_2_2.jar:$jrt_home_dir/local_policy.jar:$jrt_home_dir/US_export_policy.jar:$jrt_home_dir/sunjce_provider.jar"
     39
     40bootclasspath="$rt_jar:$jce_jars"
     41bootclasspath_backslash_escaped=`echo $bootclasspath | sed 's/ /\\\\ /g'`
     42
     43export JAVACFLAGS="-source 1.8 -target 1.8 -bootclasspath $bootclasspath_backslash_escaped -extdirs ''"
    1744
    1845echo "Set JAVACFLAGS to compile for source, and to target, 1.8"
Note: See TracChangeset for help on using the changeset viewer.