Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available since katl-commons starting with SIL Engine™ 1.0.

Syntax

...

silEnv(variable_name)

Description

...

Excerpt

Returns the variable as presented in the environment.

A special variable is set 'sil.home'

...

that will point to the actual location of the SIL programs. You can configure this folder from the

...

SIL™ configuration page.


Valid variables:

sil.home - points  points to the folder keeping the SIL programs
• Any Java environment variable (such as 'java.home', 'os.arch', etc)
• Any environment variable, exported in the operating system (XX=aa; export XX)

Additionally, the routine looks into in the 'sil.home' directory after a file called 'sil.properties'.
You can put all your host-dependent variables in here, and create easy-transferable scripts.
This file contains key-value pairs (name=value).

Note

Every time the sil.home is changed, the contents of the old 'sil.properties' file will not be taken into account by this routine. You must copy the contents of the old file in the new location manually.

Info

See Environment Variables for more details.

Parameters

...

Parameter name

Type

Required

Description

variable_name

string

yes

the env

Env variable name.

Returns

...

string

Example

...

Code Block
print("Your SIL programs are in " + silEnv("sil.home"));

See

...

also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "system_routines"
labelssystem_routines