Ignore:
Timestamp:
2021-10-13T14:07:12+13:00 (3 years ago)
Author:
davidb
Message:

Main change is to set explicitly setJAVACFLAGS here (i.e. in the release kit) so as to trigger it generateing backwards compatible Java class files. The opportunity was also taken to update rk.bat to bring it a little bit more inline with what the bash version does

Location:
main/trunk/release-kits/bin
Files:
2 edited

Legend:

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

    r34256 r35570  
    4545export ANT_OPTS=-Xmx1024M
    4646
     47# set JAVACFLAGS (used in the relevant javac lines in our Makefiles) so that any compiled Java code
     48# is backwards compatible with Java v1.6
     49
     50# Note: Given the way autoconf uses 'eval' to test javac, then the usual technique of double-quoting
     51#       (e.g.) the bootclasspath directory to project against spaces *won't* *work* as it is not passed
     52#       to a shell environment to be interpretted first. 
     53#       Instead, we result to backlash escaping any spaces
     54export RK_HOME_BACKSLASH_ESCAPED=`echo $RK_HOME | sed 's/ /\\\\ /g'`
     55
     56export JAVACFLAGS="-source 1.6 -target 1.6 -bootclasspath $RK_HOME_BACKSLASH_ESCAPED/shared/core/java-rt/rt-openjdk6.jar -extdirs ''"
     57
    4758#create the command
    4859toexec="ant -lib \"`pwd`/installer/classes\" -f \"$RK_HOME/kits/$rk_name/ant-scripts/build.xml\" \"-Dbasedir=`pwd`\" \"-Drk.home=$RK_HOME\" \"-Drk.name=$rk_name\""
     
    5768    toexec="$toexec \"-Dkeep.src=$KEEP_SRC\""
    5869fi
     70
     71show_cmd=false
    5972
    6073#pass on the arguments
  • main/trunk/release-kits/bin/rk.bat

    r29395 r35570  
    44pushd "%CD%"
    55CD /D "%~dp0\.."
     6
     7:: make sure ant has enough memory
     8set ANT_OPTS=-Xmx1024M
     9
     10:: set JAVACFLAGS (used in the relevant javac lines in our win32.mak/Makefiles) so that any compiled Java code
     11:: is backwards compatible with Java v1.6
     12set JAVACFLAGS=-source 1.6 -target 1.6 -bootclasspath "%RK_HOME%\shared\core\java-rt\rt-openjdk6.jar" -extdirs ""
    613
    714:: Generally, an ant property can be true|on|yes vs false|off|no (or left unset)
Note: See TracChangeset for help on using the changeset viewer.