Changeset 35682
- Timestamp:
- 2021-10-23T18:47:29+13:00 (2 years ago)
- Location:
- main/trunk/release-kits
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/release-kits/README.txt
r35626 r35682 22 22 23 23 24 ## 24 25 # Getting Ready to use the Release Kit 25 26 26 To use the Release Kit scripts, some source code needs to be compile first: 27 It used to be that you needed to compile up the Release Kit to use the 28 custom Ant Tasks it relied on. However as the source code is 100% 29 Java, JDK8 compile up jars have been produced and committed, so it now 30 can be used immediately after an svn checkout. 27 31 28 ant compile 32 It also used to be left to the developer to set their environment to 33 the Release Kit scripts in <rkhome>/bin were found. This is now 34 take care of by: 29 35 30 And the Release Kits 'bin' directory added to your PATH. 31 For Linux, for example: 36 . ./rk-setup.bash (Unix) 37 or 38 rk-setup.bat (Windows) 32 39 33 export PATH=$PWD/bin:$PATH34 40 35 Or for Windows: 36 37 set PATH=%CD%\bin;%PATH% 38 39 Finally, for compilation compilation of JNI code in Greenstone3 to be able to 40 locate the necessary header files (e.g., jni.h), JAVA_HOME needs to be set, 41 For compilation of JNI code in Greenstone3 to be able to locate the 42 necessary header files (e.g., jni.h), JAVA_HOME needs to be set. 41 43 42 44 For example (on Ubuntu-16 32-bit): … … 56 58 # In the following the redirect character (>) is hard up against the version number 57 59 # to avoid a space occuring at end of echo of the line output to the property file 60 58 61 echo version:3.11rc> rk3-build.properties 62 63 For a Linux 64-bit build, add in: 64 65 echo x64:true>> rk3-build.properties 66 67 68 The kick off the whole process with: 59 69 60 70 rk3 61 71 72 The end result is an installer for Greenstone in: 62 73 63 More detailed notes at: 74 products 75 76 77 ## 78 # Updating the Java source code to the Release Kit code base 79 80 In the event any changes are made the custom Java based tasks the 81 Release Kit provides, then the sequence to regenerate the compiled 82 jar files is: 83 84 . ./gs3-setup.bash 85 86 ant compile 87 88 svn commit -m "<message>" \ 89 shared/core/ant-tasks/greenstone/anttasks.jar \ 90 shared/core/ant-installer/lib/ant-installer.jar \ 91 shared/core/ant-installer/lib/ant-installer-ext.jar 92 93 94 ==== 95 96 # More detailed notes in general about the Release Kit code at: 64 97 65 98 http://wiki.greenstone.org/doku.php?id=en:developer:release_kits -
main/trunk/release-kits/bin/rk.bat
r35673 r35682 9 9 set ANT_OPTS=-Xmx1024M 10 10 11 :: set JAVACFLAGS (used in the relevant javac lines in our win32.mak/Makefiles) so that any compiled Java code12 :: is backwards compatible with Java v1.613 echo ****** Setting JAVACFLAGS in rk.bat14 echo ****** Need to update the script so it is done through rk-setup.bat15 set 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 11 :: see https://ant.apache.org/manual/properties.html#if+unless 19 12 :: However, the release-kit code requires envvar KEEP_SRC to be "true" in order to stop it deleting source code -
main/trunk/release-kits/build.xml
r35634 r35682 10 10 <property name="compile.javac.flags" value="${env.JAVACFLAGS}"/> 11 11 <else> 12 <property name="compile.javac.flags" value=""/> 13 </else> 12 <echo>Failed to detect environment variable JAVACFLAGS.</echo> 13 <echo>Have you source gs3-setup.bash (Unix) or gs3-setup.bat (Windows)?</echo> 14 <echo>This is needed to ensure backward compatible Java class files are generated.</echo> 15 <fail/> 16 </else> 14 17 </if> 15 18 -
main/trunk/release-kits/rk-setup.bash
r35673 r35682 19 19 # so that any compiled Java code is backwards compatible with Java v1.8 20 20 21 # To fully support backward compatible compilation need to specfiy 22 # -bootclasspath in addition to -source and -target 23 21 24 # Note: Given the way autoconf/configure uses 'eval' to test for 22 25 # javac, then the usual technique of double-quoting (e.g.) the … … 26 29 # is that we need to resort to backlash escaping any spaces 27 30 # to keep things on track 28 29 # Given the way the bootclasspath developed to needing multiple jar30 # files, no longer use RK_HOME_BACKSLASH_ESCAPED. But the31 # principle still applies32 33 ##export RK_HOME_BACKSLASH_ESCAPED=`echo $RK_HOME | sed 's/ /\\\\ /g'`34 31 35 32 jrt_home_dir="$RK_HOME/shared/core/java-rt"
Note:
See TracChangeset
for help on using the changeset viewer.