Skip to content

Apache Lucene open-source search software

LUCENE-4016: require ant 1.8.2 or later. Sorry Uwe.

Dawid Weisse84ba16dd715
diff --git a/lucene/BUILD.txt b/lucene/BUILD.txt
index a440ae63e9f..658be2b61e6 100644
--- a/lucene/BUILD.txt
+++ b/lucene/BUILD.txt
@@ -1,14 +1,14 @@
Lucene Build Instructions
Basic steps:
- 0) Install JDK 1.6 (or greater), Ant 1.7.1+ (not 1.6.x, not 1.8.x), Ivy 2.2.0
+ 0) Install JDK 1.6 (or greater), Ant 1.8.2+, Ivy 2.2.0
1) Download Lucene from Apache and unpack it
2) Connect to the top-level of your Lucene installation
3) Install JavaCC (optional)
4) Run ant
Step 0) Set up your development environment (JDK 1.6 or greater,
-Ant 1.7.1+, Ivy 2.2.0)
+Ant 1.8.2+, Ivy 2.2.0)
We'll assume that you know how to get and set up the JDK - if you
don't, then we suggest starting at http://java.sun.com and learning
@@ -16,7 +16,7 @@ more about Java, before returning to this README. Lucene runs with
JDK 1.6 and later.
Like many Open Source java projects, Lucene uses Apache Ant for build
-control. Specifically, you MUST use Ant version 1.7.1+
+control. Specifically, you MUST use Ant version 1.8.2+.
Ant is "kind of like make without make's wrinkles". Ant is
implemented in java and uses XML-based configuration files. You can
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index df73e051569..4b1ba157991 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -944,6 +944,8 @@ Documentation
Build
+* LUCENE-4016: Require ANT 1.8.2+ for the build.
+
* LUCENE-3808: Refactoring of testing infrastructure to use randomizedtesting
package: http://labs.carrotsearch.com/randomizedtesting.html (Dawid Weiss)
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index 74ec2ac6269..4d8d96a9d8d 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -236,6 +236,13 @@
<isset property="fetch.sources.javadocs"/>
</condition>
+ <!-- Check for minimum supported ANT version. -->
+ <fail message="Minimum supported ANT version is 1.8.2. Yours: ${ant.version}">
+ <condition>
+ <not><antversion atleast="1.8.2" /></not>
+ </condition>
+ </fail>
+
<!-- Import custom ANT tasks. -->
<import file="${common.dir}/tools/custom-tasks.xml" />
diff --git a/solr/README.txt b/solr/README.txt
index a6511a95879..f8c2c287aa9 100644
--- a/solr/README.txt
+++ b/solr/README.txt
@@ -66,7 +66,7 @@ Instructions for Building Apache Solr from Source
folder included on your command path. To test this, issue a "java -version" command
from your shell (command prompt) and verify that the Java version is 1.6 or later.
-2. Download the Apache Ant binary distribution (1.7.x, not 1.6.x, not 1.8.x) from
+2. Download the Apache Ant binary distribution (1.8.2+) from
http://ant.apache.org/ You will need Ant installed and the $ANT_HOME/bin (Windows:
%ANT_HOME%\bin) folder included on your command path. To test this, issue a
"ant -version" command from your shell (command prompt) and verify that Ant is