scala-min

所属分类:collect
开发工具:Shell
文件大小:0KB
下载次数:0
上传日期:2013-11-15 05:06:14
上 传 者sh-1993
说明:  开始使用Scala编程的最小项目模板,
(A minimal project template to start programming with Scala,)

文件列表:
.lib/ (0, 2013-11-14)
.lib/0.13.0/ (0, 2013-11-14)
.lib/0.13.0/sbt-launch.jar (1132093, 2013-11-14)
project/ (0, 2013-11-14)
project/Build.scala (719, 2013-11-14)
project/build.properties (20, 2013-11-14)
project/plugins.sbt (180, 2013-11-14)
sbt (13394, 2013-11-14)
src/ (0, 2013-11-14)
src/main/ (0, 2013-11-14)
src/main/scala/ (0, 2013-11-14)
src/main/scala/Hello.scala (104, 2013-11-14)
src/test/ (0, 2013-11-14)
src/test/scala/ (0, 2013-11-14)
src/test/scala/HelloTest.scala (2460, 2013-11-14)
src/test/scala/MySpec.scala (689, 2013-11-14)
version.sbt (31, 2013-11-14)

scala-min ========= A minimal project template to start programming with Scala. ### Contents scala-min project includes: - Sample Scala codes for Scala 2.10.2 with sbt-0.13.0 - [ScalaTest](http://www.scalatest.org/) examples (writing specs, logging, tagging tests, measuring code performances, etc.) - Pre-configured settings for developing with IntelliJ IDEA - A command for packaging projects with [sbt-pack](http://github.com/xerial/sbt-pack) plugin. - `sbt-pack` also generates installation scripts of you programs. ### Usage Download [tar.gz archive](https://github.com/xerial/scala-min/archive/master.tar.gz) or [.zip](https://github.com/xerial/scala-min/archive/master.zip) of this project, then extract the contents. Alternatively, you can run the following commands to extract the scala-min project: $ mkdir myproject $ cd myproject $ curl -L https://github.com/xerial/scala-min/archive/master.tar.gz | tar xvz --strip-components=1 **Run tests** $ ./sbt test **Run tests when updates of the source codes are detected** $ ./sbt "~test" **Run specific tests matching a pattern** $ ./sbt "~test-only *HelloTest" **Run tagged test only** $ ./sbt "~test-only *HelloTest -- -n test1" **Create a runnable package** $ ./sbt pack $ target/pack/bin/hello Hello World!! **Install your program** $ ./sbt pack $ cd target/pack; make install $ ~/local/bin/hello Hello World!! **Create tar.gz archive of your program** $ ./sbt pack-archive (myproject-0.1.tar.gz will be created) **Create IntelliJ project files** $ ./sbt gen-idea Then, open this project folder in IntelliJ. **Add dependent libraries** Edit `project/Build.scala`, then add libraries to `libraryDependences` variable. ### Customize Rename the project name defined in `project/Build.scala` as you like. ### Examples using scala-min - [Command line parser](https://github.com/xerial/sbt-pack/tree/develop/src/sbt-test/sbt-pack/command-launcher)

近期下载者

相关文件


收藏者