Christopher Lefevre | 20 Jul 20:45
Favicon

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.

 

Olivier Gaudin | 21 Jul 22:52
Picon

Re: 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-V0lzfvNe2ePxBcNI4muyVA@public.gmane.org> 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.

 


Christopher Lefevre | 22 Jul 14:48
Favicon

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

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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Thursday, July 21, 2011 4:53 PM
To: user-4ptiAEWXIyqxIXFVlbCvtR2eb7JE58TQ@public.gmane.org
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-V0lzfvNe2ePxBcNI4muyVA@public.gmane.org> 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.

 

 

Evgeny Mandrikov | 22 Jul 16:17
Picon
Gravatar

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

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

On Fri, Jul 22, 2011 at 16:48, Christopher Lefevre <CLefevre-V0lzfvNe2ePxBcNI4muyVA@public.gmane.org> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Thursday, July 21, 2011 4:53 PM
To: user-4ptiAEWXIyqxIXFVlbCvtR2eb7JE58TQ@public.gmane.org
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-V0lzfvNe2ePxBcNI4muyVA@public.gmane.org> 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_
Christopher Lefevre | 22 Jul 17:00
Favicon

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

The problem was less about getting Flex PMD and FlexCover to run, and more on point that Sonar wouldn’t reuse any of the reports we made. FlexPMD we thought we could use the Sonar Plugin for that at least, but to no avail. For Flexcover, we were trying to reuse that report, which was transformed into Cobertura via stylesheet, and it wasn’t being used.

 

I know it’s at least being looked at as it is taking time to go through the file, whereas I’ve changed the file and the time to go through that line was noticeable reduced.

 

 

-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: Evgeny Mandrikov [mailto:mandrikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Friday, July 22, 2011 10:17 AM
To: user-4ptiAEWXIyqxIXFVlbCvtR2eb7JE58TQ@public.gmane.org
Subject: Re: [sonar-user] Reusing Flexcover reports with Sonar/Ant (No Maven Repo)

 

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

On Fri, Jul 22, 2011 at 16:48, Christopher Lefevre <CLefevre-V0lzfvNe2ePxBcNI4muyVA@public.gmane.org> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Thursday, July 21, 2011 4:53 PM
To: user-4ptiAEWXIyqxIXFVlbCvtR2eb7JE58TQ@public.gmane.org
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-V0lzfvNe2ePxBcNI4muyVA@public.gmane.org> 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_


Gmane