Generating Tigase Installer

Artur Hefczyc <artur.hefczyc@tigase.net> v2.0, June 2014: Reformatted for AsciiDoc. :toc: :numbered: :website: http://tigase.net/ :Date: 2010-04-06 21:22

To generate installer:

  1. Install chosen version of IzPack including source code.
  2. In order to compile custom Tigase panels you need to first compile IzPack classes. You can use the included build.xml which is in the src directory of IzPack install. Just enter this dir and type:

    ant all
  3. Depending on the IzPack version classes will be compiled directly into the src/lib directory or _build directory of IzPack. You may need to tweak the build.xml file which is in the same dir as the readme and point to the directory where IzPack compiled classess reside.

    <!-- fragment -->
    <classpath>
      <pathelement location="java"/>
    
      <!-- tweak below fragment -->
      <pathelement location="${installer.path}/_build"/>
    
      <pathelement location="${installer.path}/bin/panels/TargetPanel.jar"/>
    </classpath>
  4. Make sure that the bin/panels directory of IzPack is writable by generate-installer.sh script. Compiled custom panels will be placed here before running installer compiler.
  5. Modify the script/generate-installer.sh. Change the IZPACK_DIR variable to point to the IzPack instalation directory e.g.

    IZPACK_DIR="/usr/local/IzPack421"
  6. To start the installation process run the scripts/generate-installer.sh file you will find in the main server source code directory. You should start it from the server root dir.
  7. Generated files (jar and exe) will be placed in the packages dir of Tigase codebase.