Currently our main build tool for NMS is NAnt.
Building NMS with Nant
There are two steps to build the NMS project code, we'll look at each now.
Setting up your NAnt Repository.
Before you can build the NMS API and the various provider libraries you need to initialize your local NAnt repository so that you have all the required dependencies available for the provider's NAnt build scripts to pull in during their builds. We maintain a tree in the NMS SVN repo with all the required dependencies which allow you to easily populate you NAnt repo. You can check out this tree by executing the following:
Now that you have the vendor tree checkout out you can install the various libaries into you NAnt repo by running each one's build script and with the 'install' target. You will need nant-0.91 or higher. The version 0.90 won't work. Let's take the NUnit testing framework libraries as an example, you install them like so:
Install each of the vendor libraries using the same process and then you are ready to build the NMS libraries.
Building the NMS API and Provider libraries.
To build the code with Nant you will need to build the individual modules, starting with the main NMS module first. Following are the steps needed to build all of the modules, but depending on which provider you are using, you may only need to build the main Apache.NMS module and then your specific provider module. For example, if you are only working with ActiveMQ, then you would need to build the Apache.NMS module and the Apache.NMS.ActiveMQ provider module. Here are the steps to build all of the modules for the trunk version. Modify the paths to build a particular tag release (e.g., change the trunk folder to tags\1.0.0):
This will build all of the providers. The only module that needs to be built first is the Apache.NMS module, as all of the other provider modules depend upon that module. IMPORTANT: In order to build the Apache.NMS.EMS module, you must have a licensed copy of the TIBCO.EMS.dll. This module is not available from The Apache Software Foundation.
If you want to run a build with the unit tests (assuming you have a broker running) then type the following from the trunk folder of the provider module:
Alternatively, you can use the NUnit graphical interface to load the appropriate module's nunit project file. Each project includes a file named Apache.NMS.modulename.Test.nunit, where modulename matches the provider module's name (e.g., ActiveMQ, AMQP, EMS, MQTT, MSMQ, Stomp, WCF, or ZMQ). This file can be loaded into the NUnit's graphical application to run all of the unit tests and see their output.
If you are on windows then you probably want to use Visual Studio 2008; we highly recommend using ReSharper as well, - its a shame there is not a distro for OS X and Linux .
Using MonoDevelop to edit C#
If you are on OS X or Linux (and even Windows nowdays) we recommend the use of MonoDevelop for editing, refactoring and running the code. MonoDevelop can load the NMS Visual Studio Project files, and is integrated with the Mono debugger as well.
Using Eclipse to edit C#
You can use Eclipse as your IDE to edit C# code.
If you want to use Eclipse there are the following two C# eclipse plugins we are aware of
We tend to use BlackSun as it has auto-format and outline view support along with compiler warnings (though you might want to change the default font size).