Skip to content

Commit 2e14c12

Browse files
committed
Have ant auto-download the bootstrap libraries.
This probably doesn't work on windows, help appreciated.
1 parent aa41db7 commit 2e14c12

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

build.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,17 @@ PROPERTIES
201201
INITIALISATION
202202
============================================================================ -->
203203

204-
<target name="init">
205-
<available file="${lib.dir}/scala-library.jar" property="starr.present"/>
206-
<fail unless="starr.present" message="Could not find STARR. Have your run the pull-binary-libs.sh script?"/>
204+
<condition property="starr.absent">
205+
<not><available file="${lib.dir}/scala-library.jar"/></not>
206+
</condition>
207+
208+
<target name="init.starr" if="starr.absent">
209+
<echo level="warn" message="Downloading bootstrap libs. (To do this by hand, run ./pull-binary-libs.sh)"/>
210+
<exec osfamily="unix" executable="pull-binary-libs.sh" failifexecutionfails="true" />
211+
<exec osfamily="windows" executable="pull-binary-libs.sh" failifexecutionfails="true" />
212+
</target>
213+
214+
<target name="init" depends="init.starr">
207215
<!-- scalac.args.optimise is selectively overridden in certain antcall tasks. -->
208216
<property name="scalac.args.optimise" value=""/>
209217
<!-- scalac.args.quickonly are added to quick.* targets but not others (particularly, locker.)

0 commit comments

Comments
 (0)