mirror of
https://github.com/sbt/sbt.git
synced 2026-09-02 02:57:21 +02:00
enable run/fork-loader
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
object CheckLoader {
|
||||
def main(args: Array[String]): Unit = apply()
|
||||
def apply(): Unit = {
|
||||
val loader = getClass.getClassLoader
|
||||
val appLoader = ClassLoader.getSystemClassLoader
|
||||
assert(loader eq appLoader, "Application classes not loaded in the system class loader")
|
||||
}
|
||||
def main(args: Array[String]): Unit = apply()
|
||||
def apply(): Unit = {
|
||||
val loader = getClass.getClassLoader
|
||||
val appLoader = ClassLoader.getSystemClassLoader
|
||||
assert(loader eq appLoader, "Application classes not loaded in the system class loader")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import org.scalacheck._
|
||||
|
||||
object TestForked extends Properties("Forked loader") {
|
||||
property("Loaded from application loader") = Prop.secure {
|
||||
CheckLoader()
|
||||
true
|
||||
}
|
||||
}
|
||||
property("Loaded from application loader") = Prop.secure {
|
||||
CheckLoader()
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user