When you need a specific setup to build a project at the command line, there are
environment variables that must be set.
About this taskAn environment set defines the GST setup
directory that includes Studio settings and the BAM setup templates and files.
To quickly identify the setup directory for your current GST
configuration, select . The directory defined by GSTSETUPDIR is highlighted in the File Browser
(the Files view).
If you require a specific setup to build a project, such as a template version prior to the
current setup directory, you will need to set an environment for it.
In this task you create
a script to set the environment, which you can run whenever you need to use this procedure. You run
the script in the command line of a Genero Workplace Window. The
environment setup can be for a template included in your GST installation or your own custom template.
-
Determine which configuration you want to use to build your applications. Select the configuration. Then, select .
The Genero Configuration Management dialog opens.
-
Find and select the Template Environment Set.
The BAM templates use the naming convention "Template dbapp*", where * represents the template
version number.
Make a note of the following environment variables and examine their values as these are the ones
you will need to work with.
Refer to Genero Business Development Language User Guide
for additional information regarding the FGL environment variables.
-
Click Cancel to discard any accidental changes and close the
dialog.
-
Go to and then and click OK.
A new file opens in Code Editor.
-
Using the elements identified in step 2, create a script to set the
environment appropriate for your system from the examples shown.
Replace
<template_name> with the name of the template. If it is a
template included in your GST installation, the name is in the form
"dbapp
<version>"; for example, "dbapp3.2". If your are using a custom
template, see
Custom
Template example.
-
Save the file, adding the script file extension appropriate for your system.
It does not matter what name you give the file. Save this new file to a location on disk where
you have permissions to execute it. There is no need to insert it in a project.
-
Click to open a terminal.
-
Run the script file by entering the absolute path to it.
The environment is set up to build your project.
When you have completed the above procedure, from the same Genero Workplace Window terminal run
the gsmake command to build your project.
gsmake <path_to_your_project>