blob: b3d97781986971bcfb33c4205f4e961b246c19f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import java.io.File
import java.net.URLClassLoader
object StepTwo extends dotty.runtime.LegacyApp {
val classes = new File(System.getProperty("launch.step.three"))
val cl = new URLClassLoader(Array(classes.toURI.toURL), getClass.getClassLoader)
val stepThree = cl.loadClass("StepThree")
val main = stepThree.getDeclaredMethod("main", classOf[Array[String]])
main.invoke(null, Array[String]())
}
|