Chapter 12. Generating Tigase Installer
Prev |  | Next

# Chapter 12. Generating Tigase Installer

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

1. 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 classes reside.

    <!-- fragment -->
    <classpath>
      <pathelement location="java"/>

      <!-- tweak below fragment -->
      <pathelement location="${installer.path}/_build"/>

      <pathelement location="${installer.path}/bin/panels/TargetPanel.jar"/>
    </classpath>

1. 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.

2. 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"

3. 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.
4. Generated files (jar and exe) will be placed in the packages dir of Tigase codebase.

Prev |  | Next
Chapter 11. Why the most recent JDK? | Home | Chapter 13. API Description for Virtual Domains Management in the Tigase Server