From 5d1052f36a889607eb365c37450bb9b5c7862d9e Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Sat, 13 Nov 2010 19:18:30 +0000 Subject: Use partest's java and javac command in the jav... Use partest's java and javac command in the javasigs test. no review. --- test/files/jvm/javasigs.scala | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/files/jvm/javasigs.scala b/test/files/jvm/javasigs.scala index f2ac8b6ad1..937b46d1d4 100644 --- a/test/files/jvm/javasigs.scala +++ b/test/files/jvm/javasigs.scala @@ -4,15 +4,8 @@ object Scalatest { val outputdir = System.getProperty("partest.output", "inner.obj") val scalalib = System.getProperty("partest.lib", "") val classpath = outputdir + File.pathSeparator + scalalib - val javabin = { - val jhome = new File(System.getProperty("java.home")) - if (jhome.getName == "jre") - new File(jhome.getParent, "bin").getAbsolutePath - else - new File(jhome, "bin").getAbsolutePath - } - val javacmd = javabin + File.separator + "java" - val javac = javabin + File.separator + "javac" + val javacmd = System.getProperty("javacmd", "java") + val javac = javacmd + "c" def javac(src: String, opts: String, fname: String) { val tmpfilename = outputdir + File.separator + fname -- cgit v1.2.3