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

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

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

File size: 1.2 KB
RevLine 
[21521]1@echo off
2set RELEASE_DIR=%CD%
3echo RELEASE_DIR:%RELEASE_DIR%
4pushd "%CD%"
5CD /D "%~dp0\.."
[35618]6set RK_HOME=%CD%
[21521]7
[35570]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
[35673]13echo ****** Setting JAVACFLAGS in rk.bat
14echo ****** Need to update the script so it is done through rk-setup.bat
[35622]15set JAVACFLAGS=-source 1.8 -target 1.8 -bootclasspath "%RK_HOME%\shared\core\java-rt\rt-openjdk8.jar" -extdirs ""
[35570]16
[29394]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
[29395]20:: set KEEP_SRC envvar here or in envi/etc/tasks/snapshot/environment.pl
21::set KEEP_SRC=true
[29394]22set debug=
23if not "%KEEP_SRC%" == "" set debug="-Dkeep.src=%KEEP_SRC%"
24
[21521]25@echo on
[29394]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"
[21521]27
28:end
[29394]29set debug=
[21521]30
31popd
Note: See TracBrowser for help on using the repository browser.