Qpid Java Build How ToPage edited by keith wallChanges (1)
Full ContentBuild 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.6.0_18 or newer, or Java 1.7 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 EclipseUsing Ant Eclipse taskQPID-3181 introduced a new Ant target 'eclipse' that can be used to auto-generate the Eclipse .project and .classpath files for Qpid. It generates separate Eclipse projects for each Qpid Java component (broker, common, client etc), sets up the classpaths and creates the inter-project dependencies. It relies on http://ant-eclipse.sourceforge.net/ which is not included in the Qpid tree and must be downloaded/installed separately. Proceed as follows: 1. Download the Ant-Eclipse task from http://ant-eclipse.sourceforge.net/. Version 1.0 or higher is required. cd quid/java ant -f build.xml build 4. From the same directory, run the 'eclipse' target to create the .project and .classpath files. ant -f build.xml eclipse -Declipse.container="org.eclipse.jdt.launching.JRE_CONTAINER" -Declipse.compilercompliance=6.0 The setting for -Declipse.container= varies from platform to platform. If unsure, it is best to check the setting from a .classpath from another Java Eclipse project you have on your machine. Look for the <classpath kind="con"../> element in the file.
client
systest
perftests
management/eclipse-plugin
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.
Stop watching space
|
Change email notification preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache Qpid > Qpid Java Build How To keith wall (Confluence)
- [CONF] Apache Qpid > Qpid Java Build How T... keith wall (Confluence)
