RESOURCE
This RESOURCE
element defines general GAS settings that can be used in the definition of applications and components, and in external application configuration files.
Syntax
<RESOURCE Id=res-id [
Source={
"INTERNAL"|
"ENVIRON"}
]
>res-data</RESOURCE>
- res-id is the unique identifier of the resource.
- The
Source
attribute specifies the location of the resource. This attribute is optional.The GAS locates the resource based on the value of theSource
attribute, if specified.- If
Source
is INTERNAL, the resource is resolved to the location provided. - If
Source
is ENVIRON, the resource is the name of an environment variable, which represents the location of the resource.Note:If
Source
is not specified, the resource defaults to INTERNAL.
- If
- res-data is the value of the resource.
Child elements
There are no child elements.
Usage
You use this element to specify resources such as location of proxy
program, DVM, etc., within individual APPLICATION_LIST
or
SERVICE_LIST
configurations. Resources are defined in the RESOURCE_LIST
element of the GAS
configuration file.
Source INTERNAL usage example
A resource defined with a reference to the internal location of the DVM or runtime
program.
<RESOURCE Id="res.dvm.wa" Source="INTERNAL">$(res.fgldir)/bin/fglrun.exe</RESOURCE>
Source ENVIRON usage example
In this example, the resource "res.os " contains the value of the environment variable OS. For
example, on a Windows® system, the environment variable OS
could have the value
"Windows_NT".
<RESOURCE Id="res.os" Source="ENVIRON">OS</RESOURCE>
Parent elements
This element is a child of the following: