<properties>

Purpose/Function

Add properties to the Ogrescript environment. These are declared, so their names must not collide with any names already in scope.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

asMap

java.lang.String

null

put all the properties into a map and add the map to the environment with this name

file

java.land.String

either file or resourceUri required

path of properties file

global

boolean

true

add to the global frame (else add to local frame)

resourceUri

java.lang.String

either file or resourceUri required

properties file as resource

prefix

java.lang.String

null

prepend prefix + '.' to each property name

sysprops

boolean

false

add JVM system properties (overrides file or uri attributes)

Elements

None.

ReturnValues

None.

NOTES

Examples

<ogrescript>
   ...
   <properties file="/tmp/application.properties"/>
   <properties sysprops="true" prefix="sys"/>
   ...	
</ogrescript>
  • No labels