Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

11. Integration > External artifact building

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:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial