source: main/trunk/release-kits/rk-setup.bat

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

Fixed type on bootclasspath variable name

File size: 1.1 KB
Line 
1@echo off
2
3:: Script assumes you are in the same directory as rk-setup.bat when it is run
4
5if "%RK_HOME%" == "" goto start
6
7echo Your Environment has already been set up for the Greenstone Release Kit!!
8goto done
9
10:start
11
12set RK_HOME=%CD%
13set PATH=%RK_HOME%\bin;%PATH%
14
15echo Set RK_HOME and added RK_HOME/bin into PATH
16
17:: Set JAVACFLAGS (used in the relevant javac lines in our win32.mak files)
18:: so that any compiled Java code is backwards compatible with Java v1.8
19
20:: To fully support backward compatible compilation need to specfiy
21:: -bootclasspath in addition to -source and -target
22
23set jrt_home_dir=%RK_HOME%\shared\core\java-rt
24
25set rt_jar=%jrt_home_dir%\rt-openjdk8.jar
26set jce_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
27
28set bootclasspath=%rt_jar%;%jce_jars%
29
30set JAVACFLAGS=-source 1.8 -target 1.8 -bootclasspath %bootclasspath% -extdirs ''
31
32echo Set JAVACFLAGS to compile for source, and to target, 1.8
33
34set rt_home_jar=
35set rt_jar=
36set rce_jars=
37set bootclasspath=
38
39:done
Note: See TracBrowser for help on using the repository browser.