diff options
author | Paul Phillips <paulp@improving.org> | 2011-12-02 14:31:15 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-12-02 14:56:10 -0800 |
commit | 2e14c128e725dfd8eb9ea3568f608c15a1d83658 (patch) | |
tree | 8b7c1e042eb94682ccbc312871f995e0d66455e6 /build.xml | |
parent | aa41db72a4c4a50bd9444ee36fac257e455a9ba6 (diff) | |
download | scala-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.xml | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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.) |