MobiComp Repository

From MobiComp

Jump to: navigation, search

We now have a subversion repository for the mobicomp source code. Developers have received a message with their username and password for accessing this.

Once you have the password, you can browse the code in a web browser at

http://www.piranesi.dyndns.org/svn/MobiComp/

You'll see a directory tree representing nine different "sub-projects". To build MobiComp, we only need three of them, though perhaps we'll need to look at others later. For now, we are interested in lib, mobicomp and src. Inside each sub-project directory are three directories, branches, tags and trunk. These are part of the layout of any subversion project. Ignore branches and tags, the actual code tree is under trunk.

To checkout a copy of the source code, you'll need a subversion client. For a linux box, you can find the svn client in subversion, downloads are at:

On windows, there is a client called TortoiseSVN that integrates with the windows file explorer to provide a GUI. I've had a quick play with this and it is quite easy to use. The "daily use" part of the help provides instructions for checking out, commiting, etc. (all from a right-click menu within the file explore). Download at:

To get the current mobicomp source code using svn:

1. create a directory somewhere suitable - mine is ~/src/MobiComp
2. checkout mobicomp, lib and src:
   svn checkout http://www.piranesi.dyndns.org/svn/MobiComp/lib/trunk lib

   svn checkout http://www.piranesi.dyndns.org/svn/MobiComp/mobicomp/trunk mobicomp

   svn checkout http://www.piranesi.dyndns.org/svn/MobiComp/src/trunk src

For TortoiseSVN, you fill in the url and destination directory in a popup dialog after selecting the checkout option.

Note that we checkout the content of the trunk into a local directory with the sub-package name. This avoids filling your disk with all the subversion management files in branches and tags. It also means that you'll have the right directory structure for my ant scripts to work.

When all three are on your local disk, I suggest you run "svn commit", or find the equivalent commit command in Tortoise. You can now play around without fear of messing anything up, but will not be able to put any changes back in the repository (that can only be done with a checked-out "working copy" -- once you commit, the files stay on your disk, but subversion does not treat them as a working copy). Go into the mobicomp directory and type "ant windows" or "ant linux" to build a jar file. The class files will go in a directory called build, and the jar will be put in dist. For more information, see Building MobiComp.

At this point, if you are not already familiar with it, it is probably best to start learning how to use subversion! See the online Subversion book.

If you are familiar with CVS, you'll find subversion quite similar, but with some significant differences.

nsr 12:51, 5 August 2006 (BST)

MobiComp Server

Checkout as follows into the same directory as above:

   svn checkout http://www.piranesi.dyndns.org/svn/MobiComp/ContextServer/trunk ContextServer

For installation instructions, see Context Server Installation

MobiComp VisitorGuide

Checkout as follows into the same directory as above:

   svn checkout http://www.piranesi.dyndns.org/svn/MobiComp/VisitorGuide/trunk VisitorGuide

For installation instructions, see VisitorGuide Installation