Line | |
---|
1 | @echo off
|
---|
2 |
|
---|
3 | :: Script assumes you are in the same directory as rk-setup.bat when it is run
|
---|
4 |
|
---|
5 | if "%RK_HOME%" == "" goto start
|
---|
6 |
|
---|
7 | echo Your Environment has already been set up for the Greenstone Release Kit!!
|
---|
8 | goto done
|
---|
9 |
|
---|
10 | :start
|
---|
11 |
|
---|
12 | set RK_HOME=%CD%
|
---|
13 | set PATH=%RK_HOME%\bin;%PATH%
|
---|
14 |
|
---|
15 | echo 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 |
|
---|
23 | set jrt_home_dir=%RK_HOME%\shared\core\java-rt
|
---|
24 |
|
---|
25 | set rt_jar=%jrt_home_dir%\rt-openjdk8.jar
|
---|
26 | set 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 |
|
---|
28 | set bootclasspath=%rt_jar%;%jce_jars%
|
---|
29 |
|
---|
30 | set JAVACFLAGS=-source 1.8 -target 1.8 -bootclasspath %bootclasspath% -extdirs ''
|
---|
31 |
|
---|
32 | echo Set JAVACFLAGS to compile for source, and to target, 1.8
|
---|
33 |
|
---|
34 | set rt_home_jar=
|
---|
35 | set rt_jar=
|
---|
36 | set rce_jars=
|
---|
37 | set bootclasspath=
|
---|
38 |
|
---|
39 | :done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.