Go to sbt console
sbt
[info] Loading global plugins from /Users/raj/.sbt/0.13/plugins
[info] Set current project to scalaexamples (in build file:/Users/raj/gitws/scalaexamples/)
>
Go to scala console from sbt
sbt
[info] Loading global plugins from /Users/raj/.sbt/0.13/plugins
[info] Set current project to scalaexamples (in build file:/Users/raj/gitws/scalaexamples/)
> console
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.10.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45).
Type in expressions to have them evaluated.
Type :help for more information.
scala>
Note : This also build the project and make the build targets available on CLASSPATH
Execute Scala Application
sbt
[info] Loading global plugins from /Users/raj/.sbt/0.13/plugins
[info] Set current project to scalaexamples (in build file:/Users/raj/gitws/scalaexamples/)
> run-main e11_Classes.a11_101.a11_Basic
[info] Compiling 1 Scala source to /Users/raj/gitws/scalaexamples/target/scala-2.10/classes...
[info] Running e11_Classes.a11_101.a11_Basic
This is an Application
[success] Total time: 3 s, completed Apr 29, 2016 8:24:41 PM
Note : We do not need to compile the Class as it is done automatically
sbt
[info] Loading global plugins from /Users/raj/.sbt/0.13/plugins
[info] Set current project to scalaexamples (in build file:/Users/raj/gitws/scalaexamples/)
>
Go to scala console from sbt
sbt
[info] Loading global plugins from /Users/raj/.sbt/0.13/plugins
[info] Set current project to scalaexamples (in build file:/Users/raj/gitws/scalaexamples/)
> console
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.10.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45).
Type in expressions to have them evaluated.
Type :help for more information.
scala>
Note : This also build the project and make the build targets available on CLASSPATH
sbt
[info] Loading global plugins from /Users/raj/.sbt/0.13/plugins
[info] Set current project to scalaexamples (in build file:/Users/raj/gitws/scalaexamples/)
> run-main e11_Classes.a11_101.a11_Basic
[info] Compiling 1 Scala source to /Users/raj/gitws/scalaexamples/target/scala-2.10/classes...
[info] Running e11_Classes.a11_101.a11_Basic
This is an Application
[success] Total time: 3 s, completed Apr 29, 2016 8:24:41 PM
Note : We do not need to compile the Class as it is done automatically
No comments:
Post a Comment