GCF-Fileconvert  Copyright (C) 2012 Tiantian Wang, Mark Harman, Yue Jia and JensKrinke 

This program comes with ABSOLUTELY NO WARRANTY; 

Example usage:

Subject: Weltab

(1)PMD’s CPD
During the clone detection, pmd’s CPD outputs a .txt file (e.g. pmd.txt)
Execute the GCF_Fileconverters. For example,
java -jar GCF_Fileconverters.jar 3 /cs/research/crest/projects/cloned/CloneEva/ICSE2013_exp/exp1_jet/subjects/weltab pmd.txt 6
The GCF file pmd-GCF.xml is generated.

(2) RCF file (IClones)
RCF is a kind of clone representation format. iClones also provide clone detection result in RCF format (e.g. iclone.rcf).
Execute the GCF_Fileconverters. For example,
java -jar GCF_Fileconverters.jar 5 iclone.rcf 6
The GCF file iclone-GCF.xml is generated.

(3)CCFinder
During the clone detection, CCFinder creates a .ccfxd file (e.g. ccfinder.ccfxd) and a directory (.ccfxprepdir). If you apply clone detection on weltab directory, then the .ccfxprepdir will be created right inside that directory.
Follow the steps as follows:
1. Detect clones with CCFinder and then rename the .ccfxprepdir directory to ccfxprepdir. 2.The output file is a binary one (such as a.ccfxd). You need to convert that into a text file (see here). 
For example, ./ccfx p ccfinder.ccfxd   > ccfinder.txt
From now, we will refer the text file as the result file.
3. Put the .ccfxprepdir directory to the same directory where weltab folder resides.
4. Delete the original weltab folder.
5. Rename the .ccfxprepdir directory as weltab, the renamed .ccfxprepdir directory can be found (here).
6. Execute the GCF_Fileconverters. For example,
java -jar GCF_Fileconverters.jar 1 ccfinder.txt 6
The GCF file ccfinder-GCF.xml is generated.

(4)ConQAT
During the clone detection, ConQAT outputs a .xml file (e.g. conqat.xml).
Execute the GCF_Fileconverters. For example,
java -jar GCF_Fileconverters.jar 4 weltab conqat.xml 6
The GCF file conqat-GCF.xml is generated.

(5) Simian
During the clone detection, Simian outputs a .txt file (e.g. simian.txt).
Execute the GCF_Fileconverters. For example,
java -jar GCF_Fileconverters.jar 6 /cs/research/crest/projects/cloned/CloneEva/ICSE2013_exp/exp1_jet/subjects/weltab simian.txt 6
The GCF file simian-GCF.xml is generated.

(6) NiCAD
During the clone detection, NiCAD outputs a .xml file (e.g. nicad.xml).
Execute the GCF_Fileconverters. For example,
java -jar GCF_Fileconverters.jar 7 weltab nicad.xml 6
The GCF file nicad-GCF.xml is generated.

