diff options
author | michelou <michelou@epfl.ch> | 2006-12-15 14:34:27 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-12-15 14:34:27 +0000 |
commit | dd230b0b1fbb3e21620774d377f09eeeae61ff13 (patch) | |
tree | 21286ab5f64b7727be3c6fa402b55ba1b9fd6c2e /build.xml | |
parent | e74806422b5ccf2b4b37f6299e7b0e14c0f9bdf3 (diff) | |
download | scala-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.xml | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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" |