Hi Toni,
In response to the latest post you made on Jira, I believe you are
running an incompatible version of CCCC (v3.pre63) with our sensor.
Originally, we had designed a custom version of CCCC (based off
v3.pre63) to produce XML output (which the stock version did not have).
For the first year or so, we were instructing users to download our
version of CCCC for compatibility (this is likely the document you
read). However, since v3.pre63 there have been 4 new releases of the
tool, each incorporating an XML output. As a result, we decided to
upgrade our sensor to be compatible with the stock XML output, which
unfortunately does not work with our custom implementation of v3.63.
Anyway, that was a long winded explanation for what you need to do. The
short answer is please upgrade to the latest version of CCCC (version
3.1.4) in order to be compatible with our sensor. You can download the
software at: http://sourceforge.net/projects/cccc.
Below, I have pasted a transcript of the Ant CCCC task that I defined
for some test C++ code with the console output. It includes extractions
from the build.xml file, as well as output from running the Ant task. I
hope you find this helpful.
Please let me know how this works for you. Also, it is probably a good
idea to upgrade your Hackystat server to our latest stable release
(v.7.2). You can find more information about this release, including
the source code/ binaries / guided tutorials at:
http://hackydev.ics.hawaii.edu/
Good luck and best regards,
Mike
******build.xml******
<project name="testCCCCSensor" default="cccc">
<description>
Tests the functionality of the CCCCSensor via an Ant task.
</description>
<property name="ccccHome.dir" location="C:/CCCC" />
<property name="ccccOutput.dir" location="C:/code/Test/.cccc" />
<property name="input.dir" location="C:/code/Test/cpp" />
<taskdef name="hacky-cccc"
classname="org.hackystat.sensor.cccc.CCCCSensor"/>
<target name="cccc" description="Runs CCCC over source files and sends
structural data to Hackystat.">
<hacky-cccc ccccHome="${ccccHome.dir}"
ccccExeName="cccc.exe"
ccccOutputDir="${ccccOutput.dir}"
verbose="on">
<fileset dir="${input.dir}" />
</hacky-cccc>
</target>
</project>
******Console Output******
C:\Code\Test>ant cccc
Buildfile: build.xml
cccc:
[hacky-cccc] Sensor enabled?: true
[hacky-cccc] Loading file: C:\code\Test\cpp\Defect.cpp
[hacky-cccc] Created CCCC XML output file: C:\code\Test\.cccc\hs.cccc.0.Def
[hacky-cccc] Loading file: C:\code\Test\cpp\Defect.h
[hacky-cccc] Created CCCC XML output file: C:\code\Test\.cccc\hs.cccc.1.Def
[hacky-cccc] Loading file: C:\code\Test\cpp\GelPort.cpp
[hacky-cccc] Created CCCC XML output file: C:\code\Test\.cccc\hs.cccc.2.Gel
[hacky-cccc] Loading file: C:\code\Test\cpp\GelPort.h
[hacky-cccc] Created CCCC XML output file: C:\code\Test\.cccc\hs.cccc.3.Gel
[hacky-cccc] Loading file: C:\code\Test\cpp\truss.h
[hacky-cccc] Created CCCC XML output file: C:\code\Test\.cccc\hs.cccc.4.tru
[hacky-cccc]
[hacky-cccc] File Name : C:\code\Test\cpp\Defect.cpp
[hacky-cccc] Metric Data : {sourceLines=33, sourceFileName=C:\code\Test\cpp
=0, commentLines=11, if4=0, s_c_r=3.000, runtime=1138998874329}
[hacky-cccc]
[hacky-cccc] File Name : C:\code\Test\cpp\Defect.h
[hacky-cccc] Metric Data : {sourceLines=23, sourceFileName=C:\code\Test\cpp
, commentLines=10, if4=0, s_c_r=2.300, runtime=1138998874329}
[hacky-cccc]
[hacky-cccc] File Name : C:\code\Test\cpp\GelPort.cpp
[hacky-cccc] Metric Data : {sourceLines=258, sourceFileName=C:\code\Test\cp
if4v=0, commentLines=52, if4=0, s_c_r=4.962, runtime=1138998874329}
[hacky-cccc]
[hacky-cccc] File Name : C:\code\Test\cpp\GelPort.h
[hacky-cccc] Metric Data : {sourceLines=34, sourceFileName=C:\code\Test\cpp
=0, commentLines=27, if4=0, s_c_r=1.259, runtime=1138998874329}
[hacky-cccc]
[hacky-cccc] File Name : C:\code\Test\cpp\truss.h
[hacky-cccc] Metric Data : {sourceLines=125, sourceFileName=C:\code\Test\cp
2, commentLines=0, if4=2, s_c_r=******, runtime=1138998874329}
[hacky-cccc]
[hacky-cccc] Hackystat CCCC metric data sent (6 secs.)
BUILD SUCCESSFUL
Total time: 8 seconds
C:\Code\Test>
******CCCC Version******
C:\Code\Test>cccc
CCCC - a code counter for C and C++
===================================
A program to analyse C and C++ source code and report on
some simple software metrics
Version 3.1.4