`
sillycat
  • 浏览: 2551716 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Install and Use Simple Build Tool

 
阅读更多
Install and Use Simple Build Tool
1. Installing sbt
If I have MacPorts, I will use this command to do so.
>sudo port selfupdate
Update the MacPorts tool itself to update.

>sudo port install sbt

2. Create a simple project to validate my installation.
>mkdir hello
>cd hello
>echo 'object Hi { def main(args: Array[String]) = println("Hi!") }' > hw.scala
>sbt
sbt>run
…Hi!…

That is how I run the simple project. And I can also run it like this.
>sbt run

The command will check
Sources in the base directory
Sources in src/main/scala or src/main/java
Tests in src/test/scala      or src/test/java
Data files in src/main/resources or src/test/resources
jars in lib

We can also have the build definition files.
build.sbt
project/
      Build.scala

references:
https://github.com/harrah/xsbt
http://www.scala-sbt.org/release/docs/Getting-Started/index.html


分享到:
评论

相关推荐

    Rails.Angular.Postgres.and.Bootstrap.2nd.Edition

    Achieve awesome user experiences and performance with simple, maintainable code! Embrace the full stack of web development, from styling with Bootstrap, building an interactive user interface with ...

    Game.Programming.Using.QT.17821688

    Understand technologies such as QML, Qt Quick, OpenGL, and Qt Creator, and learn the best practices to use them to design games Learn Qt with the help of many sample games introduced step-by-step in ...

    Introduction to Python Programming and Developing GUI Applications with PyQT

    ### Introduction to Python ... By mastering Python and PyQt, developers can create efficient, user-friendly, and scalable GUI applications that meet the needs of various industries and use cases.

    Oracle.Application.Express.Administration.For.DBAs.and.Developers.epub

    The book covers everything from simple to enterprise-class deployments, with emphasis on enterprise-level requirements and coverage of cloud and hybrid-cloud scenarios. Many books cover how to ...

    Machine Learning for OpenCV_Intelligent image processing with Python(2017).epub

    Chapter 1, A Taste of Machine Learning, will gently introduce you to the different subfields of machine learning, and explain how to install OpenCV and other essential tools in the Python Anaconda ...

    PowerSnmp for .NET 4.8.1.0 Fixed

    No need to install, Just add reference in VS and use in your programs. For education purposes only. Buy the original product if you like the software. Support the software developers and their ...

    linux全志R16的linux系统编译的资料_20170502_1655.7z

    You must install 'makeinfo' on your build machine makeinfo is usually part of the texinfo package in your distribution make: *** [dependencies] 错误 1 make:离开目录“/home/wwt/linux_r16/lichee/...

    Redis-Essentials.pdf

    or a high-performance cache system that is simple to use and highly scalable, Redis is what you should use. This book is a fast-paced guide that teaches you the fundamentals of data types, explains ...

    cpp checker

    Simple build (no dependencies): make The recommended release build is: make SRCDIR=build CFGDIR=cfg HAVE_RULES=yes Flags: SRCDIR=build : Python is used to optimise cppcheck CFGDIR=cfg : ...

    UE(官方下载)

    You can use a combination of a script and tool to create a single file from multiple files. Sum Column/Selection in Column Mode This power tip demonstrates how to calculate the sum from a column of ...

    Firebird Maestro 17.1 带破解

    Firebird Maestro wizards and editors allow you to create, edit and drop tables as well as their fields, indexes, triggers and foreign keys in a couple of simple operations. Building and executing ...

    ICS delphixe10源码版

    Use a nice stamp and mention your name, street address, EMail address and any comment you like to say. 5. As this code make use of OpenSSL, your rights are restricted by OpenSSL license as soon ...

    eric5-5.3.1

    Build and install QScintilla2 (from Riverbank Computing) 3. Build and install sip (from Riverbank Computing) 4. Build and install PyQt4 (from Riverbank Computing) 5. Build and install ...

    RxLib控件包内含RxGIF,全部源码及DEMO

    stuck with dozens of INI-Aware components, use TFormStorage and let it manage all that for you. TPageManager is useful when creating multipage dialogs such as "Wizards" (or "Experts"). ...

    groovy_in_action_draft_ch_01.pdf

    To install Groovy, you need to follow a few simple steps. Typically, this involves downloading the Groovy distribution package, extracting it to a desired location, and adding the `bin` directory to ...

    i2c-tools-distrotech-i2c-tools

    See these manual pages for command line interface details and tool specific information. The other tools come with simple text documentation, which isn't installed. QUESTIONS AND BUG REPORTS ------...

    ethminer-0.16.0.dev3

    4. Build the project using [CMake Build Tool Mode]. This is a portable variant of `make`. ```sh cmake --build . ``` Note: In Windows, it is possible to have compiler issues if you don't specify...

    apktool documentation

    These are known as framework resources and Apktool relies on these to properly decode and build apks. Every Apktool release contains internally the most up to date AOSP framework at the time of the ...

    NS by example

    4. **Creating Simple Networks**: Build simple networks using NS. Begin with basic topologies and gradually increase complexity as you become more comfortable with the tool. 5. **Customizing ...

    Manning - Eclipse In Action.pdf

    - **Setting Up the Environment**: Instructions on how to download and install Eclipse, along with recommendations for additional plugins and tools. - **Navigating the Workbench**: An overview of the ...

Global site tag (gtag.js) - Google Analytics