Copy link to clipboard
Copied
Hey, I just downloaded and am getting running with FlexMetrics. I'm running this from the ant taskdef. When I run it, I get what looks to be valid and fine XML reports generated, but I also get a bunch of warnings, each of which reads:
[flex-metrics] Oct 25, 2010 11:54:00 AM de.bokelberg.flex.parser.AS3Scanner$XMLVerifier verify [flex-metrics] WARNING: The markup in the document preceding the root element must be well-formed. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) [flex-metrics] com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174) [flex-metrics] com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
The taskdef element is pretty standard:
<taskdef name="flex-metrics" classname="com.adobe.ac.pmd.metrics.ant.FlexMetricsAntTask" classpath="${flexpmd.libs}/flex-pmd-metrics-ant-task-${flexpmd.version}.jar">
<classpath>
<pathelement location="${flexpmd.libs}/flex-pmd-files-${flexpmd.version}.jar" />
<pathelement location="${flexpmd.libs}/flex-pmd-metrics-${flexpmd.version}.jar" />
<pathelement location="${flexpmd.libs}/as3-plugin-utils-${flexpmd.version}.jar" />
<pathelement location="${flexpmd.libs}/as3-parser-${flexpmd.version}.jar" />
<pathelement location="${flexpmd.libs}/as3-parser-api-${flexpmd.version}.jar" />
<pathelement location="${flexpmd.libs}/commons-lang-2.4.jar" />
<pathelement location="${flexpmd.libs}/flex-pmd-ruleset-api-${flexpmd.version}.jar" />
<pathelement location="${flexpmd.libs}/pmd-4.2.5.jar" />
<pathelement location="${flexpmd.libs}/dom4j-1.6.1.jar"/>
</classpath>
</taskdef>
Copy link to clipboard
Copied
My working theory is that it chokes on instances of the Vector Object (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Vector.html) but I have yet to verify that conclusively.