DiffEngine Development Environment Setup

Currently Diffengine is being developed under Windows XP, Eclipse and GNU Tools. All software needed for development except Windows is open-source.

Software

Other versions may work too, but the process was checked with these.

Directory settings

These paths will be created in system. Some of them will be created by software installation, others need to be created manually.

We have to add following paths to PATH environment variable (using My Computer > Properties > Advanced > Environment variables)

<CYGWIN_DIR>\bin
<SVN_DIR>\bin

If PATH variable doesn't contain <WINSYS_DIR>, we add it too.

Creating Subversion Repository

Copy diffengine.dump file into <SVNDB_DIR>
Enter directory <SVNDB_DIR>

Enter following commands

svnadmin create diffengine
svnadmin load diffengine < diffengine.dump

This will create and load subversion repository diffengine.

Now we have to create windows service, so that other tools can access the repository

sc create svnserve binpath= "<SVN_DIR>\bin\svnserve.exe --service --root <SVNDB_DIR>" displayname= "Subversion Repository" depend= Tcpip

Then we start it and optionally we can set it to start automatically on Windows start-up

sc start svnserve
sc config svnserve start= auto

Creating Eclipse Project

In Eclipse, open perspective 'SVN Repository Exploring ' (Window > Open Perspective > Other... > SVN Repository Exploring) and add new repository location

svn://localhost/diffengine

Check-out trunk as new project (Check out as a project configured using the New Project Wizard), name it 'diffengine' and make it a 'Managed Make C Project'.

New directory '<WORKSPACE_DIR>\diffengine' will be created.

Create new subdirectory '<WORKSPACE_DIR>\diffengine\output' . It is used for debugging output.

Unpack testdata.zip into '<WORKSPACE_DIR>\diffengine' which creates '<WORKSPACE_DIR>\diffengine\testdata' folder.

Eclipse Settings

Settings in Window > Preferences:

General > Workspace > Build automatically - leave unchecked