Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Fix to not use 'exec', but rather 'untar' and 'chmod' which are more portable.

Douglass Cutting7f8505ae3ec8
diff --git a/build.xml b/build.xml
index fe62ee577..3d6fd2da3 100644
--- a/build.xml
+++ b/build.xml
@@ -57,10 +57,9 @@
<fileset dir="${lib.dir}" includes="hadoop*.jar"/>
<patternset includes="bin.tgz"/>
</unjar>
- <exec dir="bin" executable="tar">
- <arg value="xzf"/>
- <arg value="../${build.dir}/hadoop/bin.tgz"/>
- </exec>
+
+ <untar src="${build.dir}/hadoop/bin.tgz" dest="bin" compression="gzip"/>
+ <chmod dir="bin" perm="ugo+rx" includes="*.sh,hadoop"/>
<!-- unpack hadoop webapp from hadoop jar into build directory -->
<mkdir dir="${build.dir}/webapps"/>