This project uses Subversion to manage its source code. Instructions on Subversion use can be found at http://svnbook.red-bean.com/.
The following is a link to the online source tag of the WSO2 BRS 1.2.0 release.
The complete source including the carbon platform can be checked out anonymously from SVN with this command:
$ svn checkout http://svn.wso2.org/repos/wso2/tags/brs/java/1.2.0 wso2brs
This code base contains the BRS product source code inside the directory "product" and it also contains the source for the platform under the directory "carbon-pltform". Further there will be a "build.sh" script to build the BRS with the platform.
This script accepts any of the maven related system properties, but the property to skip the tests has been shortened to "-ts", for example to build the BRS with the platform on skipping tests the command is;
$ ./build.sh -ts
To build off-line with this build script you can pass in the "-o" option. If you just need to build either the product or a specific part of the platform (for example Axis2) you just need to traverse to that directory and use maven to build any of the projects.
Everyone can access the Subversion repository via HTTPS, but Committers must checkout the Subversion repository via HTTPS.
$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/products/brs wso2brs
The Carbon framework related source code can be checked out from the following commands.
$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/core carbon
$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/components carbon-components
The Carbon project is the root project of the OSGi platform on which all the Java product stack is built on top of, and the carbon-components contains all the components not just BRS specific components. So you obviously need to build just the set of components required by the BRS, which can be achieved through;
$ mvn clean install -Dproduct=BRS
To commit changes to the repository, execute the following command (svn will prompt you for your password)
$ svn commit --username your-username -m "A message"
For those users who are stuck behind a corporate firewall which is blocking http access to the Subversion repository, you can try to access it via the developer connection:
$ svn checkout https://svn.wso2.org/repos/wso2/trunk/carbon/products/brs wso2brs
The Subversion client can go through a proxy, if you configure it to do so. First, edit your "servers" configuration file to indicate which proxy to use. The files location depends on your operating system. On Linux or Unix it is located in the directory "~/.subversion". On Windows it is in "%APPDATA%\Subversion". (Try "echo %APPDATA%", note this is a hidden directory.)
There are comments in the file explaining what to do. If you don't have that file, get the latest Subversion client and run any command; this will cause the configuration directory and template files to be created.
Example : Edit the 'servers' file and add something like :
[global] http-proxy-host = your.proxy.name http-proxy-port = 3128