GitLab will continue to be upgraded from 11.4.5-ce.0 on November 25th 2019 at 4.00pm (AEDT) to 5.00pm (AEDT) due to Critical Security Patch Availability. During the update, GitLab and Mattermost services will not be available.

Commit c932ca84 authored by Kunshan Wang's avatar Kunshan Wang

Mention how to run programs with sbt in README.md.

parent f83c3baf
......@@ -63,6 +63,28 @@ plugin](https://github.com/typesafehub/sbteclipse) and invoke `sbt eclipse`.
IntelliJ IDEA has plugins for Scala and SBT. Make sure you don't commit `.idea`
or generated project files into the repository.
How to run
----------
There is a sample factorial program (generously provided by @johnjiabinzhang) in
the `src/test` directory. To run the program with all dependencies on the
classpath, you need to run it with sbt. Invoke `sbt` to enter the interactive
shell. Then type:
```
set fork := true
test:runMain junks.FactorialFromRPython
```
or directly from the command line:
```
sbt 'set fork:=true' 'test:runMain junks.FactorialFromRPython'
```
`fork := true` tells sbt to run the program in a different process than the one
running sbt itself.
Author and Copyright
--------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment