Version 10, last updated by dbastin at May 05, 2009 UTC
How To Install and Use Donkey in Production
Install
- Download donkey.tar.gz from Hudson build or build it yourself with Ant
- Extract donkey.tar.gz to your applications directory (e.g. /opt or C:\Program Files)
- Add to PATH: PATH = PATH + /opt/donkey or C:\Program Files\donkey)
- If you want your classes to be automatically injected by the Boost Spider, add an entry in the config/injector.properties file containing your package name and your interface implementation pattern. See the file for details.
Without this entry, the Boost Spider will not inject your classes for you.
Use in Script
To use Donkey with your code in production you can create a script that does the following:
- Change dir to relative root (if your config files are located in relative path)
- Setup CLASSPATH to include your code and any additional libraries required (Donkey will supplement your given CLASSPATH with jar files for Donkey and other libraries)
- Run 'donkey.sh' with the fully qualified classname for your Specification
Example Unix Script
#!/bin/sh
cd `dirname $0`
export CLASSPATH=tsi.jar:lib/oracle/ojdbc14.jar
donkey.sh org.ridethedonkey.demo.RideSpecification