Note
The Ant build is currently unsupported. Drools is transitioning to Maven 2.0, with SVN source control. With Maven 2.0, the Ant plug in will allow people to run the maven build without installing maven.
1. While Maven is the stadard build tool for Drools and provides lots of additional goals for the management of the project, Ant may also be used for building Drools and executing examples. Ant can be downloaded from Ant.
2. Download Drools via CVS
3. Drools provides a build.xml file to enable the compilation of drools and execution of its examples. The build.xml supports the standard no argument "usage" information. Change to top level and build Drools ant jar-all.
D:\java\workspaces\fixclassloaders\drools>ant
Buildfile: build.xml
usage:
[echo] Clean all outputs
[echo] ant clean
[echo]
[echo] Compile and Jar all modules
[echo] ant jar-all
[echo]
[echo] Compile and Jar individual modules.
[echo] (required modules must be built first)
[echo] Where <module name> can be:
[echo] drools-core, drools-smf, drools-io,
[echo] drools-smf, drools-smftest,
[echo] drools-java, drools-python, drools-gro
[echo] drools-jsr94, drools-examples
[echo] ant drools-<module name>
[echo]
[echo] Run Examples:
[echo] # Escalation Examples
[echo] ant escalation-java
[echo]
[echo] # Fibonacci Examples
[echo] ant fibonacci-java
[echo] ant fibonacci-python
[echo] ant fibonacci-groovy
[echo] ant fibonacci-java-jndi
[echo] ant fibonacci-java-serialized
[echo] ant fibonacci-groovy-jndi
[echo] ant fibonacci-groovy-serialized
[echo] ant fibonacci-native
[echo]
[echo] # Hello World Examples
[echo] ant helloworld-native
[echo] ant helloworld-java
[echo] ant helloworld-groovy
[echo] ant helloworld-python
[echo]
[echo] # House Examples
[echo] ant house
[echo]
[echo] # Miss Manners Examples
[echo] ant manners-jsr94
[echo] ant manners-native
[echo] ant manners-java
[echo] ant manners-groovy
[echo]
[echo] # Pet Store Examples
[echo] ant petstore-java
[echo] ant petstore-groovy
[echo]
[echo] # Prime Factors Examples
[echo] ant primefactors-java
[echo] ant primefactors-java-verboses
[echo]
[echo] # State Examples
[echo] ant state-java
[echo] ant state-groovy
[echo] ant state-python
[echo] # Benchmarks
[echo] ant manners-benchmark
[echo] ant altz-benchmark
4. Examples can be run by following the details given in the usage text.


