O'Reilly logo

Drools JBoss Rules 5.0 Developer's Guide by Michal Bali, Bogdan Brinzarea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

External artifact building

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.

Building with Ant

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required