summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-12-02 14:31:15 -0800
committerPaul Phillips <paulp@improving.org>2011-12-02 14:56:10 -0800
commit2e14c128e725dfd8eb9ea3568f608c15a1d83658 (patch)
tree8b7c1e042eb94682ccbc312871f995e0d66455e6 /build.xml
parentaa41db72a4c4a50bd9444ee36fac257e455a9ba6 (diff)
downloadscala-2e14c128e725dfd8eb9ea3568f608c15a1d83658.tar.gz
scala-2e14c128e725dfd8eb9ea3568f608c15a1d83658.tar.bz2
scala-2e14c128e725dfd8eb9ea3568f608c15a1d83658.zip
Have ant auto-download the bootstrap libraries.
This probably doesn't work on windows, help appreciated.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml14
1 files changed, 11 insertions, 3 deletions
diff --git a/build.xml b/build.xml
index d7c523a618..42a38e9fc0 100644
--- a/build.xml
+++ b/build.xml
@@ -201,9 +201,17 @@ PROPERTIES
INITIALISATION
============================================================================ -->
- <target name="init">
- <available file="${lib.dir}/scala-library.jar" property="starr.present"/>
- <fail unless="starr.present" message="Could not find STARR. Have your run the pull-binary-libs.sh script?"/>
+ <condition property="starr.absent">
+ <not><available file="${lib.dir}/scala-library.jar"/></not>
+ </condition>
+
+ <target name="init.starr" if="starr.absent">
+ <echo level="warn" message="Downloading bootstrap libs. (To do this by hand, run ./pull-binary-libs.sh)"/>
+ <exec osfamily="unix" executable="pull-binary-libs.sh" failifexecutionfails="true" />
+ <exec osfamily="windows" executable="pull-binary-libs.sh" failifexecutionfails="true" />
+ </target>
+
+ <target name="init" depends="init.starr">
<!-- scalac.args.optimise is selectively overridden in certain antcall tasks. -->
<property name="scalac.args.optimise" value=""/>
<!-- scalac.args.quickonly are added to quick.* targets but not others (particularly, locker.)