summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-12-15 14:34:27 +0000
committermichelou <michelou@epfl.ch>2006-12-15 14:34:27 +0000
commitdd230b0b1fbb3e21620774d377f09eeeae61ff13 (patch)
tree21286ab5f64b7727be3c6fa402b55ba1b9fd6c2e /build.xml
parente74806422b5ccf2b4b37f6299e7b0e14c0f9bdf3 (diff)
downloadscala-dd230b0b1fbb3e21620774d377f09eeeae61ff13.tar.gz
scala-dd230b0b1fbb3e21620774d377f09eeeae61ff13.tar.bz2
scala-dd230b0b1fbb3e21620774d377f09eeeae61ff13.zip
added dependency test for Ant-Contrib
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 686a1a36bd..a75dbcebfc 100644
--- a/build.xml
+++ b/build.xml
@@ -82,6 +82,16 @@ INITIALISATION
<!-- Setting-up Ant contrib tasks -->
<taskdef resource="net/sf/antcontrib/antlib.xml"
classpath="${ant-contrib.jar}"/>
+ <echo level="verbose" message="ANT_HOME=${env.ANT_HOME}"/>
+ <fail
+ message="External library ${ant-contrib.jar} requires variable ANT_HOME to be set"
+ unless="env.ANT_HOME"
+ />
+ <fail message="External library ${ant-contrib.jar} requires the optional Ant tasks to be installed">
+ <condition><not><and>
+ <available file="${env.ANT_HOME}/lib/ant-nodeps.jar"/>
+ </and></not></condition>
+ </fail>
<!-- Making sure enough memory is available -->
<propertyregex
property="memory.set" input="${env.ANT_OPTS}" select="\1"