You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

Ogrescript is an XML scripting-language written in Java.

Ogrescript is a descendent of OGRE; it is the scripting language native to Elf, and thus meant to be run inside of the ELF container, which is built on the Eclipse (OSGI) platform framework. Hence, Ogrescript is organized as a series of plug-ins.

The Ogrescript runtime has eliminated all dependencies on Ant for its build and execute mechanism; there are no more target nodes or top-level DAG dependencies. The structure of Ogrescript is simply that of a scripting language. Work continues to take place via task objects, but the XML now simply represents a single line of execution.

Ogrescript still runs in an environment, but this is now locally unified, in the sense that there are no separate properties (i.e., Ant-like write-once variables) to manage outside of the Ogrescript framework as there were in OGRE.

Tasks are still XML elements configured via their attributes and children, and which do something inside their execute method. Return values are now made available by adding markers to the task itself.

Ogrescript Javadocs can be accessed at: API.

A set of Ogrescript sample scripts, many of which are reproduced in full or in part as the examples in this guide, may be accessed here: sample scripts.

  • No labels