summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAntoine Gourlay <antoine@gourlay.fr>2014-08-26 09:43:49 +0200
committerAntoine Gourlay <antoine@gourlay.fr>2014-08-26 13:26:59 +0200
commit9519eb094130ab121fa10767916e812b76bdc947 (patch)
tree98286a0cf6f92abdec8256f37ed68c977ffadf3c /README.md
parent3555e0ec840a7ab843794e53a17142bd6ee49d87 (diff)
downloadscala-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