The JWare/AntX build-flowcontrol (wrap) package contains a set of task containers (and helpers) that let you apply some kind of special treatment or handling to the enclosed tasks. For instance, the ProtectedTaskSet lets you define custom error handling (in the form of other Ant tasks) for a set of tasks.

The main script-facing tasks for this package are: IsolatedTaskSet(<isolate>) and ProtectedTaskSet(<protect>).

Bubbles and Nets

Within AntX there are two kinds of "wrapping" elements: bubbles and nets. Bubbles are used to isolate the enclosed tasks and/or processing from the caller's current environment without relying on a sub-project that must reparse the original build file. The AntX <isolate> task is one example of a bubble; it tries to block (undo) any modifications to the environment caused by the enclosed tasks. Unlike bubbles, nets are used to filter certain fixture information read from and/or written to the environment by the enclosed tasks and/or processing. Unlike a bubble, a net can let certain modifications through to the caller's environment and mask other information from being read by the enclosed elements.

[More Learning Materials]   [Documentation Problems]
( Updated: May 12 2004, 03:45 PM, -0400 )