RESOURCES (for JGAS)

This element contains all RESOURCE elements defined for JGAS.

Syntax

<RESOURCES>
   [ <RESOURCE></RESOURCE> ] [...] 
</RESOURCES

Child elements

A RESOURCES element contains one or more RESOURCE child elements.

Usage

You use this element to define RESOURCE elements, which can then be referenced in your application configuration files.

Note:

RESOURCES is the same as the RESOURCE_LIST in the standard GAS. In the context of the JGAS there is no need for platform specific resource definitions for Windows®, UNIX®, etc. Therefore there is only one RESOURCES node.

Example RESOURCES

<RESOURCES>
    <RESOURCE Id="res.fgldir" Source="INTERNAL">$(FGLDIR)</RESOURCE>
    <RESOURCE Id="FGLDIR" Source="ENVIRON">FGLDIR</RESOURCE>
    <RESOURCE Id="res.gredir" Source="ENVIRON">GREDIR</RESOURCE>
    <RESOURCE Id="res.fglgui" Source="INTERNAL">1</RESOURCE>
    <RESOURCE Id="res.dvm.wa" Source="INTERNAL">
     $(res.fgldir)\bin\fglrun.exe</RESOURCE>

    ...
  
</RESOURCES>
The JGAS locates the resource based on the value of the Source 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.

Parent elements

This element is a child of the CONFIGURATION (for JGAS) element.