Ant Tasks

Compiling and executing wurblets is usually accomplished via Ant tasks. The quickstart's build.xml already contains everything necessary, which is explained next.

Compiling the Wurblets

Wurblets are written in Wurblish.
No, not really. ;-) They are written in Java. Well, that's not true either. They are written in Java with some syntactic addons to separate the generating from the generated code. That's why wurblets must be compiled by the so-called Wurbiler before they can be compiled by the Java compiler.
This is accomplished by the wurbile task, which is defined as follows:

wurbiler taskdef

The complilation of the wurblets is then accomplished by the wurbile target:

wurbile target

Code Generation

In order to generate code the wurblets are executed within a container, the so-called Wurbler. Again, the wurbler is defined as an Ant task and executed from an Ant target, both named wurbelize:

wurbler taskdef

The classpath wurb-cp for the Java compiler is declared as:

wurbel classpath

The code is generated by the wurbelize target:

wurbel target

The next step shows how a wurblet looks like.

next >