File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 1
1
package dotty
2
2
3
- /** Jars used when compiling test, defaults to sbt locations */
3
+ /** Jars used when compiling test, normally set from the sbt build */
4
4
object Jars {
5
- val dottyLib : String = sys.env.get(" DOTTY_LIB" ) getOrElse {
6
- " ../library/target/scala-2.11/dotty-library_2.11-0.1.1-SNAPSHOT.jar"
7
- }
5
+ val dottyLib : String = sys.env.get(" DOTTY_LIB" )
6
+ .getOrElse(sys.props(" dotty.tests.classes.library" ))
8
7
9
- val dottyCompiler : String = sys.env.get(" DOTTY_COMPILER" ) getOrElse {
10
- " ./target/scala-2.11/dotty-compiler_2.11-0.1.1-SNAPSHOT.jar"
11
- }
8
+ val dottyCompiler : String = sys.env.get(" DOTTY_COMPILER" )
9
+ .getOrElse(sys.props(" dotty.tests.classes.compiler" ))
12
10
13
- val dottyInterfaces : String = sys.env.get(" DOTTY_INTERFACE" ) getOrElse {
14
- " ../interfaces/target/dotty-interfaces-0.1.1-SNAPSHOT.jar"
15
- }
11
+ val dottyInterfaces : String = sys.env.get(" DOTTY_INTERFACE" )
12
+ .getOrElse(sys.props(" dotty.tests.classes.interfaces" ))
16
13
17
- val dottyExtras : List [String ] = sys.env.get(" DOTTY_EXTRAS" )
14
+ val dottyExtras : List [String ] = Option (sys.env.get(" DOTTY_EXTRAS" )
15
+ .getOrElse(sys.props(" dotty.tests.extraclasspath" )))
18
16
.map(_.split(" :" ).toList).getOrElse(Nil )
19
17
20
18
val dottyReplDeps : List [String ] = dottyLib :: dottyExtras
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ object DottyBuild extends Build {
326
326
327
327
// http://grokbase.com/t/gg/simple-build-tool/135ke5y90p/sbt-setting-jvm-boot-paramaters-for-scala
328
328
// packageAll should always be run before tests
329
- javaOptions <++= (dependencyClasspath in Runtime , packageAll) map { (attList, _ ) =>
329
+ javaOptions <++= (dependencyClasspath in Runtime , packageAll) map { (attList, pA ) =>
330
330
// put needed dependencies on classpath:
331
331
val path = for {
332
332
file <- attList.map(_.data)
@@ -356,7 +356,13 @@ object DottyBuild extends Build {
356
356
List (" -XX:+TieredCompilation" , " -XX:TieredStopAtLevel=1" )
357
357
else List ()
358
358
359
- (" -DpartestParentID=" + pid) :: tuning ::: agentOptions ::: ci_build ::: path.toList
359
+ val jars = List (
360
+ " -Ddotty.tests.classes.interfaces=" + pA(" dotty-interfaces" ),
361
+ " -Ddotty.tests.classes.library=" + pA(" dotty-library" ),
362
+ " -Ddotty.tests.classes.compiler=" + pA(" dotty-compiler" )
363
+ )
364
+
365
+ (" -DpartestParentID=" + pid) :: jars ::: tuning ::: agentOptions ::: ci_build ::: path.toList
360
366
}
361
367
).
362
368
settings(publishing)
You can’t perform that action at this time.
0 commit comments