Skip to content

Instantly share code, notes, and snippets.

@jjo
Last active August 29, 2015 14:26
Show Gist options
  • Save jjo/41e5d95d8a33fd3f5e01 to your computer and use it in GitHub Desktop.
Save jjo/41e5d95d8a33fd3f5e01 to your computer and use it in GitHub Desktop.
Allows eg:
CLASSPATH=/path/to/hadoop-common-x.y.z.jar ant compile-native
diff --git a/build.xml b/build.xml
index cc9bfd0..b9da3e9 100644
--- a/build.xml
+++ b/build.xml
@@ -226,7 +226,8 @@
<mkdir dir="${build.native}/lib"/>
<mkdir dir="${build.native}/src/com/hadoop/compression/lzo"/>
- <javah classpath="${build.classes}"
+ <property environment="env"/>
+ <javah classpath="${build.classes}:${env.CLASSPATH}"
destdir="${build.native}/src/com/hadoop/compression/lzo"
force="yes"
verbose="yes">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment