My favorites | Sign in
Project Logo
                
Search
for
Updated Sep 29, 2009 by dmharrah
RunningSbt  

Introduction

This page describes how to use sbt once you have set up your project (see Setup).

Running

Run sbt in your project directory. If you have created a script to start sbt, this should be as simple as:

$ sbt

This starts sbt in interactive mode. You are given a simple prompt at which you type actions (or tasks, targets, phases, or whatever you'd like to call them). There is tab completion and history available at this prompt.

Alternatively, you can run sbt in batch mode. You specify a space-separated list of actions as arguments. For commands that take arguments, pass the command and arguments as one argument to sbt by enclosing them in quotes. For example,

$ sbt clean compile "get sbt.version"

You can make an action run when one or more source files changes by prefixing the action with ~. For example:

> ~ compile

See TriggeredExecution for details.

You can run an action for multiple versions of Scala by prefixing the action with +. See CrossBuild for details.

Actions

Build Actions

Build Commands


Comment by paulgier, Sep 04, 2009

Where is the sbt build file actually stored? All the examples seem to use the interactive editing. Is there a way to directly edit the build file?

Comment by dmharrah, Sep 04, 2009

Perhaps the BuildConfiguration page is what you are looking for?

-Mark


Sign in to add a comment
Hosted by Google Code