Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-741 Job file includes multiple copies of nutch config files.

Andrzej Bialeckibf5290007eee
diff --git a/CHANGES.txt b/CHANGES.txt
index c68ce5f4b..7ec8365bc 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,9 @@ Nutch Change Log
Unreleased Changes
+* NUTCH-741 Job file includes multiple copies of nutch config files
+ (Kirby Bohling via ab)
+
* NUTCH-739 SolrDeleteDuplications too slow when using hadoop (Dmitry Lihachev via ab)
* NUTCH-738 Close SegmentUpdater when FetchedSegments is closed
diff --git a/build.xml b/build.xml
index 3ea76dfc1..051c14282 100644
--- a/build.xml
+++ b/build.xml
@@ -149,7 +149,12 @@
<!-- ================================================================== -->
<target name="job" depends="compile">
<jar jarfile="${build.dir}/${final.name}.job">
- <zipfileset dir="${build.classes}"/>
+ <!-- If the build.classes has the nutch config files because the jar
+ command command has run, exclude them. The conf directory has
+ them.
+ -->
+ <zipfileset dir="${build.classes}"
+ excludes="nutch-default.xml,nutch-site.xml"/>
<zipfileset dir="${conf.dir}" excludes="*.template,hadoop*.*"/>
<zipfileset dir="${lib.dir}" prefix="lib"
includes="**/*.jar" excludes="hadoop-*.jar"/>