Apache Qpid : Qpid Java Build How To
This page last changed on Sep 24, 2009 by robbie.
Build Instructions - GeneralCheck out the sourceFirstly, check the source for Qpid out of our subversion repository: https://svn.apache.org/repos/asf/qpid/trunk PrerequisitesFor the broker code you need JDK 1.5.0_15 or later. You should set JAVA_HOME and include the bin directory in your PATH. Check it's ok by executing java -v ! If you are wanting to run the python tests against the broker you will of course need a version of python. Build Instructions - TrunkOur build system has reverted to ant as of May 2008. The ant target 'help' will tell you what you need to know about the build system. Ant Build ScriptsCurrently the Qpid java project builds using ant. The ant build system is set up in a modular way, with a top level build script and template for module builds and then a module level build script which inherits from the template. So, at the top level there are:
Then, in each module subdirectory there is:
Build targetsThe main build targets you are probably interested in are:
So, if you just want to compile everything you should run the build target in the top level build.xml file. If you want to build an installable version of Qpid, run the archive task from the top level build.xml file. If you want to compile an individual module, simply run the build target from the appropriate module e.g. to compile the broker source Configuring Eclipse1. Run the ant build from the root directory of Java trunk. Generated CodeThe Broker and Common packages both depend on generated code. After running 'ant' the build/scratch directory will contain this generated code. DependenciesThese dependencies are correct at the time of writting however, if things are not working you can check the dependencies by looking in the modules build.xml file: for i in `find . -name build.xml` ; do echo "$i:"; grep module.depends $i ; done The module.depend value will detail which other modules are dependencies. broker
client
systest
perftests
management/eclipse-plugin
management/console
management/agent
management/tools/qpid-cli
management/client
integrationtests
testkit
tools
client/examples
broker-plugins
What next ?If you want to run your built Qpid package, see our Getting Started Guide for details of how to do that. If you want to run our tests, you can use the ant test or testreport (produces a useful report) targets. |
![]() |
Document generated by Confluence on May 26, 2010 10:33 |