www-builds mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewis john mcgibbney <lewis.mcgibb...@gmail.com>
Subject Re: Sonar Plugin for Nutch Jenkins CI nightly build.
Date Tue, 27 Sep 2011 20:17:28 GMT
Hi,

I've attached my final patch to the Nutch Jira issue [1] I opened a while
back. I paste the code below and wonder if you can quickly give it a once
over before I commit. This is my first time using Sonar and I lack the
experience to pull this one off on my own. If you were able to provide
comments it would be greatly appreciated. In addition I've opened a Infra
Jira ticket here [2] as advised, thanks for this.

+  <!-- ==================================================================
-->
+  <!-- SONAR targets
-->
+  <!-- ==================================================================
-->
+
+  <!-- Define the Sonar task if this hasn't been done in a common script
-->
+  <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml">
+    <classpath path="../sonar-ant-task-1.1.jar" />
+  </taskdef>
+
+  <!-- Add the target -->
+  <target name="sonar">
+    <sonar:sonar workDir="${build.dir}" key="org.apache.nutch:nutch"
version="Nutch Branch-1.4" xmlns:sonar="antlib:org.sonar.ant"/>
+
+    <!-- source directories (required) -->
+    <sources>
+      <path location="${src.dir}" />
+    </sources>
+
+    <!-- list of properties (optional) -->
+    <property key="sonar.projectName" value="Nutch Branch-1.4 Sonar
Analysis" />
+    <property key="sonar.dynamicAnalysis" value="false" />
+
+    <!-- test source directories (optional) -->
+    <tests>
+      <path location="${test.src.dir}" />
+    </tests>
+
+    <!-- binaries directories, which contain for example the compiled Java
bytecode -->
+     <binaries>
+       <path location="${build.dir}/classes"/>
+     </binaries>
+  </target>

[1] https://issues.apache.org/jira/browse/NUTCH-1109
[2] https://issues.apache.org/jira/browse/INFRA-3965

On Tue, Sep 27, 2011 at 8:17 PM, Olivier Lamy <olamy@apache.org> wrote:

> A Jira is always good for follow up as we have various tz etc....
>
> Can you have a look at [1] and add some targets in your build file
> (you can probably test sonar with a local instance)
> When it's done I will be able to setup a Jenkins jobs and pass needed
> properties (-Dsonar.jdbc.username= etc...).
>
> --
> Olivier Lamy
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message