This reference provides technical information about the different elements of Magnet. Each element is described in detail, with examples. This reference first describes the core elements of Magnet. The sections that follow discuss the two extensions that are provided with the Magnet distribution: the Java extension, that allows starting Java applications; and the system extension, that allows to starting native processes.
All the Magnet elements must be associated to the following XML namespace: http://schemas.sapia-oss.org/magnet/core/. The usage of a namespace prefix is up to the user, as long as it follows the rules defined by the XML namespace definition.
Magnet comes with a DTD to validate your XML configuration file, and/ot to have auto-completion of element and attribute names in your favorite IDE. The following DOCTYPE needs to be define in your XML file in order to include it:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE magnet PUBLIC "-//SAPIA OSS//Magnet DTD 2.0//EN" "http://www.sapia-oss.org/dtd/magnet-2.1.dtd">
Main element of a magnet configuration file.
Defines a group of parameters that can be used for variable interpolation.
Defines a parameter (name-value pair) that can be used in variable interpolation.
Defines a scripting engine to use within Magnet.
Executes a script when running a Magnet file.
Allows specifying a custom protocol to load resources into Magnet.
Defines a group of resources using path elements.
Allows specifying a custom launcher type in Magnet.
Provides an easy way to define the java.rmi.server.codebase system property using path elements.
Defines the complete classpath of a Java application to start.
Defines how to start a Java application by calling a main method on a class.
Defines the parameter set corresponding to a specific profile.