Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
We already know that we can use Guvnor to build packages externally. In this section, we'll look at how to do it with a build tool called Ant. We can then easily add artifact compilation steps into our existing build process.
Apache Ant is a general purpose building tool. More information about Ant can be found at http://ant.apache.org/. Module drools-ant, from the standard Drools binary distribution, contains an Ant task for building Drools artifacts. We'll build validation knowledge base from Chapter 3, Validation, using this Ant task.
All of the information required by Ant will be stored in a file called build.xml. We'll now go through this file step-by-step. It starts with a project definition as follows: