• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

FlexCPD ANT task error

New Here ,
Jan 04, 2010 Jan 04, 2010

Copy link to clipboard

Copied

FlexPMD is working like a charm but I got the following error when trying to use FlexCPD:


taskdef A class needed by class com.adobe.ac.cpd.ant.FlexCpdAntTask cannot be found: net/sourceforge/pmd/cpd/Renderer

This is my task definition:

<taskdef name="cpd" classname="com.adobe.ac.cpd.ant.FlexCpdAntTask" classpath="${jar.dir}/flex-pmd-cpd-ant-task-${flexpmd.version}.jar">
        <classpath>
            <pathelement location="${jar.dir}/flex-pmd-files-${flexpmd.version}.jar" />
            <pathelement location="${jar.dir}/flex-pmd-cpd-${flexpmd.version}.jar" />
            <pathelement location="${jar.dir}/as3-plugin-utils-${flexpmd.version}.jar" />
            <pathelement location="${jar.dir}/as3-parser-${flexpmd.version}.jar" />
            <pathelement location="${jar.dir}/as3-parser-api${flexpmd.version}.jar" />
            <pathelement location="${jar.dir}/pmd-4.2.5.jar" />
        </classpath>
</taskdef>

Am I missing a JAR? I copied the task definition from FlexCPD page

Any Clue?

UPDATED:

I got a similar issue with Metrics:

taskdef A class needed by class com.adobe.ac.pmd.metrics.ant.FlexMetricsAntTask cannot be found: org/dom4j/DocumentException

FlexPMD still works fine...

Thanks,

Diego

TOPICS
FlexPMD

Views

861

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jan 05, 2010 Jan 05, 2010

For those two errors, the pmd-4.2.5.jar and the dom4j-*.jar is missing.

They are either missing from the class path, or not present in your ${jar.dir} directory.

Best

Xavier

Votes

Translate

Translate
Adobe Employee ,
Jan 05, 2010 Jan 05, 2010

Copy link to clipboard

Copied

For those two errors, the pmd-4.2.5.jar and the dom4j-*.jar is missing.

They are either missing from the class path, or not present in your ${jar.dir} directory.

Best

Xavier

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 05, 2010 Jan 05, 2010

Copy link to clipboard

Copied

LATEST

Good catch! I was poining to pmd-4.2.5.jar but had pmd-4.2.2.jar on my

jar's folder.

Thanks,

Diego

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines