Reusing Flexcover reports with Sonar/Ant (No Maven Repo)
Hello, I am trying to run a build using Ant, for a flex application, with coverage reports using Flexcover. These reports are then transformed to Cobertura via XSLT, and then the uploaded to Sonar using the Ant Sonar examples shown on the wiki. Running Ant 1.8.2, the Sonar Ant Plug-in 1.1, and Flex Plug-in for Sonar version .4 (All of the documentation for this appears to require Maven? I cannot do any of the settings setup for it as I am not using Maven at all and therefore do not have a .mvn folder with settings). The relevant Ant scripting entries I have are below: <!-- sonar properties --> <property name="sonar.host.url" value="http://sonarweb:9000/" /> <property name="sonar.jdbc.url" value="jdbc:mysql://sonarweb/sonar" /> <property name="sonar.jdbc.driverClassName" value="com.mysql.jdbc.Driver" /> <property name="sonar.jdbc.username" value="xxxx" /> <property name="sonar.jdbc.password" value="xxxx" /> <property name="sonar.java.source" value="1.6" /> <property name="sonar.java.target" value="1.6" /> <property name="sonar.dynamicAnalysis" value="reuseReports" /> <property name="sonar.cobertura.reportPath" value="${flexcover.dir}/coverage.xml" /> <property name="sonar.language" value="flex" /> <!-- sonar classpath --> <path id="sonar.classpath"> <!--<fileset dir="${sonar.ant.home}">--> <fileset dir="C:/Program Files/Apache Software Foundation/apache-ant-1.8.2/lib"> <include name="*.jar"/> </fileset> </path> <!-- sonar taskdef --> <taskdef uri="antlib:org.sonar.ant" > <!--classname="org.sonar.ant.SonarTask" >--> <classpath> <fileset dir="${sonar.ant.home}"> <include name="*.jar"/> </fileset> </classpath> </taskdef> <!-- sonar task --> <!--target name="sonar" depends="test-and-instrument"--> <target name="sonar"> <sonar:sonar workDir="${basedir}/sonar" key="TestRun:WD" version="1" xmlns:sonar="antlib:org.sonar.ant"> <sources> <path location="${basedir}/src"/> </sources> <binaries> <path location="${basedir}/bin-devSrv"/> </binaries> </sonar:sonar> </target> Thank you for your time, -Christopher Lefevre
-----------------------------------
The information contained in this electronic message and any attached document(s) is intended only for the personal and confidential use of the designated recipients named above. This message may be confidential. If the reader of this message is not the intended recipient, you are hereby notified that you have received this document in error, and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify sender immediately by telephone (603) 262-6300 or by electronic mail immediately. Thank you.
RSS Feed