How to Build the Enhydra Enterprise Source Distribution


Table of Contents

1. Things You Will Need
2. What to Do

Chapter 1. Things You Will Need

  • JDK version 1.4.x available from http://java.sun.com.

Chapter 2. What to Do

  • Edit build.properties file in root of Enhydra Source Distribution to override any variables necessary, such as

    • jdk.dir - jdk home directory. Required parameter.

    • build.debug=off - compile source with debug information. Defaults to off.

    • build.optimize=on - set source should be compiled with optimization or not. Defaults to on.

    • eaf.dir - EAF home directory (unpacked binary distribution).

    • enhydrademos.dir - EnhydraDemos home directory (unpacked binary distribution).

    • jonas_tomcat_bin - path to JOnAS-Tomcat binary tgz file (full file name included).

    • jonas_jetty_bin - path to JOnAS-Jetty binary tgz file (full file name included).

    NOTE: Please use configure (batch/shell script) file to edit these parameter values.

  • For building procedure on Windows platform use 'make.bat' batch file to start building process.

    For building full version of Enhydra Enterprise (Tomcat and Jetty) with full documentation and demo applications just type

    make (or make buildAll)

    If you want to generate Enhydra Enterprise without documentation use buildNoDoc argument, just type:

    make buildNoDoc

    If you want to generate full Enhydra Enterprise distribution use distributions argument, just type:

    make distributions

    For removing built version of Enhydra Enterprise type:

    make clean

    For building procedure on Unix(Linux) platform use the standard procedure:

    For building full version of Enhydra Enterprise with full documentation and demo applications just type

    ./configure
    make buildAll

    If you want to generate Enhydra Enterprise without documentation use buildNoDoc argument, just type:

    make buildNoDoc

    If you want to generate full Enhydra Enterprise distribution use distributions argument, just type:

    make distributions

    For removing built version of Enhydra Enterprise type:

    make clean

    If you didn't see any warnings at the end of the build process saying that something was missing, your build probably worked (seccessful build is generating success message at the end of building process). If you see errors during the build or get a warning at the end (BUILD FAILED), check that you have correctly set the necessary variables in build.properties file. Enhydra Enterprise will be generated in 'output' and distribution files will be placed in distribution subdirectory.