DragMath Documentation - Setting up DragMath CVS in NetBeans

## Setting up DragMath CVS in NetBeans

Below are the instructions on how to get active as a developer of DragMath and set up NetBeans with the DragMath code versioning system (CVS).

1. Install NetBeans
2. Get source code from DragMath CVS repository
3. Update and Commiting your local source code copy

1. Install NetBeans

NetBeans is the integrated development environment (IDE) used for DragMath. It is open source and can be downloaded from http://www.netbeans.org.

2. Get source code from DragMath CVS repository

Start NetBeans and do the following to get the DragMath source code:

1. File -> New Project

2. Choose the 'General' category, and then 'Java Application' under Projects, then click Next.

3. Set the Project Name as "ddma". Click Browse to choose the location where you would like the code stored. Then click Next.

4. CVS -> Checkout. The click Edit.

5. Fill in the location information identifying the DragMath CVS repository and click OK.
Access Method: pserver for anonymous, ext for developer accounts
User: "anonymous" or your DragMath developer account at SourceForge
Host: dragmath.cvs.sourceforge.net
Repository Path: /cvsroot/dragmath

6. Enter your password, none for anonymous login, then click Next

7. Set the Module as "ddma", and the Local Folder to the same location the Project was created. Then click Finish.

8. Once the source code has been downloaded, click Close to the popup message about opening the project.

9. The different packages containing the source code can now be seen in the projects window. The package 'ddma' containing the Main.java class can be deleted, as it was created for the new Project and is not part of the DragMath source code.

10. The libraries used by DragMath must now be added to the Project. Right click on Libraries in the Project window, and go to 'Add JAR/Folder...'. Navigate to the ddma -> lib folder and add all the .jar files from this folder.

11. The code is now ready to work on.

3. Update and Commiting your local source code copy

The code can be updated and commited using the Update and Commit options under the CVS menu in NetBeans.