summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-09-19 09:30:08 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-09-19 09:39:05 +0200
commit21049af189a8c8be2021cd443db447c35edcfa0e (patch)
tree34645876042cff42a6dc8596cede443c4ac33005 /build.xml
parent7f3a7a4e39642f03f3fc32467c14ea718036cf6c (diff)
downloadscala-21049af189a8c8be2021cd443db447c35edcfa0e.tar.gz
scala-21049af189a8c8be2021cd443db447c35edcfa0e.tar.bz2
scala-21049af189a8c8be2021cd443db447c35edcfa0e.zip
Require Ant >= 1.8.2
Reportedly our build fails with Ant earlier incarnations. Time to raise the bar. Tested by temporarily setting the requirement to 1.8.5 and observing: % ant init Buildfile: /Users/jason/code/scala/build.xml desired.jars.uptodate: boot: init: BUILD FAILED /Users/jason/code/scala/build.xml:216: Ant version 1.8.5 is required. You are running Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Diffstat (limited to 'build.xml')
-rwxr-xr-xbuild.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index bd0642be33..d46cf3aa61 100755
--- a/build.xml
+++ b/build.xml
@@ -211,6 +211,11 @@ TODO:
<!-- Set up Ant contrib tasks so we can use <if><then><else> instead of the clunky `unless` attribute -->
<taskdef resource="net/sf/antcontrib/antlib.xml" classpath="${lib-ant.dir}/ant-contrib.jar"/>
+ <property name="scala.ant.min.version" value="1.8.2"/>
+ <if><not><antversion atleast="${scala.ant.min.version}"/></not>
+ <then><fail message="Ant version ${scala.ant.min.version} is required. You are running ${ant.version}"/></then>
+ </if>
+
<!-- Add our maven ant tasks -->
<path id="maven-ant-tasks.classpath" path="${lib-ant.dir}/maven-ant-tasks-2.1.1.jar" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.classpath" />