diff options
author | Antoine Gourlay <antoine@gourlay.fr> | 2014-08-26 09:43:49 +0200 |
---|---|---|
committer | Antoine Gourlay <antoine@gourlay.fr> | 2014-08-26 13:26:59 +0200 |
commit | 9519eb094130ab121fa10767916e812b76bdc947 (patch) | |
tree | 98286a0cf6f92abdec8256f37ed68c977ffadf3c /README.md | |
parent | 3555e0ec840a7ab843794e53a17142bd6ee49d87 (diff) | |
download | scala-9519eb094130ab121fa10767916e812b76bdc947.tar.gz scala-9519eb094130ab121fa10767916e812b76bdc947.tar.bz2 scala-9519eb094130ab121fa10767916e812b76bdc947.zip |
SI-5254 running an empty scala script should succeed
The script runner made the assumption that "compilation succeeded"
implies "there is a Main class to run", but this can be wrong if the
script is empty (or only contains imports/comments).
The ScriptRunner now uses the ClassPath utility to check if there really
is a main class. If not, it doesn't try to run it and returns
peacefully. This also makes `scala -e ''` succeed.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions