OpenCDS Building

From OpenFrag

Jump to: navigation, search

Contents

Introduction

This page explains how to set up your OpenCDS environment. This guide explains how to set up your environment using NetBeans IDE, since this is what the ant scripts are written for.

Requirements

Pulling the source from Subversion

First we need to pull the source from SVN. We'll be using TortoiseSVN for this.



Once it has finished processing, your directory should look like this.


Adding the NetBeans project

Then go into NetBeans and Create a new project. Chose 'Java project with existing sources'.



Then click Next. Fill in 'OpenCDS' for the project's name. For Project Folder, enter the OpenCDS trunk directory.


image:OpenCDS_ProjectLocation.jpg


Click Next. To the right of the source packages list, click 'Add Folder...'. Add the 'src' directory.


Click Finish. It might show a problem sign on the project. This is because the Substance library hasn't been added yet. Download Substance here. You can just add it as a file.


image:OpenCDS_Library.jpg


The error icon should be gone now. It would be smart to copy the build.xml file in the trunk/ant/ directory to the trunk directory, overwriting the one that NetBeans created. OpenCDS has customized cleaning, since we don't want to delete all files in the dist folder, since that it was NetBeans normally does. Now it is time to set up project Run settings. Right click the project and go to Properties. Go to Run. For Main Class, click browse and press Select Main Class. For Working Directory, click browse and chose the dist directory. If that directory is not there, Build OpenCDS first.


image:OpenCDS_Settings.jpg


You are now ready to run OpenCDS.

Personal tools
OpenFrag