diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-09-19 09:30:08 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-09-19 09:39:05 +0200 |
commit | 21049af189a8c8be2021cd443db447c35edcfa0e (patch) | |
tree | 34645876042cff42a6dc8596cede443c4ac33005 /build.xml | |
parent | 7f3a7a4e39642f03f3fc32467c14ea718036cf6c (diff) | |
download | scala-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-x | build.xml | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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" /> |