scala: Run steps directly from jar file
authorDov Murik <dov.murik@gmail.com>
Mon, 16 May 2016 15:25:42 +0000 (11:25 -0400)
committerDov Murik <dov.murik@gmail.com>
Mon, 16 May 2016 15:25:42 +0000 (11:25 -0400)
commit37a33ac72ecda2b729b336c969ca4b249d4f1eb3
treeca5349259d6ddf6c820215a18844520ebbcb31f8
parent31cc710f064c0c51181423faf93ca3fccf1f357c
scala: Run steps directly from jar file

The Scala build will create a mal.jar file with all the steps' classes
in it.  A `run` wrapper script will run that jar with a specific step
main class according to the `$STEP` environment variable.  Now the jar
file is created only once (when testing step0) and then re-used for
testing the next steps, which should speed up the build.

Moreover, sbt now prepends shell script header to the jar file, so no
need to implement this in Makefile (for the `dist` target).
Makefile
scala/Makefile
scala/assembly.sbt
scala/build.sbt
scala/run [new file with mode: 0755]