Grid Library Format
The Grid Library can be an archive file in ZIP (.zip) or gzipped TAR format (.tgz or .tar.gz), with a grid-library.xml file in the root. It might also contain any number of directories that contain resources. Although the filename has no inherent meaning, the following format is strongly encouraged:
library_name-library_version.[zip|tar.gz|tgz]
If a Grid Library has the OS attribute set, the following format must be used:
library_name-library_version-os.[zip|tar.gz|tgz]
To reduce Engine restarts when you deploy a new version, always include the version in the filename, as overwriting existing libraries requires a restart, whereas a new library does not.
The directory structure is completely up to you since the configuration file is used to specify where resources are found within the Grid Library.
The configuration file must be a well-formed XML file named grid-library.xml, and be in the root of the Grid Library.
The GridServer SDKs include a grid-library.dtd file that can be used to validate the XML file. They also include an example Apache Ant build.xml file that can be used to validate and build Grid Libraries. This DTD can also be found in The grid-library.dtd.
Following is a table that specifies all elements and attributes of the grid-library.dtd file. It uses the XML schema notation for elements and attributes, such as:
[no tag] (Required)
? (Optional)
* (Optional and Repeatable)
|
Element |
Description |
Elements and Attributes |
||||||||||||||||||||||||||||||||||||
|
|
The root element. Note that attributes affect deployment; Engines only download Grid Libraries whose attributes match their own properties and ignore those with non-matching attributes. If no attributes are specified in this element for a particular Grid Library, all Engines download this Grid Library. |
ELEMENTS
|
||||||||||||||||||||||||||||||||||||
|
|
|
ATTRIBUTES
|
||||||||||||||||||||||||||||||||||||
|
|
The library name. All libraries must be named. |
|
||||||||||||||||||||||||||||||||||||
|
|
The version. If not specified, 0 is implied. If in comparable format as defined below, it can be used to determine the latest version. |
|
||||||||||||||||||||||||||||||||||||
|
|
A library dependency. If the version is not specified, the latest version is chosen at runtime. |
ELEMENTS
ELEMENTS
|
||||||||||||||||||||||||||||||||||||
|
|
Indicates that this library conflicts with the given library. If this Grid Library is NOT a dependency, and |
ELEMENTS
|
||||||||||||||||||||||||||||||||||||
|
|
An element containing a relative path, typically set to a directory. This element must be in the proper format for the OS. |
|
||||||||||||||||||||||||||||||||||||
|
|
The JAR path. If specified, all JARs and classes in the path are loaded. |
ELEMENTS
ATTRIBUTES
|
||||||||||||||||||||||||||||||||||||
|
|
The native library search path. |
ELEMENTS
ATTRIBUTES
|
||||||||||||||||||||||||||||||||||||
|
|
The .NET assembly search path. Absolute assembly paths, mapped drives, and UNC paths do not work. |
ELEMENTS
|
||||||||||||||||||||||||||||||||||||
|
|
The path in which the Engine searches for Command Service executables. |
ELEMENTS
ATTRIBUTES
|
||||||||||||||||||||||||||||||||||||
|
|
Path to Engine Hook XML files. Engine Hooks are initialized at the time the containing Grid Library is loaded. |
ELEMENTS
ATTRIBUTES
|
||||||||||||||||||||||||||||||||||||
|
|
The name of a property |
|
||||||||||||||||||||||||||||||||||||
|
|
The value of a property |
|
||||||||||||||||||||||||||||||||||||
|
|
A name/value pair, used by environment variables and Java System properties. |
ELEMENTS
|
||||||||||||||||||||||||||||||||||||
|
|
Environment variables to set. |
ELEMENTS
ATTRIBUTES
|
||||||||||||||||||||||||||||||||||||
|
|
Java system properties, which are set immediately prior to executing a task using this library. |
ELEMENTS
ATTRIBUTES
|
The following is a list of attributes used above. Valid values can be found in the About page in the Administration Tool:
|
Attribute |
Description |
|
|
The |
|
|
If the attribute is not this compiler, the containing element and its children and content are ignored. |
|
|
If set to |