Environment is a computer system in that the program is compiled or the application is run.
Environment variables are specific configurations that affect the way how programs behave at compilation and applications behave when they are run.
Lycia supports a considerable number of environment variables:
There are many ways to configure your environment.
For example, you can
The table below shows where you can configure your environment with Lycia:
|
You compile applications with LyciaStudio |
You compile applications with cmd line tools |
Runtime environment |
Environment as a whole |
|||
4gl project |
|
|
|
4gl program |
|
||
Current session |
|
set ENV_VAR=value export ENV_VAR=value |
|
To set the environment as a whole, you change the corresponding configuration files – inet.env, env.properties, and environ.bat.
To configure the compilation and deployment environment of a 4gl project or a 4gl program, you specify the necessary variables in the Build environment variables page of the project's or the program's Properties.
To configure the environment for the current command line session, you execute the corresponding command in the command line:
These variables will be applied only until the end of the session. Once you relaunch the command line, all variables will be loaded from environ.bat.
You can also set environment variables in your operation system environment, but we do not recommend this unless you have a considerable experience of such modifications.
When setting environment variables, please pay attention to these details.
Folder separators depend on the operation system - \(backslash) is used for and /(slash) for :
Variable indications depend on the operation system - % is used for and $ for :
Path separators depend on the operation system - ;(semicolon) is used for and :(colon) for :
You can update and extend environment variables by adding new values to the already existing ones:
A .(full stop) - once added to the path value - indicates the current directory:
FGLIMAGEPATH=%FGLIMAGEPATH%;.;%LYCIA_DIR%\images