Preparing gCad
----------------

1. Create a folder which will be the ROOT directory of your subject system.  Create a folder named "versions". Copy the source code of all the versions in it. For testing purpose, you can use three versions of ArgoUML, which is provided in the gCad folder.

2. Run gCad by double-clicking on the gCad.jar. You may need to run gCad.jar using terminal especially for big subject system to allocate some extra heap space. To run gCad.jar using the terminal, go to where gCad.jar is located and type the following command -
	java -jar -Xmx2000m gCad.jar 	

3. Once gCad is run, go to Tools->Settings to customize your settings.
4. Create a text file named "version.txt" in the ROOT directory and write down the name of all versions separated by new line. You can also create the version file by clicking File->Select Versions. It will open a dialog box. Browse and select multiple versions using the command key. Version name should be properly ordered.

5. You can view the current versions anytime by clicking view-->Current Versions.

6. Detect clones with NiCad. You can generate a script using gCad to detect clones in all of the versions written in version.txt. You will find the script in ROOT directory. To run the script type the following command in the terminal
	sh script_name.sh

Operating gCad
----------------

Now please go to the Tools menu and click on appropriate menu-items to execute following operations-

7. Preprocess all the versions. 

8. Categorize clones by Types.

Once you are done with Step 7 and 8, you do not need to do them again even if you change the mode (Liberal/Strict) of gCad.

9. Map Clones

10. Construct Genealogies.

11. See the genealogies and result summary at the ROOT directory.