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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.