OpenCDS Building
From OpenFrag
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
- Java SE 6 (1.6.0_0 or higher)
- NetBeans IDE 5.5 (or higher)
- Substance library (4.1 or higher)
- OpenCDS Subversion local repository
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.
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.
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.
You are now ready to run OpenCDS.




