summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-03-22 11:40:53 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-03-23 08:00:28 -0700
commitfbecd5d3e2364ff59cbfee5a3921384722f9cd36 (patch)
tree08f6a158aa7fa7f4137b7a8fe95df80b75f640b6 /build.xml
parent7d2c1f33d5ca78137b34423958eddc017a8cf620 (diff)
downloadscala-fbecd5d3e2364ff59cbfee5a3921384722f9cd36.tar.gz
scala-fbecd5d3e2364ff59cbfee5a3921384722f9cd36.tar.bz2
scala-fbecd5d3e2364ff59cbfee5a3921384722f9cd36.zip
Allow getting STARR via maven, also: locker.skip
Use `ant -Dstarr.version="2.11.0-M2" -Dlocker.skip=YESSIR`, to build quick using 2.11.0-M2 (skipping locker, using starr instead).
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml40
1 files changed, 35 insertions, 5 deletions
diff --git a/build.xml b/build.xml
index f0504886e4..c30dde55ac 100644
--- a/build.xml
+++ b/build.xml
@@ -201,6 +201,16 @@ targets exercised:
<!--<dependency groupId="com.typesafe" artifactId="config" version="0.4.0"/>-->
</artifact:dependencies>
+ <!-- Download STARR via maven if `starr.version` is specified.
+ Want to slow down STARR changes, using only released versions. -->
+ <if><isset property="starr.version"/><then>
+ <artifact:dependencies pathId="starr.core.path">
+ <dependency groupId="org.scala-lang" artifactId="scala-library" version="${starr.version}"/>
+ <dependency groupId="org.scala-lang" artifactId="scala-reflect" version="${starr.version}"/>
+ <dependency groupId="org.scala-lang" artifactId="scala-compiler" version="${starr.version}"/>
+ </artifact:dependencies>
+ </then></if>
+
<property name="maven-deps-done" value="yep!"/>
</then></if>
@@ -387,15 +397,35 @@ targets exercised:
There must be a variable of the shape @{stage}.compiler.path for all @{stage} in starr, locker, quick, strap.
-->
<path id="starr.compiler.path">
- <pathelement location="${library.starr.jar}"/>
- <pathelement location="${reflect.starr.jar}"/>
- <pathelement location="${compiler.starr.jar}"/>
- <pathelement location="${msil.starr.jar}"/>
+ <path refid="starr.core.path"/>
<pathelement location="${lib.dir}/forkjoin.jar"/>
<path refid="aux.libs"/>
</path>
- <path id="locker.compiler.path"><path refid="locker.compiler.build.path"/></path>
+ <!-- Download STARR (see above) via maven if `starr.version` is specified.
+ Want to slow down STARR changes, using only released versions. -->
+ <if><isset property="starr.version"/><then>
+ <property name="strr" refid="starr.compiler.path"/>
+ <echo message="Using Scala ${starr.version} for STARR."/>
+ <!-- <echo message="STARR classpath: ${strr}"/> -->
+ </then><else>
+ <path id="starr.core.path">
+ <pathelement location="${library.starr.jar}"/>
+ <pathelement location="${reflect.starr.jar}"/>
+ <pathelement location="${compiler.starr.jar}"/>
+ <pathelement location="${msil.starr.jar}"/>
+ </path>
+ </else></if>
+
+ <!-- Skip locker with -Dlocker.skip=YESSIR. Uses STARR instead. -->
+ <if><isset property="locker.skip"/><then>
+ <echo message="Skipping locker! Using STARR instead."/>
+ <path id="locker.compiler.path"><path refid="starr.compiler.path"/></path>
+ <property name="locker.locked" value="locker skipped"/></then>
+ <else>
+ <path id="locker.compiler.path"><path refid="locker.compiler.build.path"/></path></else></if>
+
+ <!-- compilerpathref for compiling with quick -->
<path id="quick.compiler.path"> <path refid="quick.compiler.build.path"/></path>