Permalink
Browse files

updated site

  • Loading branch information...
1 parent 1b1bb15 commit 33def6e877470bd85a230a0685dfb56b862e9b95 @harrah harrah committed May 20, 2012
View
0 .nojekyll
No changes.
View
344 howto.html
@@ -5,7 +5,7 @@
<head>
<title>How to... - </title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
- <link href='/resources/site.css' rel='stylesheet' type='text/css'>
+ <link href='/resources/howto-site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
@@ -39,353 +39,319 @@
<div id="pagecontent" class="cf">
-<h2><a href="/howto/triggered.html">Triggered execution</a></h2>
+<h3>Project metadata <a href="/howto/metadata.html">(details)</a></h3>
-<ul>
-<li><a href="/howto/triggered.html#basic">How to run a command when sources change</a></li>
-</ul>
+<p>... set the project name <a href="/howto/metadata.html#name">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; ~ test </span>
+<div class="highlight"><pre><code class="scala"> <span class="n">name</span> <span class="o">:=</span> <span class="s">&quot;demo&quot;</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/triggered.html#multi">How to run multiple commands when sources change</a></li>
-</ul>
+<p>... set the project version <a href="/howto/metadata.html#version">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; ~ ;a ;b </span>
+<div class="highlight"><pre><code class="scala"> <span class="n">version</span> <span class="o">:=</span> <span class="s">&quot;1.0&quot;</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/triggered.html#sources">How to configure the sources that are checked for changes</a></li>
-</ul>
+<p>... set the project organization <a href="/howto/metadata.html#organization">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">watchSources</span> <span class="o">&lt;+=</span> <span class="n">baseDirectory</span> <span class="o">{</span> <span class="k">_</span> <span class="o">/</span> <span class="s">&quot;examples.txt&quot;</span> <span class="o">}</span>
+<div class="highlight"><pre><code class="scala"> <span class="n">organization</span> <span class="o">:=</span> <span class="s">&quot;org.example&quot;</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/triggered.html#interval">How to set the time interval between checks for changes to sources</a></li>
-</ul>
+<p>... set the project homepage and other metadata used in a published pom.xml <a href="/howto/metadata.html#other">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">pollInterval</span> <span class="o">:=</span> <span class="mi">1000</span> <span class="c1">// in ms </span>
-</code></pre>
-</div>
+<h3>Triggered execution <a href="/howto/triggered.html">(details)</a></h3>
-<h2><a href="/howto/scala.html">Configure and use Scala</a></h2>
+<p>... run a command when sources change <a href="/howto/triggered.html#basic">(details)</a></p>
-<ul>
-<li><a href="/howto/scala.html#version">How to set the Scala version used for building the project</a></li>
-</ul>
-
-
-
-
-<div class="highlight"><pre><code class="scala"> <span class="n">version</span> <span class="o">:=</span> <span class="s">&quot;1.0&quot;</span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; ~ test </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/scala.html#noauto">How to disable the automatic dependency on the Scala library</a></li>
-</ul>
+<p>... run multiple commands when sources change <a href="/howto/triggered.html#multi">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">autoScalaLibrary</span> <span class="o">:=</span> <span class="kc">false</span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; ~ ;a ;b </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/scala.html#temporary">How to temporarily switch to a different Scala version</a></li>
-</ul>
+<p>... configure the sources that are checked for changes <a href="/howto/triggered.html#sources">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; ++ 2.8.2 </span>
+<div class="highlight"><pre><code class="scala"> <span class="n">watchSources</span> <span class="o">&lt;+=</span> <span class="n">baseDirectory</span> <span class="o">{</span> <span class="k">_</span> <span class="o">/</span> <span class="s">&quot;examples.txt&quot;</span> <span class="o">}</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/scala.html#local">How to use a local Scala installation for building a project</a></li>
-</ul>
+<p>... set the time interval between checks for changes to sources <a href="/howto/triggered.html#interval">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">scalaHome</span> <span class="o">:=</span> <span class="nc">Some</span><span class="o">(</span><span class="n">file</span><span class="o">(</span><span class="s">&quot;/path/to/scala/home/&quot;</span><span class="o">))</span>
+<div class="highlight"><pre><code class="scala"> <span class="n">pollInterval</span> <span class="o">:=</span> <span class="mi">1000</span> <span class="c1">// in ms </span>
</code></pre>
</div>
-<ul>
-<li><p><a href="/howto/scala.html#cross">How to build a project against multiple Scala versions</a></p></li>
-<li><p><a href="/howto/scala.html#console-quick">How to enter the Scala REPL with a project's dependencies on the classpath, but not the compiled project classes</a></p></li>
-</ul>
+<h3>Running commands <a href="/howto/runningcommands.html">(details)</a></h3>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; console-quick </span>
+<p>... pass arguments to a command or task in batch mode <a href="/howto/runningcommands.html#batch">(details)</a></p>
+
+
+
+
+<div class="highlight"><pre><code class="console"><span class="go"> $ sbt clean &quot;test-only org.example.Test&quot; &quot;run-main demo.Main a b c&quot; </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/scala.html#console">How to enter the Scala REPL with a project's dependencies and compiled code on the classpath</a></li>
-</ul>
+<p>... provide multiple commands to run consecutively <a href="/howto/runningcommands.html#multi">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; console </span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; ;clean ;compile </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/scala.html#console-project">How to enter the Scala REPL with plugins and the build definition on the classpath</a></li>
-</ul>
+<p>... read commands from a file <a href="/howto/runningcommands.html#read">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; console-project </span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; &lt; /path/to/file </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/scala.html#initial">How to define the initial commands evaluated when entering the Scala REPL</a></li>
-</ul>
+<p>... define an alias for a command or task <a href="/howto/runningcommands.html#alias">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">initialCommands</span> <span class="n">in</span> <span class="n">console</span> <span class="o">:=</span> <span class="s">&quot;&quot;&quot;println(&quot;Hi!&quot;)&quot;&quot;&quot;</span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; alias h=help </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/scala.html#embed">How to use the Scala REPL from project code</a></li>
-</ul>
+<p>... quickly evaluate a Scala expression <a href="/howto/runningcommands.html#eval">(details)</a></p>
-<h2><a href="/howto/logging.html">Configure and use logging</a></h2>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; eval 2+2 </span>
+</code></pre>
+</div>
-<ul>
-<li><a href="/howto/logging.html#last">How to view the logging output of the previously executed command</a></li>
-</ul>
+<h3>Generating files <a href="/howto/generatefiles.html">(details)</a></h3>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; last </span>
+<p>... generate sources <a href="/howto/generatefiles.html#sources">(details)</a></p>
+
+
+
+
+<div class="highlight"><pre><code class="scala"> <span class="n">sourceGenerators</span> <span class="n">in</span> <span class="nc">Compile</span> <span class="o">&lt;+=</span> <span class="o">&lt;</span><span class="n">your</span> <span class="nc">Task</span><span class="o">[</span><span class="kt">Seq</span><span class="o">[</span><span class="kt">File</span><span class="o">]]</span> <span class="n">here</span><span class="o">&gt;</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/logging.html#tasklast">How to view the previous logging output of a specific task</a></li>
-</ul>
+<p>... generate resources <a href="/howto/generatefiles.html#resources">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; last compile </span>
+<div class="highlight"><pre><code class="scala"> <span class="n">resourceGenerators</span> <span class="n">in</span> <span class="nc">Compile</span> <span class="o">&lt;+=</span> <span class="o">&lt;</span><span class="n">your</span> <span class="nc">Task</span><span class="o">[</span><span class="kt">Seq</span><span class="o">[</span><span class="kt">File</span><span class="o">]]</span> <span class="n">here</span><span class="o">&gt;</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/logging.html#lastgrep">How to search the logging output of the previously executed command</a></li>
-</ul>
+<h3>Interactive mode <a href="/howto/interactive.html">(details)</a></h3>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; last-grep *Test.jar </span>
-</code></pre>
-</div>
+<p>... use tab completion <a href="/howto/interactive.html#basic_completion">(details)</a></p>
-<ul>
-<li><a href="/howto/logging.html#tasklastgrep">How to search the previous logging output of a specific task</a></li>
-</ul>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; test-only &lt;TAB&gt; </span>
+</code></pre>
+</div>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; last-grep *Test.jar run </span>
-</code></pre>
-</div>
+<p>... show more tab completion suggestions <a href="/howto/interactive.html#verbose_completion">(details)</a>
+ <p>Press tab multiple times.</p></p>
-<ul>
-<li><a href="/howto/logging.html#level">How to change the logging level globally</a></li>
-</ul>
+<p>... view basic JLine keybindings <a href="/howto/interactive.html#show_keybindings">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; set every logLevel := Level.Debug </span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; console-quick</span>
+<span class="go">scala&gt; :keybindings</span>
+<span class="go"> </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/logging.html#tasklevel">How to change the logging level for a specific task, configuration, or project</a></li>
-</ul>
+<p>... modify the default JLine keybindings <a href="/howto/interactive.html#change_keybindings">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">logLevel</span> <span class="n">in</span> <span class="n">compile</span> <span class="o">:=</span> <span class="nc">Level</span><span class="o">.</span><span class="nc">Debug</span>
+<p>... configure the prompt string <a href="/howto/interactive.html#prompt">(details)</a></p>
+
+
+
+
+<div class="highlight"><pre><code class="scala"> <span class="n">shellPrompt</span> <span class="o">:=</span> <span class="o">{</span> <span class="o">(</span><span class="n">s</span><span class="k">:</span> <span class="kt">State</span><span class="o">)</span> <span class="k">=&gt;</span> <span class="nc">System</span><span class="o">.</span><span class="n">getProperty</span><span class="o">(</span><span class="s">&quot;user.name&quot;</span><span class="o">)</span> <span class="o">+</span> <span class="s">&quot;&gt; &quot;</span> <span class="o">}</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/logging.html#trace">How to configure printing of stack traces globally</a></li>
-</ul>
+<p>... use history <a href="/howto/interactive.html#history">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; set every traceLevel := 5` </span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; ! </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/logging.html#tasktrace">How to configure printing of stack traces for a specific task, configuration, or project</a></li>
-</ul>
+<p>... change the location of the interactive history file <a href="/howto/interactive.html#history_file">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">traceLevel</span> <span class="o">:=</span> <span class="mi">5</span>
+<div class="highlight"><pre><code class="scala"> <span class="n">historyPath</span> <span class="o">&lt;&lt;=</span> <span class="n">baseDirectory</span><span class="o">(</span><span class="n">t</span> <span class="k">=&gt;</span> <span class="nc">Some</span><span class="o">(</span><span class="n">t</span> <span class="o">/</span> <span class="s">&quot;.history&quot;</span><span class="o">))</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/logging.html#nobuffer">How to print the output of tests immediately instead of buffering</a></li>
-</ul>
+<p>... share interactive history across projects <a href="/howto/interactive.html#share_history">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">logBuffered</span> <span class="o">:=</span> <span class="kc">false</span>
+<div class="highlight"><pre><code class="scala"> <span class="n">historyPath</span> <span class="o">&lt;&lt;=</span> <span class="o">(</span><span class="n">target</span> <span class="n">in</span> <span class="nc">LocalRootProject</span><span class="o">)</span> <span class="o">{</span> <span class="n">t</span> <span class="k">=&gt;</span> <span class="nc">Some</span><span class="o">(</span><span class="n">t</span> <span class="o">/</span> <span class="s">&quot;.history&quot;</span><span class="o">)</span> <span class="o">}</span>
</code></pre>
</div>
-<ul>
-<li><p><a href="/howto/logging.html#custom">How to add a custom logger</a></p></li>
-<li><p><a href="/howto/logging.html#log">How to log messages from a task</a></p></li>
-</ul>
+<p>... disable interactive history <a href="/howto/interactive.html#disable_history">(details)</a></p>
-<h2><a href="/howto/metadata.html">Project metadata</a></h2>
+<div class="highlight"><pre><code class="scala"> <span class="n">historyPath</span> <span class="o">:=</span> <span class="nc">None</span>
+</code></pre>
+</div>
-<ul>
-<li><a href="/howto/metadata.html#name">How to set the project name</a></li>
-</ul>
+<p>... start interactive mode after executing some commands first <a href="/howto/interactive.html#pre_commands">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">name</span> <span class="o">:=</span> <span class="s">&quot;demo&quot;</span>
+<div class="highlight"><pre><code class="console"><span class="go"> $ sbt clean compile shell </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/metadata.html#version">How to set the project version</a></li>
-</ul>
+<h3>Configure and use Scala <a href="/howto/scala.html">(details)</a></h3>
+
+
+
+
+<p>... set the Scala version used for building the project <a href="/howto/scala.html#version">(details)</a></p>
@@ -397,110 +363,106 @@
-<ul>
-<li><a href="/howto/metadata.html#organization">How to set the project organization</a></li>
-</ul>
+<p>... disable the automatic dependency on the Scala library <a href="/howto/scala.html#noauto">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">organization</span> <span class="o">:=</span> <span class="s">&quot;org.example&quot;</span>
+<div class="highlight"><pre><code class="scala"> <span class="n">autoScalaLibrary</span> <span class="o">:=</span> <span class="kc">false</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/metadata.html#other">How to set the project homepage and other metadata used in a published pom.xml</a></li>
-</ul>
+<p>... temporarily switch to a different Scala version <a href="/howto/scala.html#temporary">(details)</a></p>
-<h2><a href="/howto/runningcommands.html">Running commands</a></h2>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; ++ 2.8.2 </span>
+</code></pre>
+</div>
-<ul>
-<li><a href="/howto/runningcommands.html#batch">How to pass arguments to a command or task in batch mode</a></li>
-</ul>
+<p>... use a local Scala installation for building a project <a href="/howto/scala.html#local">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> $ sbt clean &quot;test-only org.example.Test&quot; &quot;run-main demo.Main a b c&quot; </span>
+<div class="highlight"><pre><code class="scala"> <span class="n">scalaHome</span> <span class="o">:=</span> <span class="nc">Some</span><span class="o">(</span><span class="n">file</span><span class="o">(</span><span class="s">&quot;/path/to/scala/home/&quot;</span><span class="o">))</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/runningcommands.html#multi">How to provide multiple commands to run consecutively</a></li>
-</ul>
+<p>... build a project against multiple Scala versions <a href="/howto/scala.html#cross">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; ;clean ;compile </span>
+<p>... enter the Scala REPL with a project's dependencies on the classpath, but not the compiled project classes <a href="/howto/scala.html#console-quick">(details)</a></p>
+
+
+
+
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; console-quick </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/runningcommands.html#read">How to read commands from a file</a></li>
-</ul>
+<p>... enter the Scala REPL with a project's dependencies and compiled code on the classpath <a href="/howto/scala.html#console">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; &lt; /path/to/file </span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; console </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/runningcommands.html#alias">How to define an alias for a command or task</a></li>
-</ul>
+<p>... enter the Scala REPL with plugins and the build definition on the classpath <a href="/howto/scala.html#console-project">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; alias h=help </span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; console-project </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/runningcommands.html#eval">How to quickly evaluate a Scala expression</a></li>
-</ul>
+<p>... define the initial commands evaluated when entering the Scala REPL <a href="/howto/scala.html#initial">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; eval 2+2 </span>
+<div class="highlight"><pre><code class="scala"> <span class="n">initialCommands</span> <span class="n">in</span> <span class="n">console</span> <span class="o">:=</span> <span class="s">&quot;&quot;&quot;println(&quot;Hi!&quot;)&quot;&quot;&quot;</span>
</code></pre>
</div>
-<h2><a href="/howto/package.html">Configure packaging</a></h2>
+<p>... use the Scala REPL from project code <a href="/howto/scala.html#embed">(details)</a></p>
+
+
+
+
+<h3>Configure packaging <a href="/howto/package.html">(details)</a></h3>
-<ul>
-<li><a href="/howto/package.html#export">How to use the packaged jar on classpaths instead of class directory</a></li>
-</ul>
+<p>... use the packaged jar on classpaths instead of class directory <a href="/howto/package.html#export">(details)</a></p>
@@ -512,9 +474,7 @@
-<ul>
-<li><a href="/howto/package.html#manifest">How to add manifest attributes</a></li>
-</ul>
+<p>... add manifest attributes <a href="/howto/package.html#manifest">(details)</a></p>
@@ -526,10 +486,12 @@
-<ul>
-<li><p><a href="/howto/package.html#name">How to change the file name of a package</a></p></li>
-<li><p><a href="/howto/package.html#contents">How to modify the contents of the package</a></p></li>
-</ul>
+<p>... change the file name of a package <a href="/howto/package.html#name">(details)</a></p>
+
+
+
+
+<p>... modify the contents of the package <a href="/howto/package.html#contents">(details)</a></p>
@@ -541,159 +503,125 @@
-<h2><a href="/howto/generatefiles.html">Generating files</a></h2>
+<h3>Configure and use logging <a href="/howto/logging.html">(details)</a></h3>
-<ul>
-<li><a href="/howto/generatefiles.html#sources">How to generate sources</a></li>
-</ul>
+<p>... view the logging output of the previously executed command <a href="/howto/logging.html#last">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">sourceGenerators</span> <span class="n">in</span> <span class="nc">Compile</span> <span class="o">&lt;+=</span> <span class="o">&lt;</span><span class="n">your</span> <span class="nc">Task</span><span class="o">[</span><span class="kt">Seq</span><span class="o">[</span><span class="kt">File</span><span class="o">]]</span> <span class="n">here</span><span class="o">&gt;</span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; last </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/generatefiles.html#resources">How to generate resources</a></li>
-</ul>
+<p>... view the previous logging output of a specific task <a href="/howto/logging.html#tasklast">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">resourceGenerators</span> <span class="n">in</span> <span class="nc">Compile</span> <span class="o">&lt;+=</span> <span class="o">&lt;</span><span class="n">your</span> <span class="nc">Task</span><span class="o">[</span><span class="kt">Seq</span><span class="o">[</span><span class="kt">File</span><span class="o">]]</span> <span class="n">here</span><span class="o">&gt;</span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; last compile </span>
</code></pre>
</div>
-<h2><a href="/howto/interactive.html">Interactive mode</a></h2>
-
+<p>... search the logging output of the previously executed command <a href="/howto/logging.html#lastgrep">(details)</a></p>
-<ul>
-<li><a href="/howto/interactive.html#basic_completion">How to use tab completion</a></li>
-</ul>
-
-
-
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; test-only &lt;TAB&gt; </span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; last-grep *Test.jar </span>
</code></pre>
</div>
-<ul>
-<li><p><a href="/howto/interactive.html#verbose_completion">How to show more tab completion suggestions</a>
- <p>Press tab multiple times.</p></p></li>
-<li><p><a href="/howto/interactive.html#show_keybindings">How to view basic JLine keybindings</a></p></li>
-</ul>
+<p>... search the previous logging output of a specific task <a href="/howto/logging.html#tasklastgrep">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; console-quick</span>
-<span class="go">scala&gt; :keybindings</span>
-<span class="go"> </span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; last-grep *Test.jar run </span>
</code></pre>
</div>
-<ul>
-<li><p><a href="/howto/interactive.html#change_keybindings">How to modify the default JLine keybindings</a></p></li>
-<li><p><a href="/howto/interactive.html#prompt">How to configure the prompt string</a></p></li>
-</ul>
+<p>... change the logging level globally <a href="/howto/logging.html#level">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">shellPrompt</span> <span class="o">:=</span> <span class="o">{</span> <span class="o">(</span><span class="n">s</span><span class="k">:</span> <span class="kt">State</span><span class="o">)</span> <span class="k">=&gt;</span> <span class="nc">System</span><span class="o">.</span><span class="n">getProperty</span><span class="o">(</span><span class="s">&quot;user.name&quot;</span><span class="o">)</span> <span class="o">+</span> <span class="s">&quot;&gt; &quot;</span> <span class="o">}</span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; set every logLevel := Level.Debug </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/interactive.html#history">How to use history</a></li>
-</ul>
+<p>... change the logging level for a specific task, configuration, or project <a href="/howto/logging.html#tasklevel">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; ! </span>
+<div class="highlight"><pre><code class="scala"> <span class="n">logLevel</span> <span class="n">in</span> <span class="n">compile</span> <span class="o">:=</span> <span class="nc">Level</span><span class="o">.</span><span class="nc">Debug</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/interactive.html#history_file">How to change the location of the interactive history file</a></li>
-</ul>
+<p>... configure printing of stack traces globally <a href="/howto/logging.html#trace">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">historyPath</span> <span class="o">&lt;&lt;=</span> <span class="n">baseDirectory</span><span class="o">(</span><span class="n">t</span> <span class="k">=&gt;</span> <span class="nc">Some</span><span class="o">(</span><span class="n">t</span> <span class="o">/</span> <span class="s">&quot;.history&quot;</span><span class="o">))</span>
+<div class="highlight"><pre><code class="console"><span class="go"> &gt; set every traceLevel := 5` </span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/interactive.html#share_history">How to share interactive history across projects</a></li>
-</ul>
+<p>... configure printing of stack traces for a specific task, configuration, or project <a href="/howto/logging.html#tasktrace">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">historyPath</span> <span class="o">&lt;&lt;=</span> <span class="o">(</span><span class="n">target</span> <span class="n">in</span> <span class="nc">LocalRootProject</span><span class="o">)</span> <span class="o">{</span> <span class="n">t</span> <span class="k">=&gt;</span> <span class="nc">Some</span><span class="o">(</span><span class="n">t</span> <span class="o">/</span> <span class="s">&quot;.history&quot;</span><span class="o">)</span> <span class="o">}</span>
+<div class="highlight"><pre><code class="scala"> <span class="n">traceLevel</span> <span class="o">:=</span> <span class="mi">5</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/interactive.html#disable_history">How to disable interactive history</a></li>
-</ul>
+<p>... print the output of tests immediately instead of buffering <a href="/howto/logging.html#nobuffer">(details)</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">historyPath</span> <span class="o">:=</span> <span class="nc">None</span>
+<div class="highlight"><pre><code class="scala"> <span class="n">logBuffered</span> <span class="o">:=</span> <span class="kc">false</span>
</code></pre>
</div>
-<ul>
-<li><a href="/howto/interactive.html#pre_commands">How to start interactive mode after executing some commands first</a></li>
-</ul>
-
+<p>... add a custom logger <a href="/howto/logging.html#custom">(details)</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> $ sbt clean compile shell </span>
-</code></pre>
-</div>
-
+<p>... log messages from a task <a href="/howto/logging.html#log">(details)</a></p>
</div>
View
33 howto/generatefiles.html
@@ -5,46 +5,27 @@
<head>
<title>Generating files - </title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
- <link href='/resources/site.css' rel='stylesheet' type='text/css'>
+ <link href='/resources/howto-site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
<body>
- <!-- Topbar
- ================================================== -->
- <div class="cf" id="more" >
- <div id="top">
- <div class="container">
- <a class="brand" href="/">SBT</a>
- <ul class="nav">
- <li><a href="/learn.html">Learn</a>
- <li><a href="/download.html">Download</a>
- <li><a href="/community.html">Community</a></li>
- <li><a href="#top">Top</a></li>
- </ul>
- </div>
- </div>
- </div>
-
-
<div class="cf" id="container">
<div class="span2 columns container-spacer"><p>&nbsp;</p></div>
<div id="intro" class="span10 columns content">
<div id="head" class="cf">
- <div id="name" class="left">
- <h1>sbt</h1>
- <h2>Generating files</h2>
- </div>
+ <h2>Generating files</h2>
</div>
- <div id="features" class="cf"><div id="feature-list">
- <ul class="left">
+ <div class="cf"><div id="feature-list">
+ <h3> How to ...</h3>
+ <ul class="left" id="section-toc">
- <li id="feature"><h4><a href="#sources">How to generate sources</a></h4></li>
+ <li id="feature"><h5>... <a href="#sources">generate sources</a></h5></li>
- <li id="feature"><h4><a href="#resources">How to generate resources</a></h4></li>
+ <li id="feature"><h5>... <a href="#resources">generate resources</a></h5></li>
</ul>
</div></div>
View
56 howto/interactive.html
@@ -5,62 +5,43 @@
<head>
<title>Interactive mode - </title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
- <link href='/resources/site.css' rel='stylesheet' type='text/css'>
+ <link href='/resources/howto-site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
<body>
- <!-- Topbar
- ================================================== -->
- <div class="cf" id="more" >
- <div id="top">
- <div class="container">
- <a class="brand" href="/">SBT</a>
- <ul class="nav">
- <li><a href="/learn.html">Learn</a>
- <li><a href="/download.html">Download</a>
- <li><a href="/community.html">Community</a></li>
- <li><a href="#top">Top</a></li>
- </ul>
- </div>
- </div>
- </div>
-
-
<div class="cf" id="container">
<div class="span2 columns container-spacer"><p>&nbsp;</p></div>
<div id="intro" class="span10 columns content">
<div id="head" class="cf">
- <div id="name" class="left">
- <h1>sbt</h1>
- <h2>Interactive mode</h2>
- </div>
+ <h2>Interactive mode</h2>
</div>
- <div id="features" class="cf"><div id="feature-list">
- <ul class="left">
+ <div class="cf"><div id="feature-list">
+ <h3> How to ...</h3>
+ <ul class="left" id="section-toc">
- <li id="feature"><h4><a href="#basic_completion">How to use tab completion</a></h4></li>
+ <li id="feature"><h5>... <a href="#basic_completion">use tab completion</a></h5></li>
- <li id="feature"><h4><a href="#verbose_completion">How to show more tab completion suggestions</a></h4></li>
+ <li id="feature"><h5>... <a href="#verbose_completion">show more tab completion suggestions</a></h5></li>
- <li id="feature"><h4><a href="#show_keybindings">How to view basic JLine keybindings</a></h4></li>
+ <li id="feature"><h5>... <a href="#show_keybindings">view basic JLine keybindings</a></h5></li>
- <li id="feature"><h4><a href="#change_keybindings">How to modify the default JLine keybindings</a></h4></li>
+ <li id="feature"><h5>... <a href="#change_keybindings">modify the default JLine keybindings</a></h5></li>
- <li id="feature"><h4><a href="#prompt">How to configure the prompt string</a></h4></li>
+ <li id="feature"><h5>... <a href="#prompt">configure the prompt string</a></h5></li>
- <li id="feature"><h4><a href="#history">How to use history</a></h4></li>
+ <li id="feature"><h5>... <a href="#history">use history</a></h5></li>
- <li id="feature"><h4><a href="#history_file">How to change the location of the interactive history file</a></h4></li>
+ <li id="feature"><h5>... <a href="#history_file">change the location of the interactive history file</a></h5></li>
- <li id="feature"><h4><a href="#share_history">How to share interactive history across projects</a></h4></li>
+ <li id="feature"><h5>... <a href="#share_history">share interactive history across projects</a></h5></li>
- <li id="feature"><h4><a href="#disable_history">How to disable interactive history</a></h4></li>
+ <li id="feature"><h5>... <a href="#disable_history">disable interactive history</a></h5></li>
- <li id="feature"><h4><a href="#pre_commands">How to start interactive mode after executing some commands first</a></h4></li>
+ <li id="feature"><h5>... <a href="#pre_commands">start interactive mode after executing some commands first</a></h5></li>
</ul>
</div></div>
@@ -156,9 +137,10 @@ <h4 id="prompt">Configure the prompt string</h4>
<h4 id="history">Using history</h4>
-<p>Interactive mode remembers history, even if you exit sbt and restart it.
-The simplest way to access history is with the up arrow key. The following
-commands are also supported:</p>
+<p>Interactive mode remembers history even if you exit sbt and restart it.
+The simplest way to access history is to press the up arrow key to cycle
+through previously entered commands. Use <code>Ctrl+r</code> to incrementally
+search history backwards. The following commands are supported:</p>
<ul>
<li><code>!</code> Show history command help.</li>
View
51 howto/logging.html
@@ -5,64 +5,45 @@
<head>
<title>Configure and use logging - </title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
- <link href='/resources/site.css' rel='stylesheet' type='text/css'>
+ <link href='/resources/howto-site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
<body>
- <!-- Topbar
- ================================================== -->
- <div class="cf" id="more" >
- <div id="top">
- <div class="container">
- <a class="brand" href="/">SBT</a>
- <ul class="nav">
- <li><a href="/learn.html">Learn</a>
- <li><a href="/download.html">Download</a>
- <li><a href="/community.html">Community</a></li>
- <li><a href="#top">Top</a></li>
- </ul>
- </div>
- </div>
- </div>
-
-
<div class="cf" id="container">
<div class="span2 columns container-spacer"><p>&nbsp;</p></div>
<div id="intro" class="span10 columns content">
<div id="head" class="cf">
- <div id="name" class="left">
- <h1>sbt</h1>
- <h2>Configure and use logging</h2>
- </div>
+ <h2>Configure and use logging</h2>
</div>
- <div id="features" class="cf"><div id="feature-list">
- <ul class="left">
+ <div class="cf"><div id="feature-list">
+ <h3> How to ...</h3>
+ <ul class="left" id="section-toc">
- <li id="feature"><h4><a href="#last">How to view the logging output of the previously executed command</a></h4></li>
+ <li id="feature"><h5>... <a href="#last">view the logging output of the previously executed command</a></h5></li>
- <li id="feature"><h4><a href="#tasklast">How to view the previous logging output of a specific task</a></h4></li>
+ <li id="feature"><h5>... <a href="#tasklast">view the previous logging output of a specific task</a></h5></li>
- <li id="feature"><h4><a href="#lastgrep">How to search the logging output of the previously executed command</a></h4></li>
+ <li id="feature"><h5>... <a href="#lastgrep">search the logging output of the previously executed command</a></h5></li>
- <li id="feature"><h4><a href="#tasklastgrep">How to search the previous logging output of a specific task</a></h4></li>
+ <li id="feature"><h5>... <a href="#tasklastgrep">search the previous logging output of a specific task</a></h5></li>
- <li id="feature"><h4><a href="#level">How to change the logging level globally</a></h4></li>
+ <li id="feature"><h5>... <a href="#level">change the logging level globally</a></h5></li>
- <li id="feature"><h4><a href="#tasklevel">How to change the logging level for a specific task, configuration, or project</a></h4></li>
+ <li id="feature"><h5>... <a href="#tasklevel">change the logging level for a specific task, configuration, or project</a></h5></li>
- <li id="feature"><h4><a href="#trace">How to configure printing of stack traces globally</a></h4></li>
+ <li id="feature"><h5>... <a href="#trace">configure printing of stack traces globally</a></h5></li>
- <li id="feature"><h4><a href="#tasktrace">How to configure printing of stack traces for a specific task, configuration, or project</a></h4></li>
+ <li id="feature"><h5>... <a href="#tasktrace">configure printing of stack traces for a specific task, configuration, or project</a></h5></li>
- <li id="feature"><h4><a href="#nobuffer">How to print the output of tests immediately instead of buffering</a></h4></li>
+ <li id="feature"><h5>... <a href="#nobuffer">print the output of tests immediately instead of buffering</a></h5></li>
- <li id="feature"><h4><a href="#custom">How to add a custom logger</a></h4></li>
+ <li id="feature"><h5>... <a href="#custom">add a custom logger</a></h5></li>
- <li id="feature"><h4><a href="#log">How to log messages from a task</a></h4></li>
+ <li id="feature"><h5>... <a href="#log">log messages from a task</a></h5></li>
</ul>
</div></div>
View
37 howto/metadata.html
@@ -5,50 +5,31 @@
<head>
<title>Project metadata - </title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
- <link href='/resources/site.css' rel='stylesheet' type='text/css'>
+ <link href='/resources/howto-site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
<body>
- <!-- Topbar
- ================================================== -->
- <div class="cf" id="more" >
- <div id="top">
- <div class="container">
- <a class="brand" href="/">SBT</a>
- <ul class="nav">
- <li><a href="/learn.html">Learn</a>
- <li><a href="/download.html">Download</a>
- <li><a href="/community.html">Community</a></li>
- <li><a href="#top">Top</a></li>
- </ul>
- </div>
- </div>
- </div>
-
-
<div class="cf" id="container">
<div class="span2 columns container-spacer"><p>&nbsp;</p></div>
<div id="intro" class="span10 columns content">
<div id="head" class="cf">
- <div id="name" class="left">
- <h1>sbt</h1>
- <h2>Project metadata</h2>
- </div>
+ <h2>Project metadata</h2>
</div>
- <div id="features" class="cf"><div id="feature-list">
- <ul class="left">
+ <div class="cf"><div id="feature-list">
+ <h3> How to ...</h3>
+ <ul class="left" id="section-toc">
- <li id="feature"><h4><a href="#name">How to set the project name</a></h4></li>
+ <li id="feature"><h5>... <a href="#name">set the project name</a></h5></li>
- <li id="feature"><h4><a href="#version">How to set the project version</a></h4></li>
+ <li id="feature"><h5>... <a href="#version">set the project version</a></h5></li>
- <li id="feature"><h4><a href="#organization">How to set the project organization</a></h4></li>
+ <li id="feature"><h5>... <a href="#organization">set the project organization</a></h5></li>
- <li id="feature"><h4><a href="#other">How to set the project homepage and other metadata used in a published pom.xml</a></h4></li>
+ <li id="feature"><h5>... <a href="#other">set the project homepage and other metadata used in a published pom.xml</a></h5></li>
</ul>
</div></div>
View
37 howto/package.html
@@ -5,50 +5,31 @@
<head>
<title>Configure packaging - </title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
- <link href='/resources/site.css' rel='stylesheet' type='text/css'>
+ <link href='/resources/howto-site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
<body>
- <!-- Topbar
- ================================================== -->
- <div class="cf" id="more" >
- <div id="top">
- <div class="container">
- <a class="brand" href="/">SBT</a>
- <ul class="nav">
- <li><a href="/learn.html">Learn</a>
- <li><a href="/download.html">Download</a>
- <li><a href="/community.html">Community</a></li>
- <li><a href="#top">Top</a></li>
- </ul>
- </div>
- </div>
- </div>
-
-
<div class="cf" id="container">
<div class="span2 columns container-spacer"><p>&nbsp;</p></div>
<div id="intro" class="span10 columns content">
<div id="head" class="cf">
- <div id="name" class="left">
- <h1>sbt</h1>
- <h2>Configure packaging</h2>
- </div>
+ <h2>Configure packaging</h2>
</div>
- <div id="features" class="cf"><div id="feature-list">
- <ul class="left">
+ <div class="cf"><div id="feature-list">
+ <h3> How to ...</h3>
+ <ul class="left" id="section-toc">
- <li id="feature"><h4><a href="#export">How to use the packaged jar on classpaths instead of class directory</a></h4></li>
+ <li id="feature"><h5>... <a href="#export">use the packaged jar on classpaths instead of class directory</a></h5></li>
- <li id="feature"><h4><a href="#manifest">How to add manifest attributes</a></h4></li>
+ <li id="feature"><h5>... <a href="#manifest">add manifest attributes</a></h5></li>
- <li id="feature"><h4><a href="#name">How to change the file name of a package</a></h4></li>
+ <li id="feature"><h5>... <a href="#name">change the file name of a package</a></h5></li>
- <li id="feature"><h4><a href="#contents">How to modify the contents of the package</a></h4></li>
+ <li id="feature"><h5>... <a href="#contents">modify the contents of the package</a></h5></li>
</ul>
</div></div>
View
39 howto/runningcommands.html
@@ -5,52 +5,33 @@
<head>
<title>Running commands - </title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
- <link href='/resources/site.css' rel='stylesheet' type='text/css'>
+ <link href='/resources/howto-site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
<body>
- <!-- Topbar
- ================================================== -->
- <div class="cf" id="more" >
- <div id="top">
- <div class="container">
- <a class="brand" href="/">SBT</a>
- <ul class="nav">
- <li><a href="/learn.html">Learn</a>
- <li><a href="/download.html">Download</a>
- <li><a href="/community.html">Community</a></li>
- <li><a href="#top">Top</a></li>
- </ul>
- </div>
- </div>
- </div>
-
-
<div class="cf" id="container">
<div class="span2 columns container-spacer"><p>&nbsp;</p></div>
<div id="intro" class="span10 columns content">
<div id="head" class="cf">
- <div id="name" class="left">
- <h1>sbt</h1>
- <h2>Running commands</h2>
- </div>
+ <h2>Running commands</h2>
</div>
- <div id="features" class="cf"><div id="feature-list">
- <ul class="left">
+ <div class="cf"><div id="feature-list">
+ <h3> How to ...</h3>
+ <ul class="left" id="section-toc">
- <li id="feature"><h4><a href="#batch">How to pass arguments to a command or task in batch mode</a></h4></li>
+ <li id="feature"><h5>... <a href="#batch">pass arguments to a command or task in batch mode</a></h5></li>
- <li id="feature"><h4><a href="#multi">How to provide multiple commands to run consecutively</a></h4></li>
+ <li id="feature"><h5>... <a href="#multi">provide multiple commands to run consecutively</a></h5></li>
- <li id="feature"><h4><a href="#read">How to read commands from a file</a></h4></li>
+ <li id="feature"><h5>... <a href="#read">read commands from a file</a></h5></li>
- <li id="feature"><h4><a href="#alias">How to define an alias for a command or task</a></h4></li>
+ <li id="feature"><h5>... <a href="#alias">define an alias for a command or task</a></h5></li>
- <li id="feature"><h4><a href="#eval">How to quickly evaluate a Scala expression</a></h4></li>
+ <li id="feature"><h5>... <a href="#eval">quickly evaluate a Scala expression</a></h5></li>
</ul>
</div></div>
View
49 howto/scala.html
@@ -5,62 +5,43 @@
<head>
<title>Configure and use Scala - </title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
- <link href='/resources/site.css' rel='stylesheet' type='text/css'>
+ <link href='/resources/howto-site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
<body>
- <!-- Topbar
- ================================================== -->
- <div class="cf" id="more" >
- <div id="top">
- <div class="container">
- <a class="brand" href="/">SBT</a>
- <ul class="nav">
- <li><a href="/learn.html">Learn</a>
- <li><a href="/download.html">Download</a>
- <li><a href="/community.html">Community</a></li>
- <li><a href="#top">Top</a></li>
- </ul>
- </div>
- </div>
- </div>
-
-
<div class="cf" id="container">
<div class="span2 columns container-spacer"><p>&nbsp;</p></div>
<div id="intro" class="span10 columns content">
<div id="head" class="cf">
- <div id="name" class="left">
- <h1>sbt</h1>
- <h2>Configure and use Scala</h2>
- </div>
+ <h2>Configure and use Scala</h2>
</div>
- <div id="features" class="cf"><div id="feature-list">
- <ul class="left">
+ <div class="cf"><div id="feature-list">
+ <h3> How to ...</h3>
+ <ul class="left" id="section-toc">
- <li id="feature"><h4><a href="#version">How to set the Scala version used for building the project</a></h4></li>
+ <li id="feature"><h5>... <a href="#version">set the Scala version used for building the project</a></h5></li>
- <li id="feature"><h4><a href="#noauto">How to disable the automatic dependency on the Scala library</a></h4></li>
+ <li id="feature"><h5>... <a href="#noauto">disable the automatic dependency on the Scala library</a></h5></li>
- <li id="feature"><h4><a href="#temporary">How to temporarily switch to a different Scala version</a></h4></li>
+ <li id="feature"><h5>... <a href="#temporary">temporarily switch to a different Scala version</a></h5></li>
- <li id="feature"><h4><a href="#local">How to use a local Scala installation for building a project</a></h4></li>
+ <li id="feature"><h5>... <a href="#local">use a local Scala installation for building a project</a></h5></li>
- <li id="feature"><h4><a href="#cross">How to build a project against multiple Scala versions</a></h4></li>
+ <li id="feature"><h5>... <a href="#cross">build a project against multiple Scala versions</a></h5></li>
- <li id="feature"><h4><a href="#console-quick">How to enter the Scala REPL with a project's dependencies on the classpath, but not the compiled project classes</a></h4></li>
+ <li id="feature"><h5>... <a href="#console-quick">enter the Scala REPL with a project's dependencies on the classpath, but not the compiled project classes</a></h5></li>
- <li id="feature"><h4><a href="#console">How to enter the Scala REPL with a project's dependencies and compiled code on the classpath</a></h4></li>
+ <li id="feature"><h5>... <a href="#console">enter the Scala REPL with a project's dependencies and compiled code on the classpath</a></h5></li>
- <li id="feature"><h4><a href="#console-project">How to enter the Scala REPL with plugins and the build definition on the classpath</a></h4></li>
+ <li id="feature"><h5>... <a href="#console-project">enter the Scala REPL with plugins and the build definition on the classpath</a></h5></li>
- <li id="feature"><h4><a href="#initial">How to define the initial commands evaluated when entering the Scala REPL</a></h4></li>
+ <li id="feature"><h5>... <a href="#initial">define the initial commands evaluated when entering the Scala REPL</a></h5></li>
- <li id="feature"><h4><a href="#embed">How to use the Scala REPL from project code</a></h4></li>
+ <li id="feature"><h5>... <a href="#embed">use the Scala REPL from project code</a></h5></li>
</ul>
</div></div>
View
46 howto/triggered.html
@@ -5,57 +5,36 @@
<head>
<title>Triggered execution - </title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
- <link href='/resources/site.css' rel='stylesheet' type='text/css'>
+ <link href='/resources/howto-site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
</head>
<body>
- <!-- Topbar
- ================================================== -->
- <div class="cf" id="more" >
- <div id="top">
- <div class="container">
- <a class="brand" href="/">SBT</a>
- <ul class="nav">
- <li><a href="/learn.html">Learn</a>
- <li><a href="/download.html">Download</a>
- <li><a href="/community.html">Community</a></li>
- <li><a href="#top">Top</a></li>
- </ul>
- </div>
- </div>
- </div>
-
-
<div class="cf" id="container">
<div class="span2 columns container-spacer"><p>&nbsp;</p></div>
<div id="intro" class="span10 columns content">
<div id="head" class="cf">
- <div id="name" class="left">
- <h1>sbt</h1>
- <h2>Triggered execution</h2>
- </div>
+ <h2>Triggered execution</h2>
</div>
- <div id="features" class="cf"><div id="feature-list">
- <ul class="left">
+ <div class="cf"><div id="feature-list">
+ <h3> How to ...</h3>
+ <ul class="left" id="section-toc">
- <li id="feature"><h4><a href="#basic">How to run a command when sources change</a></h4></li>
+ <li id="feature"><h5>... <a href="#basic">run a command when sources change</a></h5></li>
- <li id="feature"><h4><a href="#multi">How to run multiple commands when sources change</a></h4></li>
+ <li id="feature"><h5>... <a href="#multi">run multiple commands when sources change</a></h5></li>
- <li id="feature"><h4><a href="#sources">How to configure the sources that are checked for changes</a></h4></li>
+ <li id="feature"><h5>... <a href="#sources">configure the sources that are checked for changes</a></h5></li>
- <li id="feature"><h4><a href="#interval">How to set the time interval between checks for changes to sources</a></h4></li>
+ <li id="feature"><h5>... <a href="#interval">set the time interval between checks for changes to sources</a></h5></li>
</ul>
</div></div>
<div id="pagecontent" class="cf">
- <p><a href="https://github.com/harrah/xsbt/wiki/Full-Configuration">Full Configuration</a></p>
-
-<h4 id="basic">Run a command when sources change</h4>
+ <h4 id="basic">Run a command when sources change</h4>
<p>You can make a command run when certain files change by prefixing the command with <code>~</code>. Monitoring is terminated when <code>enter</code> is pressed. This triggered execution is configured by the <code>watch</code> setting, but typically the basic settings <code>watch-sources</code> and <code>poll-interval</code> are modified as described in later sections.</p>
@@ -111,10 +90,7 @@ <h4 id="sources">Configure the sources checked for changes</h4>
<h4 id="interval">Configure the polling time</h4>
-<ul>
-<li><code>pollInterval</code> selects the interval between polling for changes in milliseconds. The default value is <code>500 ms</code>. To change it to <code>1 s</code>,</li>
-</ul>
-
+<p><code>pollInterval</code> selects the interval between polling for changes in milliseconds. The default value is <code>500 ms</code>. To change it to <code>1 s</code>,</p>
<div class="highlight"><pre><code class="scala"><span class="n">pollInterval</span> <span class="o">:=</span> <span class="mi">1000</span> <span class="c1">// in ms</span>
</code></pre>
View
2 repository-rules.html
@@ -5,7 +5,7 @@
<head>
<title>Community Repository Policy - </title>
<link href='http://fonts.googleapis.com/css?family=Copse' rel='stylesheet' type='text/css'>
- <link href='/resources/site.css' rel='stylesheet' type='text/css'>
+ <link href='/resources/howto-site.css' rel='stylesheet' type='text/css'>
<link href='/resources/syntax.css' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
View
38 resources/base.css
@@ -1,38 +0,0 @@
-html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{
- margin:0;
- padding:0;
- border:0;
- font-size:100%;
- font:inherit;
- vertical-align:baseline
-}
-article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
- display:block
-}
-body {
- line-height:1
-}
-blockquote, q {
- quotes:none
-}
-blockquote:before,blockquote:after,q:before,q:after{
- content:'';content:none
-}
-table {
- border-collapse:collapse;border-spacing:0
-}
-.cf:before,.cf:after {
- content:"";
- display:table
-}
-.cf:after {
- clear:both
-}
-.cf {
- zoom:1
-}
-body, html {
- font-family: 'Lucida Grande', 'Helvetica', sans-serif;
- font-size:24px;
- height:100%;
-}
View
284 resources/howto-site.css
@@ -0,0 +1,284 @@
+html,body,div,span,applet,object,iframe,h1,h2,h3,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}
+
+ul {margin:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}
+code {padding:0;border:0;font-size:100%;vertical-align:baseline}
+
+article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
+blockquote,q{quotes:none}
+blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}
+table{border-collapse:collapse;border-spacing:0}
+.cf:before,.cf:after{content:"";display:table}
+.cf:after{clear:both}
+.cf{zoom:1}
+
+body, html {
+ font-family: sans-serif;
+ height:100%;
+}
+
+a:link, a:visited {
+ color:#2EABFF;/*15f*/
+ padding-left:4px;
+ text-decoration:none;
+ }
+
+a.scala:link, a.scala:visited {
+ color:#FF0000;
+}
+
+p {
+ margin-bottom:.5em;
+}
+
+h1 { font-size:130px; line-height:1em; }
+
+h2 { color:#bbb; font-size:2.5em; }
+
+h3 { font-size:1.75em; line-height:1.5em; }
+
+h4 { font:inherit; }
+h4 { font-size:1.5em;margin:1.3em 0em 0.7em 0em;padding:0;border:0;vertical-align:baseline }
+
+li { margin:0.5em 0; }
+
+#more {
+ background:#576369; position:fixed;
+ left:0; right:0; top:0; z-index:9999;
+ padding:0 0 .25em 0;
+ font-family: 'Lucida Grande', 'Helvetica', sans-serif; /* for consistency with rest of site */
+ font-size:24px;
+ text-shadow:0 1px #333;
+ -moz-box-shadow:0px 2px 2px #ccc;
+ -webkit-box-shadow:0px 2px 2px #ccc;
+ box-shadow:0px 2px 2px #ccc;
+ filter: progid:DXImageTransform.Microsoft.Shadow(strength=2, direction=180, color='#cccccc');
+ -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(strength=2, Direction=180, Color='#cccccc')";
+}
+
+#more-hand, #top { color:#eee; margin:.25em .5em 0 .5em; }
+
+a#get-launcher:link, a#get-launcher:visited {
+ border-left:0;
+ -moz-box-shadow:0px 0px 4px #333333;
+ -webkit-box-shadow:0px 0px 4px #333333;
+ box-shadow:0px 0px 4px #333333;
+}
+
+#head, #feature-list, .feature h3, .feature .line, #foot .content, .ita, #install-info-content, .contained {
+ width:940px; margin:0 auto;
+}
+ul#section-toc {
+ list-style:none;
+ margin-bottom:2em;
+}
+
+#intro { padding:1em 0 0 0; text-align:left; height:100%; }
+
+#head { border-bottom:1px solid #eee; }
+
+#name { width:50%; }
+
+#vc { }
+.page-description { margin-top:100px; width: 50%;}
+#start { font-size:50px; margin-top:100px; }
+#start em { font-weight:bold; font-size:55px; }
+#install-primary { margin-top:.75em;}
+#install-extra { font-size: 70%; color:#bbb; margin-top:.5em; }
+#install-info {
+ background:#576369
+}
+#install-info-content {
+ color:#eee;
+ display:none;
+ font-size:70%;
+ line-height:1.5em;
+ padding:1em 0;
+ text-shadow:0 1px #000;
+}
+
+#nix, #win {
+ display:none;
+ margin-top:1em;
+}
+
+#what { font-size:120%; line-height:1.4em; margin:0 0 1em 0; }
+
+#features ul { list-style:none; }
+#pagecontent { margin: 0 auto; width: 940px; }
+#subscribe, #wiki, #src, #list { margin:0 0 .5em 0;}
+
+#install {
+ float:right;
+ margin:.25em .5em 0 0;
+}
+
+.container-spacer { line-height: 40px; }
+.download.btn span {
+ color:#fff;
+ text-shadow:0 1px #bbb;
+}
+
+.download.btn {
+ background:#83F537;
+ filter: progid:DXImageTransform.Microsoft.gradient(
+ startColorstr='#12E3FF', endColorstr='#28D7FA');
+ background: -webkit-gradient(linear, left top, left bottom,
+ from(#12E3FF), to(#28D7FA));
+ background: -moz-linear-gradient(top, #12E3FF, #28D7FA);
+ border:1px solid #28D7FA;
+ color:#333;
+ text-shadow:0 1px #eee;
+}
+
+.download.btn:hover {
+ background:#83F537;
+ filter: progid:DXImageTransform.Microsoft.gradient(
+ startColorstr='#4CD6F1', endColorstr='#00D4FF');
+ background: -webkit-gradient(linear, left top, left bottom,
+ from(#4CD6F1), to(#00D4FF));
+ background: -moz-linear-gradient(top, #4CD6F1, #00D4FF);
+ border:1px solid #28D7FA;
+}
+
+#more-hand { float:left; clear:both; }
+#top { width:700px; margin:.25em auto; }
+
+#top h3 a, #top .brand {
+ float: left;
+ display: block;
+ padding: 8px 20px 12px;
+ color: white;
+ font-size: 19px;
+ font-weight: 200;
+ line-height: 1;
+}
+
+#top a {
+ color: #BFBFBF;
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
+}
+
+#top a:hover {
+ color:#fff;
+}
+
+#topbar div > ul a, .nav a {
+ display: block;
+ float: none;
+ padding: 6px 6px 7px;
+ line-height: 19px;
+ text-decoration: none;
+ margin-top:.2em;
+}
+
+#top div > ul > li, .nav > li {
+ display: block;
+ float: left;
+}
+
+#top div > ul, .nav {
+ padding: 0;
+ display: block;
+ float: left;
+ margin: 0 10px 0 0;
+ position: relative;
+ left: 0;
+ list-style: disc;
+}
+
+.nav li {
+ margin: 0;
+}
+
+#top li {
+ font-size: 14px;
+}
+
+#info { display:none; }
+#info a { padding-left: .25em; }
+
+#extra { height: 100%; }
+#examples {
+ font-size:.9em;
+ margin:.5em 0 0 0;
+ line-height:1.5em;
+}
+
+.ita {
+ text-align:right;
+}
+
+#foot {
+ background: #576369;
+ color:#eee;
+ font-size:smaller;
+ padding:1em 0;
+}
+
+.line {
+ margin:.5em 0 0 0;
+ padding:.25em 0;
+}
+
+.line p {
+ border-left:10px solid #eee;
+ padding-left:.5em;
+}
+
+.feature {
+ padding:1.5em .25em;
+ margin:1em auto;
+}
+
+.feature .more {
+ padding:.25em .25em 0 .25em;
+}
+
+#info-left { margin-right:1em; }
+
+#info-left, #info-right { float: left; }
+
+input[type="text"] {
+ font-family: 'Copse', serif;
+ font-size:22px; padding:.25em;
+ color:#bbb;
+ margin-left:5px;
+}
+
+.left {
+ float:left;
+}
+
+.btn {
+ border:1px solid #bbb;
+ background:#eee;
+ padding:.25em .5em;
+ font-size:18px;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+ background: #eee;
+ text-shadow:0 1px #fff;
+ filter: progid:DXImageTransform.Microsoft.gradient(
+ startColorstr='#eeeeee', endColorstr='#D1D1D1');
+ background: -webkit-gradient(linear, left top,
+ left bottom, from(#eeeeee),
+ to(#D1D1D1));
+ background: -moz-linear-gradient(top, #eeeeee, #D1D1D1);
+ margin:5px 0;
+}
+
+pre {
+ white-space:pre-wrap;
+ font-size: 16px;
+ font-weight: normal;
+ margin:.7em 0;
+ padding: 6px 10px;
+ border:1px solid #bbb;
+ -webkit-border-radius: 4x;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+ color:rgb(48,48,48);
+ background-color:rgb(248, 248, 248);
+
+}
View
177 resources/syntax.css
@@ -1,126 +1,63 @@
+/* manni style for pygmentize with .go darkened */
+
.hll { background-color: #ffffcc }
-.scala { /* background: #f8f8f8; */ }
-.c { color: #408080; font-style: italic } /* Comment */
-.err { border: 1px solid #FF0000 } /* Error */
-.k { color: #008000; font-weight: bold } /* Keyword */
-.o { color: #666666 } /* Operator */
-.cm { color: #408080; font-style: italic } /* Comment.Multiline */
-.cp { color: #BC7A00 } /* Comment.Preproc */
-.c1 { color: #408080; font-style: italic } /* Comment.Single */
-.cs { color: #408080; font-style: italic } /* Comment.Special */
-.gd { color: #A00000 } /* Generic.Deleted */
+.c { color: #0099FF; font-style: italic } /* Comment */
+.err { color: #AA0000; background-color: #FFAAAA } /* Error */
+.k { color: #006699; font-weight: bold } /* Keyword */