Dashboard > DHIS Documentation > ... > Developer Documentation > Downloading the source code
  DHIS Documentation Log In | Sign Up   View a printable version of the current page.  
  Downloading the source code
Added by margrsto, last edited by Knut Staring on Jun 05, 2008  (view change)
Labels: 
(None)

Downloading the source code

Anyone can check out the code anonymously (i.e. without a server account), simply using HTTP. This will give access to the latest (and not extensively tested) source code. For innstalling the software, we recommend the prepackaged releases Download page. Also, the source of each release is available as zip files there.

Checking out the main DHIS 2 code

  1. Install a Subversion (svn) client.
  2. Decide on a directory for all the source code, e.g. "dhis2src".
  3. Create another directory inside dhis2src, called trunk, and another inside that one, called dhis-2.
  4. The main code is around 70 MB. It is available using this URL: http://www.hisp.info/svn/trunk/dhis-2.
    1. For Tortoise, right click on the folder <PATH>\dhis2src\trunk\dhis-2, and select "SVN Checkout ...". In the popup-window, paste the above URL in the top input field, and click OK.
    2. For command line, cd into dhis2src/trunk/dhis-2 and type
      svn co <THE ABOVE URL>

More info

What to check out?

Depending on what you wish to do, you may later want to follow a similar procedure other modules. You should then browse the source code structure

Below is a quick guide - please ask further questions on the dhis-dev@hisp.info list.

branches for testing various alternatives to the current build
deprecated old stuff
incubator new projects to be included
sandbox test and play
tags the releases
tools internal tools related to the application
trunk the current developer version

Here is a small discussion on when to use branches, incubator and sandbox.

Commit rights - SSH account

If you are becoming familiar with the source code and have made improvements that you would like to commit to the global repository, please contact Ola,Knut or Torgeir to get access. Please let us know who you are and what improvements you have made, and attach your code modifications for us to review before creating an account.

Command line SSH

$ svn co svn+ssh://<username>@svn.hisp.info/var/svn/dhis2

To save typing your password over and over again, try using a SSH key.

TortoiseSVN

svn+ssh://<username>@svn.hisp.info/var/svn/dhis2

Checkout using HTTP

(For those with firewall issues)

  • Download this JAR file (5 MB)
  • run: java -jar Digest.jar username Subversion password
    where username is your username and password is the password you would like to use.
  • send the complete output of the Digest program to Torgeir or Hans

This way you keep your password secret.

Use the command:

$ svn co http://www.hisp.info/svn

The username is inferred from the login name you've used to log into your computer.

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators