Skip to main content
Participant
December 30, 2009
Question

FlexMetrics not counting the JavaDoc comments

  • December 30, 2009
  • 1 reply
  • 608 views

Hi folks,

i configured my ant build file like in the documentation... but FlexMetrics doesn't count the comments. I get a nice list of my packages, how much classes and functions are in... but no count for the comments...

<taskdef

     name="metrics"

     classname="com.adobe.ac.pmd.metrics.ant.FlexMetricsAntTask"

     classpath="${flexpmd.dir}/flex-pmd-metrics-ant-task-${flexpmd.version}.jar"

     onerror="report">

     <classpath>

          <pathelement location="${flexpmd.dir}/flex-pmd-files-${flexpmd.version}.jar" />

          <pathelement location="${flexpmd.dir}/flex-pmd-metrics-${flexpmd.version}.jar" />

          <pathelement location="${flexpmd.dir}/as3-plugin-utils-${flexpmd.version}.jar" />

          <pathelement location="${flexpmd.dir}/as3-parser-${flexpmd.version}.jar" />

          <pathelement location="${flexpmd.dir}/as3-parser-api-${flexpmd.version}.jar" />

          <pathelement location="${flexpmd.dir}/commons-lang-2.4.jar" />

          <pathelement location="${flexpmd.dir}/flex-pmd-ruleset-api-${flexpmd.version}.jar" />

          <pathelement location="${flexpmd.dir}/pmd-4.2.5.jar" />

          <pathelement location="${flexpmd.dir}/dom4j-1.6.1.jar"/>

     </classpath>

</taskdef>

<target

name="metrics">

     <metrics sourcedirectory="${src.dir}" outputfile="${bin.dir}/javancss.xml"/>

</target>


Anybody else with this strange behaviour? Ah and yes, we do have comments in our source files...

Oli

This topic has been closed for replies.

1 reply

Adobe Employee
December 31, 2009

Hi Oli,

In the version 1.0 of FlexMetrics, the AsDocs and other comments were not count.

https://bugs.adobe.com/jira/browse/FLEXPMD-138

It is the case in version 1.1, to be released.

You can find the lastest developement jar here

Xavier

Participant
January 2, 2010

Hi Xavier,

unfortunately there are only the java sources and AS testcases in it, no jar...

Can i download a .jar out of svn?

Oli

Adobe Employee
January 3, 2010

This jar is currently the latest which contains this fix:

http://opensource.adobe.com/svn/opensource/flexpmd/maven-repository/snapshot/com/adobe/ac/flex-pmd-metrics/1.1-SNAPSHOT/flex-pmd-metrics-1.1-20100102.060531-4.jar

Cheers,

Xavier