[THRIFT-70] Allow the Java install prefix to be configured.
Systems like Debian expect the thrift jar to be in /usr/share/java, not
the default /usr/local/lib This patch allows configure to be passed a
JAVA_PREFIX= flag.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@675821 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/java/build.xml b/lib/java/build.xml
index cd01017..75e7451 100644
--- a/lib/java/build.xml
+++ b/lib/java/build.xml
@@ -4,6 +4,7 @@
<property name="src" location="src" />
<property name="build" location="build" />
+ <property name="install.path" value="/usr/local/lib" />
<target name="init">
<tstamp />
@@ -20,7 +21,7 @@
<target name="install" depends="dist">
<exec executable="install">
- <arg line="libthrift.jar /usr/local/lib/" />
+ <arg line="libthrift.jar ${install.path}" />
</exec>
</target>