Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-843 : removed task extract-hadoop from Ant build to avoid creation of hadoop scripts in bin dir

Julien Nioche783f857cf4c6
diff --git a/build.xml b/build.xml
index c7d5b37f0..3d9432187 100644
--- a/build.xml
+++ b/build.xml
@@ -67,25 +67,10 @@
</copy>
</target>
- <target name="extract-hadoop" depends="ivy-init">
- <!-- unpack hadoop scripts from hadoop jar into bin directory -->
- <mkdir dir="${build.dir}/hadoop"/>
- <unjar dest="${build.dir}/hadoop">
- <fileset dir="${build.lib.dir}" includes="hadoop*.jar"/>
- <patternset includes="bin.tgz"/>
- </unjar>
-
- <untar src="${build.dir}/hadoop/bin.tgz" dest="bin" compression="gzip"/>
- <!-- fix broken library paths with spaces -->
- <replace file="bin/hadoop" token="PlatformName" value="PlatformName | sed -e 's/ /_/g'"/>
- <chmod dir="bin" perm="ugo+rx" includes="*.sh,hadoop"/>
-
- </target>
-
<!-- ====================================================== -->
<!-- Compile the Java files -->
<!-- ====================================================== -->
- <target name="compile" depends="compile-core, compile-plugins, extract-hadoop"/>
+ <target name="compile" depends="compile-core, compile-plugins"/>
<target name="compile-core" depends="init, resolve-default">
<javac