From 36a5a25a211f7b11c005676bf5c0f359e94677b4 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Wed, 29 Apr 2009 23:20:56 +0000 Subject: [PATCH] THRIFT-453. java: By default, use Ivy to download Java dependencies build.xml will now download Apache Ivy into the build tree. Ivy will then be used to download the other Java dependencies: log4j and Apache Commons Lang. This achieves the goal of allowing the Java library to be built from a clean checkout, without requiring users to manually obtain dependencies or checking external binaries into the source tree. The Ivy behavior (except for a few mkdir calls) can be inhibited by passing -Dnoivy= on the ant command line (or in a property file). In this case, log4j must be available in the user's CLASSPATH. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@769995 13f79535-47bb-0310-9956-ffa450edef68 --- lib/java/build.xml | 95 ++++++++++++++++++++++++++++++++++++++-------- lib/java/ivy.xml | 7 ++++ 2 files changed, 87 insertions(+), 15 deletions(-) create mode 100644 lib/java/ivy.xml diff --git a/lib/java/build.xml b/lib/java/build.xml index 6778f2c2..0a7c8944 100644 --- a/lib/java/build.xml +++ b/lib/java/build.xml @@ -1,3 +1,4 @@ + - + Thrift Build File @@ -33,16 +35,79 @@ - + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + You need Apache Ivy 2.0 or later from http://ant.apache.org/ + It could not be loaded from ${ivy_repo_url} + + + + + + + + + @@ -85,28 +150,28 @@ - - - + + + + classpathref="test.classpath" failonerror="true" /> + classpathref="test.classpath" failonerror="true" /> + classpathref="test.classpath" failonerror="true" /> + classpathref="test.classpath" failonerror="true" /> + classpathref="test.classpath" failonerror="true" /> + classpathref="test.classpath" failonerror="true" /> + classpathref="test.classpath" failonerror="true" /> + classpathref="test.classpath" failonerror="true" /> diff --git a/lib/java/ivy.xml b/lib/java/ivy.xml new file mode 100644 index 00000000..0b1be5d8 --- /dev/null +++ b/lib/java/ivy.xml @@ -0,0 +1,7 @@ + + + + + + + -- 2.17.1