query about creating CLI installer from source code

Submitted by Anonymous on Wed, 2010-01-20 20:44

Having compiled the tigase server code, how do I go about creating a CLI based installer for tigase?

Do I still need IzPack for this purpose? I just need to install tigase without any installation prompts (manually modifying configuration file).

Thanks

Artur Hefczyc's picture

I was not aware that IzPack

I was not aware that IzPack migrated away from SVN. I don't have script updated yet but I will try to do something about this soon.
Interesting.... I thought I am the only person generating Tigase installer... :-)

The prepare-installer.sh and

The prepare-installer.sh and generate-installer.sh has been working fine for creating the tigase installer.

But now it fails as it is not able to get the izpack from svn.codehaus.org
Looks like izpack has moved to using git.

Do you have a changed scripts for this, or is there a specific version of izpack that is in tigase svn.

Thanks
Ram M

Artur Hefczyc's picture

The same way tigase-xmltools

The same way tigase-xmltools and tigase-utils are separate projects in different SVN repositories, extras, pubsub and muc are also separate projects and are located in separate SVN repositories.
Please have a look at this address for a list of all projects available: https://svn.tigase.org/reps/

tigase-extras.jar

tigase-extras.jar tigase-muc.jar tigase-pubsub.jar missing when compiling server build but present in pre-compiled builds (tigase-server-4.3.1-b1858) available on tigase.org.

How are these jar files built?

Artur Hefczyc's picture

If you compile Tigase code

If you compile Tigase code from sources and you are going to manually modify config files you can just forget about the installer.
After you compiled the Tigase from sources it is actually read to be run, no other installation is needed. Typical Tigase installation directory contains following subdirectories:

certs/     with certification files
etc/        with configuration files
jars/       with tigase-server.jar
libs/       with all other JAR libs
logs/      here are all logs created
scripts/  startup and administrator

And they all should be part of the SVN repository.

If you really want to create an installer version of the package you have to execute two scripts in the following order:

prepare-installer.sh
generate-installer.sh

Please note above scripts will pull the IzPack in correct version, patch it and generate the installer. There is no separate CLI and GUI installer. This is the same file which can be executed in two modes.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.