Apache Nutch is an extensible and scalable web crawler
NUTCH-196 : Add neko html library (lib-nekohtml)
Jerome Charron261c717d5b81
diff --git a/src/plugin/clustering-carrot2/build.xml b/src/plugin/clustering-carrot2/build.xmlindex 14f95ac5a..7388bd93d 100644--- a/src/plugin/clustering-carrot2/build.xml+++ b/src/plugin/clustering-carrot2/build.xml@@ -7,7 +7,7 @@<path id="plugin.deps"><fileset dir="${nutch.root}/build"><include name="**/lib-log4j/*.jar" />- <include name="**/lib-commons-httpclient/*.jar" />+ <include name="**/lib-nekohtml/*.jar" /></fileset></path>diff --git a/src/plugin/clustering-carrot2/lib/nekohtml-0.9.2.jar b/src/plugin/clustering-carrot2/lib/nekohtml-0.9.2.jardeleted file mode 100644index a98eff3d8..000000000Binary files a/src/plugin/clustering-carrot2/lib/nekohtml-0.9.2.jar and /dev/null differdiff --git a/src/plugin/clustering-carrot2/plugin.xml b/src/plugin/clustering-carrot2/plugin.xmlindex ff48a300c..9fd60fcd0 100644--- a/src/plugin/clustering-carrot2/plugin.xml+++ b/src/plugin/clustering-carrot2/plugin.xml@@ -22,15 +22,12 @@<library name="commons-pool-1.1.jar"/><library name="FSA.jar"/><library name="Jama-1.0.1-patched.jar"/>- <library name="log4j-1.2.8.jar"/>-- <library name="nekohtml-0.9.2.jar"/></runtime><requires><import plugin="nutch-extensionpoints"/><import plugin="lib-log4j"/>- <import plugin="lib-commons-httpclient"/>+ <import plugin="lib-nekohtml"/></requires><extension id="org.apache.nutch.clustering.carrot2"diff --git a/src/plugin/lib-nekohtml/build.xml b/src/plugin/lib-nekohtml/build.xmlnew file mode 100644index 000000000..50e9aac20--- /dev/null+++ b/src/plugin/lib-nekohtml/build.xml@@ -0,0 +1,21 @@+<?xml version="1.0"?>++<project name="lib-nekohtml" default="jar">++ <import file="../build-plugin.xml"/>++ <!--+ ! Override the compile and jar targets,+ ! since there is nothing to compile here.+ ! -->+ <target name="compile" depends="init">+ <echo message="Compiling plugin: ${name}"/>+ </target>++ <target name="jar" depends="compile">+ <copy todir="${build.dir}" verbose="true">+ <fileset dir="./lib" includes="**/*.jar"/>+ </copy>+ </target>++</project>diff --git a/src/plugin/parse-html/lib/nekohtml-0.9.4.jar b/src/plugin/lib-nekohtml/lib/nekohtml-0.9.4.jarsimilarity index 100%rename from src/plugin/parse-html/lib/nekohtml-0.9.4.jarrename to src/plugin/lib-nekohtml/lib/nekohtml-0.9.4.jardiff --git a/src/plugin/lib-nekohtml/plugin.xml b/src/plugin/lib-nekohtml/plugin.xmlnew file mode 100644index 000000000..5ed2342ef--- /dev/null+++ b/src/plugin/lib-nekohtml/plugin.xml@@ -0,0 +1,21 @@+<?xml version="1.0" encoding="UTF-8"?>+<!--+ ! NekoHTML is a simple HTML scanner and tag balancer.+ ! (http://people.apache.org/~andyc/neko/doc/html/index.html)+ !+ ! Dowload : http://people.apache.org/~andyc/neko/doc/html/index.html+ ! License : http://people.apache.org/~andyc/neko/LICENSE+ !-->+<plugin+ id="lib-nekohtml"+ name="CyberNeko HTML Parser"+ version="0.9.4"+ provider-name="org.cyberneko">++ <runtime>+ <library name="nekohtml-0.9.4.jar">+ <export name="*"/>+ </library>+ </runtime>++</plugin>diff --git a/src/plugin/parse-html/build.xml b/src/plugin/parse-html/build.xmlindex f6ae595e1..0a3d6f905 100755--- a/src/plugin/parse-html/build.xml+++ b/src/plugin/parse-html/build.xml@@ -4,4 +4,10 @@<import file="../build-plugin.xml"/>+ <path id="plugin.deps">+ <fileset dir="${nutch.root}/build">+ <include name="**/lib-nekohtml/*.jar" />+ </fileset>+ </path>+</project>diff --git a/src/plugin/parse-html/lib/nekohtml-0.9.4.LICENSE.txt b/src/plugin/parse-html/lib/nekohtml-0.9.4.LICENSE.txtdeleted file mode 100644index 36aff6da7..000000000--- a/src/plugin/parse-html/lib/nekohtml-0.9.4.LICENSE.txt+++ /dev/null@@ -1,47 +0,0 @@-The CyberNeko Software License, Version 1.0---(C) Copyright 2002, Andy Clark. All rights reserved.--Redistribution and use in source and binary forms, with or without-modification, are permitted provided that the following conditions-are met:--1. Redistributions of source code must retain the above copyright- notice, this list of conditions and the following disclaimer.--2. Redistributions in binary form must reproduce the above copyright- notice, this list of conditions and the following disclaimer in- the documentation and/or other materials provided with the- distribution.--3. The end-user documentation included with the redistribution,- if any, must include the following acknowledgment:- "This product includes software developed by Andy Clark."- Alternately, this acknowledgment may appear in the software itself,- if and wherever such third-party acknowledgments normally appear.--4. The names "CyberNeko" and "NekoHTML" must not be used to endorse- or promote products derived from this software without prior- written permission. For written permission, please contact--5. Products derived from this software may not be called "NekoHTML",- nor may "NekoHTML" appear in their name, without prior written- permission of the author.--THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE-DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,-OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT-OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.--====================================================================--This license is based on the Apache Software License, version 1.1.\ No newline at end of filediff --git a/src/plugin/parse-html/plugin.xml b/src/plugin/parse-html/plugin.xmlindex e05c6e4f7..cf51e9a90 100755--- a/src/plugin/parse-html/plugin.xml+++ b/src/plugin/parse-html/plugin.xml@@ -9,12 +9,12 @@<library name="parse-html.jar"><export name="*"/></library>- <library name="nekohtml-0.9.4.jar"/><library name="tagsoup-1.0rc3.jar"/></runtime><requires><import plugin="nutch-extensionpoints"/>+ <import plugin="lib-nekohtml"/></requires><extension id="org.apache.nutch.parse.html"