« Return to Thread: Reusing Flexcover reports with Sonar/Ant (No Maven Repo)

Re: Reusing Flexcover reports with Sonar/Ant (No Maven Repo)

by Evgeny Mandrikov :: Rate this Message:

| View in Thread

See http://jira.codehaus.org/browse/SONARPLUGINS-959

On Fri, Jul 22, 2011 at 16:48, Christopher Lefevre <CLefevre@...> wrote:

Hello Oliver,

 

I can produce a log file, but NOTHING actually moves into Sonar, and FlexPMD doesn’t run at all. However, everything I’ve found has pointed to only being able to use Maven for the Flex functionality, so we’ve decided to simply use Maven build scripts for the testing, while using Ant for actual deployment scripts.

 

I set up a quick Maven script to load the test into Sonar and now Flex PMD is working and displaying all of the metrics that we wanted, which it was not working at all previously, however now we have an issue with FlexMojos not resolving the PATH for the Flash Player in Windows, but that is a different issue altogether than what I originally emailed regarding.

 

 

-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.

 

From: Olivier Gaudin [mailto:gaudol@...]
Sent: Thursday, July 21, 2011 4:53 PM
To: user@...
Subject: Re: [sonar-user] Reusing Flexcover reports with Sonar/Ant (No Maven Repo)

 

Hi Christophe,

 

Where do you get to ? Can you share the analysis log file ?

Olivier

On Wed, Jul 20, 2011 at 8:45 PM, Christopher Lefevre <CLefevre@...> wrote:

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.

 

 




--
Best regards,
Evgeny Mandrikov aka Godin <http://godin.net.ru>
http://twitter.com/_godin_

 « Return to Thread: Reusing Flexcover reports with Sonar/Ant (No Maven Repo)