Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

commit to address NUTCH-1109 and update to changes.txt

Lewis John McGibbney1ecf4653351e
diff --git a/CHANGES.txt b/CHANGES.txt
index 466ab9f76..33281cd6b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -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)
diff --git a/build.xml b/build.xml
index fa116e535..1e1062440 100644
--- a/build.xml
+++ b/build.xml
@@ -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>