source: main/trunk/release-kits/bin/rk.bat@ 35673

Last change on this file since 35673 was 35673, checked in by davidb, 2 years ago

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

File size: 1.2 KB
Line 
1@echo off
2set RELEASE_DIR=%CD%
3echo RELEASE_DIR:%RELEASE_DIR%
4pushd "%CD%"
5CD /D "%~dp0\.."
6set RK_HOME=%CD%
7
8:: make sure ant has enough memory
9set ANT_OPTS=-Xmx1024M
10
11:: set JAVACFLAGS (used in the relevant javac lines in our win32.mak/Makefiles) so that any compiled Java code
12:: 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
15set JAVACFLAGS=-source 1.8 -target 1.8 -bootclasspath "%RK_HOME%\shared\core\java-rt\rt-openjdk8.jar" -extdirs ""
16
17:: Generally, an ant property can be true|on|yes vs false|off|no (or left unset)
18:: see https://ant.apache.org/manual/properties.html#if+unless
19:: However, the release-kit code requires envvar KEEP_SRC to be "true" in order to stop it deleting source code
20:: set KEEP_SRC envvar here or in envi/etc/tasks/snapshot/environment.pl
21::set KEEP_SRC=true
22set debug=
23if not "%KEEP_SRC%" == "" set debug="-Dkeep.src=%KEEP_SRC%"
24
25@echo on
26cmd.exe /c ant -f "%CD%\kits\%RK_NAME%\ant-scripts\build.xml" "-Drk.home=%CD%" "-Drk.name=%RK_NAME%" %debug% "-Dbasedir=%RELEASE_DIR%" -lib "%RELEASE_DIR%/installer/classes" %* | "%CD%\shared\windows\utils\tee.exe" "%RELEASE_DIR%\%RK_NAME%.out"
27
28:end
29set debug=
30
31popd
Note: See TracBrowser for help on using the repository browser.