diff options
author | Som Snytt <som.snytt@gmail.com> | 2013-03-29 22:45:08 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2013-04-18 15:34:20 -0700 |
commit | 01edd0436c19314ea581f86362b1d547a4b7fdb8 (patch) | |
tree | 9c3c98a293edca806cbdb10cbd828de1e0cf8a5f /test/files | |
parent | 86651c1205de9d901a9f0a0214888ac7c4724b81 (diff) | |
download | scala-01edd0436c19314ea581f86362b1d547a4b7fdb8.tar.gz scala-01edd0436c19314ea581f86362b1d547a4b7fdb8.tar.bz2 scala-01edd0436c19314ea581f86362b1d547a4b7fdb8.zip |
SI-7314 Partest locates tools.jar and javac
This commit lets partest locate tools.jar the way REPL does, with
the addition that java.home.parent is also tried.
The partest script will use JAVAC_CMD if set, or else JAVA_HOME, and
will try the sibling of JAVACMD if set (on the theory that if you specify
java, you are avoiding the path lookup and javac may also be in
that special place), or else query the path for javac.
The use cases are: no env vars, look around java.home; JDK or JAVA_HOME is
set; JAVACMD is set; and finally tools.jar can live in jre/lib/ext and
the fallback deep search will find it.
These cases have been tried on cygwin with Java installed under
s"Program${space}Files", which is usually the most brittle environment.
That means tested with bash.
The windows partest.bat has not been upgraded or side-graded.
Diffstat (limited to 'test/files')
0 files changed, 0 insertions, 0 deletions