summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-10-11 13:39:48 +0000
committermichelou <michelou@epfl.ch>2005-10-11 13:39:48 +0000
commit1a3ba334d704f73811ba0ac393f05f56154558a1 (patch)
treea4d55169a199a36da2f782575131648b36394788 /build.xml
parent3f12c15fc04df923c8cf408cf7cd8157e03778a6 (diff)
downloadscala-1a3ba334d704f73811ba0ac393f05f56154558a1.tar.gz
scala-1a3ba334d704f73811ba0ac393f05f56154558a1.tar.bz2
scala-1a3ba334d704f73811ba0ac393f05f56154558a1.zip
- splitted 'fail' actions in task 'init.osc'.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml27
1 files changed, 18 insertions, 9 deletions
diff --git a/build.xml b/build.xml
index e76b109a3f..b0010bde99 100644
--- a/build.xml
+++ b/build.xml
@@ -4,16 +4,17 @@
<description>
This build-file builds the Scala NSC compiler as well as various related
- tools. The 'build.properties' file must be customised for your own
+ tools. The 'build.TEMPLATE.properties' file must be customised for your own
particular system, no other customisation should be required. The build
file expects the file structure of a Scala CVS distribution.
</description>
<!-- The system classpath should not be used -->
<property name="build.sysclasspath" value="ignore" />
-
- <!-- Sets project's properties -->
- <!-- Properties in 'build.${user.name}.properties' take precedence over properties in 'build.default.properties' -->
+
+ <!-- Properties in 'build.${user.name}.properties' take precedence over
+ properties in 'build.default.properties'.
+ -->
<echo level="verbose">Loading properties from '${basedir}/build.support/build.${user.name}.properties'</echo>
<property file="${basedir}/build.support/build.${user.name}.properties"/>
<echo level="verbose">Loading properties from '${basedir}/build.support/build.default.properties'</echo>
@@ -49,14 +50,22 @@
<echo level="verbose">ostools.jar=${ostools.jar}</echo>
<echo level="verbose">fjbg.jar=${fjbg.jar}</echo>
<echo level="verbose">msil.jar=${msil.jar}</echo>
- <fail message="Required classes for OSC are missing; check the 'oslib.jar', 'ostools.jar', 'fjbg.jar' and 'msil.jar' properties in 'build.properties'.">
+ <fail message="Required classes for OSC are missing; check the 'oslib.jar', 'ostools.jar' properties in 'build.${user.name}.properties'.">
+ <condition><not><and>
+ <available classname="scala.List" classpathref="osc.classpath" />
+ <available classname="scala.runtime.RunTime" classpathref="osc.classpath" />
+ <available classname="scala.tools.scalac.Main" classpathref="osc.classpath" />
+ <available classname="scala.tools.scalac.ant.Scalac" classpathref="osc.classpath" />
+ </and></not></condition>
+ </fail>
+ <fail message="Required classes for OSC are missing; check the 'fjbg.jar' property in 'build.${user.name}.properties'.">
<condition><not><and>
- <available classname="scala.List" classpathref="osc.classpath"/>
- <available classname="scala.runtime.RunTime" classpathref="osc.classpath"/>
- <available classname="scala.tools.scalac.Main" classpathref="osc.classpath"/>
- <available classname="scala.tools.scalac.ant.Scalac" classpathref="osc.classpath"/>
<available classname="ch.epfl.lamp.fjbg.JField" classpathref="osc.classpath"/>
<available classname="ch.epfl.lamp.util.ByteArray" classpathref="osc.classpath"/>
+ </and></not></condition>
+ </fail>
+ <fail message="Required classes for OSC are missing; check the 'msil.jar' property in 'build.${user.name}.properties'.">
+ <condition><not><and>
<available classname="ch.epfl.lamp.compiler.msil.Module" classpathref="osc.classpath"/>
<available classname="ch.epfl.lamp.compiler.msil.Type" classpathref="osc.classpath"/>
</and></not></condition>