<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 |
|
|
put all the properties into a map and add the map to the environment with this name |
file |
|
either file or resourceUri required |
path of properties file |
global |
|
true |
add to the global frame (else add to local frame) |
resourceUri |
|
either file or resourceUri required |
properties file as resource |
prefix |
|
|
prepend prefix + '.' to each property name |
sysprops |
|
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>