replaced "matches" by "contains" (Ant compatibility)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@13731 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
michelou 2008-01-18 16:29:44 +00:00
parent 14389432ff
commit 0f138f065b
1 changed files with 5 additions and 8 deletions

View File

@ -39,13 +39,10 @@ PROPERTIES
<property name="nsc.log-files" value="no"/>
<property name="nsc.excludes.file" value="${basedir}/build.excludes"/>
<property name="nsc.params" value=""/>
<condition property="nsc.target" value="jvm-1.5">
<matches pattern="1.[5-7]" string="${ant.java.version}"/>
</condition>
<condition property="nsc.target" value="jvm-1.4">
<matches pattern="1.4" string="${ant.java.version}"/>
<contains string="${ant.java.version}" substring="1.4"/>
</condition>
<property name="nsc.target" value=""/>
<property name="nsc.target" value="jvm-1.5"/>
<!-- Sets location of pre-compiled libraries -->
<property name="lib.starr.jar" value="${lib.dir}/scala-library.jar"/>
@ -375,14 +372,14 @@ BUILD LOCAL REFERENCE (LOCKER) LAYER
srcdir="${src.dir}/library"
destdir="${locker.dir}/lib/library"
usepredefs="no"
addparams="${nsc.params}"
addparams="${nsc.params}" target="${nsc.target}"
deprecation="yes" unchecked="yes"
classpath="${locker.dir}/lib/library"
includes="scala/Predef.scala"/>
<starr
srcdir="${src.dir}/library"
destdir="${locker.dir}/lib/library"
addparams="${nsc.params}"
addparams="${nsc.params}" target="${nsc.target}"
deprecation="yes" unchecked="yes"
classpath="${locker.dir}/lib/library">
<include name="**/*.scala"/>
@ -406,7 +403,7 @@ BUILD LOCAL REFERENCE (LOCKER) LAYER
<starr
srcdir="${src.dir}/compiler"
destdir="${locker.dir}/lib/compiler"
addparams="${nsc.params}"
addparams="${nsc.params}" target="${nsc.target}"
deprecation="yes" unchecked="yes">
<classpath>
<pathelement location="${locker.dir}/lib/library"/>