added dependency test for Ant-Contrib

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@9525 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
michelou 2006-12-15 14:34:27 +00:00
parent e1591709ea
commit aa8ed156ab
1 changed files with 10 additions and 0 deletions

View File

@ -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"