Changeset 35682


Ignore:
Timestamp:
2021-10-23T18:47:29+13:00 (3 years ago)
Author:
davidb
Message:

Text/commment/echo/README tidy up

Location:
main/trunk/release-kits
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/README.txt

    r35626 r35682  
    2222
    2323
     24##
    2425# Getting Ready to use the Release Kit
    2526
    26 To use the Release Kit scripts, some source code needs to be compile first:
     27It used to be that you needed to compile up the Release Kit to use the
     28custom Ant Tasks it relied on.  However as the source code is 100%
     29Java, JDK8 compile up jars have been produced and committed, so it now
     30can be used immediately after an svn checkout.
    2731
    28   ant compile
     32It also used to be left to the developer to set their environment to
     33the Release Kit scripts in <rkhome>/bin were found.  This is now
     34take care of by:
    2935
    30 And the Release Kits 'bin' directory added to your PATH. 
    31 For Linux, for example:
     36  . ./rk-setup.bash   (Unix)
     37or
     38  rk-setup.bat        (Windows)
    3239
    33   export PATH=$PWD/bin:$PATH
    3440
    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,
     41For compilation of JNI code in Greenstone3 to be able to locate the
     42necessary header files (e.g., jni.h), JAVA_HOME needs to be set.
    4143
    4244For example (on Ubuntu-16 32-bit):
     
    5658  # In the following the redirect character (>) is hard up against the version number
    5759  #   to avoid a space occuring at end of echo of the line output to the property file
     60
    5861  echo version:3.11rc> rk3-build.properties
     62
     63For a Linux 64-bit build, add in:
     64
     65  echo x64:true>> rk3-build.properties
     66 
     67
     68The kick off the whole process with:
    5969
    6070  rk3
    6171
     72The end result is an installer for Greenstone in:
    6273
    63 More detailed notes at:
     74  products
     75 
     76
     77##
     78# Updating the Java source code to the Release Kit code base
     79
     80In the event any changes are made the custom Java based tasks the
     81Release Kit provides, then the sequence to regenerate the compiled
     82jar 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:
    6497
    6598  http://wiki.greenstone.org/doku.php?id=en:developer:release_kits
  • main/trunk/release-kits/bin/rk.bat

    r35673 r35682  
    99set ANT_OPTS=-Xmx1024M
    1010
    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
    13 echo ****** Setting JAVACFLAGS in rk.bat
    14 echo ****** Need to update the script so it is done through rk-setup.bat
    15 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)
    1811:: see https://ant.apache.org/manual/properties.html#if+unless
    1912:: 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  
    1010    <property name="compile.javac.flags" value="${env.JAVACFLAGS}"/>
    1111    <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>
    1417  </if>
    1518 
  • main/trunk/release-kits/rk-setup.bash

    r35673 r35682  
    1919# so that any compiled Java code is backwards compatible with Java v1.8
    2020
     21# To fully support backward compatible compilation need to specfiy
     22# -bootclasspath in addition to -source and -target
     23
    2124# Note: Given the way autoconf/configure uses 'eval' to test for
    2225#       javac, then the usual technique of double-quoting (e.g.) the
     
    2629#       is that we need to resort to backlash escaping any spaces
    2730#       to keep things on track
    28 
    29 # Given the way the bootclasspath developed to needing multiple jar
    30 # files, no longer use RK_HOME_BACKSLASH_ESCAPED.  But the
    31 # principle still applies
    32 
    33 ##export RK_HOME_BACKSLASH_ESCAPED=`echo $RK_HOME | sed 's/ /\\\\ /g'`
    3431
    3532jrt_home_dir="$RK_HOME/shared/core/java-rt"
Note: See TracChangeset for help on using the changeset viewer.