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/12 20:27:42 UTC
svn commit: r1182511 - in /nutch/branches/nutchgora: CHANGES.txt build.xml
Author: lewismc
Date: Wed Oct 12 18:27:42 2011
New Revision: 1182511
URL: http://svn.apache.org/viewvc?rev=1182511&view=rev
Log:
commit to address NUTCH-1109 and update to changes.txt
Modified:
nutch/branches/nutchgora/CHANGES.txt
nutch/branches/nutchgora/build.xml
Modified: nutch/branches/nutchgora/CHANGES.txt
URL: http://svn.apache.org/viewvc/nutch/branches/nutchgora/CHANGES.txt?rev=1182511&r1=1182510&r2=1182511&view=diff
==============================================================================
--- nutch/branches/nutchgora/CHANGES.txt (original)
+++ nutch/branches/nutchgora/CHANGES.txt Wed Oct 12 18:27:42 2011
@@ -2,6 +2,8 @@ Nutch Change Log
Release nutchgora - Current Development
+* NUTCH-1109 Add Sonar targets to Ant build.xml (lewismc)
+
* NUTCH-1097 application/xhtml+xml should be enabled in plugin.xml of parse-html; allow multiple mimetypes for plugin.xml (Ferdy via lewismc)
* Change plugin source directory "languageidentifier" to "language-identifier" (lewismc)
Modified: nutch/branches/nutchgora/build.xml
URL: http://svn.apache.org/viewvc/nutch/branches/nutchgora/build.xml?rev=1182511&r1=1182510&r2=1182511&view=diff
==============================================================================
--- nutch/branches/nutchgora/build.xml (original)
+++ nutch/branches/nutchgora/build.xml Wed Oct 12 18:27:42 2011
@@ -705,5 +705,37 @@
</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="2.0" xmlns:sonar="antlib:org.sonar.ant"/>
+
+ <!-- source directories (required) -->
+ <sources>
+ <path location="${src.dir}" />
+ </sources>
+
+ <!-- list of properties (optional) -->
+ <property key="sonar.projectName" value="Nutchgora 2.0 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>