Checking Out Code For the First Time

So, you want to check out code from our repository, but this is the first time you've done it? Let's assume that you want to check out the sources for the JSP tag library project. Here's the step-by-step process:

  1. Make sure that you have Subversion installed on your system. If you don't, get it.
  2. Make a directory for the project. Say something like the following:
    $ mkdir ~/xqzonejsp
  3. Change into that directory and then type the following:
    $ svn checkout http://developer.marklogic.com/svn/jsp/trunk/ ~/xqzonejsp
    You should see output that looks like this:
    A src
    A src/java
    A src/java/com
    A src/java/com/marklogic
    ...
  4. There is no next step, you've got the code now.

To keep your local copy updated with the freshest bits from the repository, execute the following:

$ svn update ~/xqzonejsp

Now, you'll want to read the book Version Control with Subversion. This book will help you understand how best to use Subversion both with our source code repository and others.