You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by le...@apache.org on 2011/10/10 21:18:30 UTC

svn commit: r1181153 - in /nutch/trunk: CHANGES.txt build.xml

Author: lewismc
Date: Mon Oct 10 19:18:30 2011
New Revision: 1181153

URL: http://svn.apache.org/viewvc?rev=1181153&view=rev
Log:
commit to address NUTCH-1109 and update to changes.txt

Modified:
    nutch/trunk/CHANGES.txt
    nutch/trunk/build.xml

Modified: nutch/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/nutch/trunk/CHANGES.txt?rev=1181153&r1=1181152&r2=1181153&view=diff
==============================================================================
--- nutch/trunk/CHANGES.txt (original)
+++ nutch/trunk/CHANGES.txt Mon Oct 10 19:18:30 2011
@@ -2,9 +2,11 @@ Nutch Change Log
 
 Release 1.4 - Current development
 
+* NUTCH-1109 Add Sonar targets to Ant build.xml (lewismc) 
+
 * NUTCH-1152 Upgrade SolrJ to version 3.4.0 (ab)
 
-* NUTCH-1136 Ant pmd target is broken
+* NUTCH-1136 Ant pmd target is broken (lewismc)
 
 * NUTCH-1058 Upgrade Solr schema to version 1.4 (markus)
 

Modified: nutch/trunk/build.xml
URL: http://svn.apache.org/viewvc/nutch/trunk/build.xml?rev=1181153&r1=1181152&r2=1181153&view=diff
==============================================================================
--- nutch/trunk/build.xml (original)
+++ nutch/trunk/build.xml Mon Oct 10 19:18:30 2011
@@ -699,5 +699,38 @@
       </fileset>
     </rat:report>
   </target>
+
+  <!-- ================================================================== -->
+  <!-- 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=""/>
+  </taskdef>
+  
+  <!-- Add the target -->
+  <target name="sonar">
+    <sonar:sonar workDir="${build.dir}" key="org.apache.nutch:nutch" version="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 Trunk 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>
 	
 </project>