Skip to main content
Participant
Dec 30, 2009 5:46 PM UTC
Question

FlexMetrics not counting the JavaDoc comments

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
Dec 31, 2009 9:05 AM UTC

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

Translate
Participant
Jan 2, 2010 3:14 PM UTC

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

Translate
Inspiring
Jan 3, 2010 5:41 AM UTC

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

Translate