Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Add lib-regex-filter and urlfilter-automaton to the list of javadoc packages. Add lib-regex-filter and urlfilter-automaton to the list of deployes, tested and cleaned plugins. Add the regular expression rule file property for urlfilter-automaton.

Jerome Charron8d211bd5637f
diff --git a/build.xml b/build.xml
index d09cae745..feae6e3bd 100644
--- a/build.xml
+++ b/build.xml
@@ -249,6 +249,7 @@
<packageset dir="${src.dir}"/>
<packageset dir="${plugins.dir}/lib-http/src/java"/>
<packageset dir="${plugins.dir}/lib-parsems/src/java"/>
+ <packageset dir="${plugins.dir}/lib-regex-filter/src/java"/>
<packageset dir="${plugins.dir}/microformats-reltag/src/java"/>
<packageset dir="${plugins.dir}/ontology/src/java"/>
<packageset dir="${plugins.dir}/protocol-file/src/java"/>
@@ -273,6 +274,7 @@
<packageset dir="${plugins.dir}/query-more/src/java"/>
<packageset dir="${plugins.dir}/query-site/src/java"/>
<packageset dir="${plugins.dir}/query-url/src/java"/>
+ <packageset dir="${plugins.dir}/urlfilter-automaton/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-regex/src/java"/>
<packageset dir="${plugins.dir}/urlfilter-prefix/src/java"/>
<packageset dir="${plugins.dir}/creativecommons/src/java"/>
diff --git a/conf/nutch-default.xml b/conf/nutch-default.xml
index 47c79c492..80be0973c 100644
--- a/conf/nutch-default.xml
+++ b/conf/nutch-default.xml
@@ -611,6 +611,13 @@
used by urlfilter-regex (RegexURLFilter) plugin.</description>
</property>
+<property>
+ <name>urlfilter.automaton.file</name>
+ <value>automaton-urlfilter.txt</value>
+ <description>Name of file on CLASSPATH containing regular expressions
+ used by urlfilter-automaton (AutomatonURLFilter) plugin.</description>
+</property>
+
<property>
<name>urlfilter.prefix.file</name>
<value>prefix-urlfilter.txt</value>
diff --git a/src/plugin/build.xml b/src/plugin/build.xml
index 86e437089..42e8b4f0b 100755
--- a/src/plugin/build.xml
+++ b/src/plugin/build.xml
@@ -23,6 +23,7 @@
<ant dir="lib-lucene-analyzers" target="deploy"/>
<ant dir="lib-nekohtml" target="deploy"/>
<ant dir="lib-parsems" target="deploy"/>
+ <ant dir="lib-regex-filter" target="deploy"/>
<ant dir="microformats-reltag" target="deploy"/>
<ant dir="nutch-extensionpoints" target="deploy"/>
<ant dir="ontology" target="deploy"/>
@@ -47,6 +48,7 @@
<ant dir="query-more" target="deploy"/>
<ant dir="query-site" target="deploy"/>
<ant dir="query-url" target="deploy"/>
+ <ant dir="urlfilter-automaton" target="deploy"/>
<ant dir="urlfilter-prefix" target="deploy"/>
<ant dir="urlfilter-regex" target="deploy"/>
</target>
@@ -71,6 +73,8 @@
<!-- <ant dir="parse-rtf" target="test"/> -->
<ant dir="parse-swf" target="test"/>
<ant dir="parse-zip" target="test"/>
+ <ant dir="urlfilter-automaton" target="test"/>
+ <ant dir="urlfilter-regex" target="test"/>
</parallel>
</target>
@@ -92,6 +96,7 @@
<ant dir="lib-lucene-analyzers" target="clean"/>
<ant dir="lib-nekohtml" target="clean"/>
<ant dir="lib-parsems" target="clean"/>
+ <ant dir="lib-regex-filter" target="clean"/>
<ant dir="microformats-reltag" target="clean"/>
<ant dir="nutch-extensionpoints" target="clean"/>
<ant dir="ontology" target="clean"/>
@@ -116,6 +121,7 @@
<ant dir="query-more" target="clean"/>
<ant dir="query-site" target="clean"/>
<ant dir="query-url" target="clean"/>
+ <ant dir="urlfilter-automaton" target="clean"/>
<ant dir="urlfilter-prefix" target="clean"/>
<ant dir="urlfilter-regex" target="clean"/>
</target>