ScalaEvaluate does not work with Bash launcher

Issue #33 new
Kristian Ovaska created an issue

ScalaEvaluate was rewritten in Bash for some reason. This approach does not work because Scala requires JAR files, which are provided by Java and Scala launchers.

The current Bash code tries to hard-code dependency JARs, but includes the wrong JAR ($ANDURIL_HOME/scala/anduril-scala.jar).

Comments (3)

  1. Kristian Ovaska reporter

    I think this component should be written in Java. The old Scala implementation can have problems with Scala versions, because the compiled code is distributed in the component JAR. Compiled Java works with any environment.

  2. Ville Rantanen

    yea, it was changed to bash earlier, when we had problems running the component at all. Then, we noticed that all the component does, is write a new script file on disk, and then start a new scala process running that. It sounded much more sense to do that in bash.

    If you have a better implementation / idea, just go ahead, break some eggs. Nobody at the lab is using this component.

  3. Log in to comment