Chapter 4. Starting DODS generator

Table of Contents

DODS Generator Wizard

If you are running on Windows, to start DODS generator, you should use batch files in

where <ENHYDRA_HOME> is home (root) directory of Enhydra 5.1 or 6.0

At the command window, change directory to the /bin directory.

For example,

The dods generator start batch file is located in this bin directory. So, to start the dods generator, enter:

dods

If you are running Linux, you can use start scripts in the same directory. So to start the dods generator on Linux, enter:

./dods

You will see DODS Generator Wizard displayed in the output window.

DODS Generator Wizard

Figure 1: DODS Generator Wizard

  • You must choose project root and path to the doml file.

  • Config directory field contains path to custom configuration folder (which contains dodsConf.xml file). It is used to generate java source code and SQL scripts. If the path is set to any other path than default (offered), in the application's configuration file shoud be set parameter

    DatabaseManager.ConfigurationDir

    to new path of the custom configuration folder.

  • There are four options on the Generator Wizard:

    • SQL generate

      • SQL Splitter

    • Java generate

      • Compile Java

    At least one of the Generate fields must be checked.

  • There are two combo boxes on the Generator Wizard. Template set combo box contains possible template sets:

    • standard

    • <user_defined_templates>

  • DB vendor combo box contains list of database vendors. If one of these vendors is selected, this database will overwrite database declared in DOML file.

  • There is a possibility on the Generator Wizard for generating the following types of documentation:

    • HTML

    • PDF

    • XMI

    • PTL

  • On the Generator Wizard, there is also a check box:

    overwrite

    for code generating (java and sql), no matter if the code already existed.

You can manually start dods generator without using wizard by typing dods with additional parameters:

Command line:

dods [-?/help] [-a action] [-t templateset] [-b/-database] [-c confPath]
[-f/force] [-h/html] [-p/pdf] [-x/xmi] [-r/ptl] domlfile outputdir

where:

options: