How to Build the Enhydra Source Distribution


Table of Contents

1. Things You Will Need
2. What to Do

Chapter 1. Things You Will Need

  • Jakarta-ant-1.5 available from http://www.apache.org Procedure of building the Enhydra Source Distribution is platform independent.

  • JDK version 1.4 available from http://java.sun.com. On Windows, this can be installed on any drive. For drives other than the 'C:' or system drive, specify the drive letter in the Cygnus style '//X/' in the setting of JDKDIR. For example, 'JDKDIR=//D/jdk1.4'.

  • JavaCC version 2.1 (Java(tm) Compiler Compiler) available from http://www.webgain.com/download/javacc/details.html

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, and

    • javacc.dir - the path to your installation of the JavaCC2.1.

  • For building procedure on Windows platform use compile.bat batch file to start building process.
    For building full version of Enhydra 5.1 with full documentation and demos application just type

    compile buildAll

    If you want to generate Enhydra 5.1 without documentation use buildNoDoc argument, just type:
    compile buildNoDoc
    For removing current version of Enhydra type:
    compile clean.

    If you didn't see any warnings at the end of the build process saying that something was missing, your build probably worked. 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.
    Enhydra 5.1 will be installed in output/enhydra5.1 subdirectory of current working directory.

    For building procedure on Unix(Linux) platform use the same procedure and compile.sh script.

  • Try it out. Add Enhydra5.1/bin directory of your Enhydra installation into your system path
    (e.g. set path=c:/enhydra5.1/enhydra/output/enhydra5.1/bin;%path%)
    and just type:

    multiserver (for starting test applications),
    dods (DataObjectDesignStudio), 
    appwizard (for creating simple web or enhydra applications)...