diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-08-09 19:05:15 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-10-18 17:44:39 +0200 |
commit | f7c6213ee7cd4afb6f11b5ce14479aa68974b01c (patch) | |
tree | 904e07144a033bc25f0618217deec608b3fac3d2 /test/files/run/t6240b/StepTwo.scala | |
parent | f94b2246361ed6ed19300d27033aedad7e3ddd9d (diff) | |
download | scala-f7c6213ee7cd4afb6f11b5ce14479aa68974b01c.tar.gz scala-f7c6213ee7cd4afb6f11b5ce14479aa68974b01c.tar.bz2 scala-f7c6213ee7cd4afb6f11b5ce14479aa68974b01c.zip |
tests for fancy classloader configurations
Diffstat (limited to 'test/files/run/t6240b/StepTwo.scala')
-rw-r--r-- | test/files/run/t6240b/StepTwo.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t6240b/StepTwo.scala b/test/files/run/t6240b/StepTwo.scala new file mode 100644 index 0000000000..88e46492e3 --- /dev/null +++ b/test/files/run/t6240b/StepTwo.scala @@ -0,0 +1,10 @@ +import java.io.File +import java.net.URLClassLoader + +object StepTwo extends App { + 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]()) +}
\ No newline at end of file |