Browse files

updated site

  • Loading branch information...
1 parent f6ec3c9 commit 73024607b4778750b17f84c62d23c81ee3861983 @jsuereth jsuereth committed Mar 15, 2012
Showing with 151 additions and 791 deletions.
  1. +21 −3 download.html
  2. +95 −529 howto.html
  3. +6 −39 howto/generatefiles.html
  4. +5 −29 howto/interactive.html
  5. +2 −41 howto/logging.html
  6. +5 −42 howto/metadata.html
  7. +5 −33 howto/package.html
  8. +7 −47 howto/scala.html
  9. +5 −28 howto/triggered.html
View
24 download.html
@@ -123,21 +123,39 @@
<p><a href="http://typesafe.artifactoryonline.com/typesafe/windows-releases/org/scalasbt/sbt/0.11.2/sbt.msi">Click here</a> for the latest windows MSI.</p>
-<p><em>Note: This MSI is still in BETA. While it has been tested it may fail in obscure situations, please make sure to report any issues you may find <a href="https://github.com/sbt/sbt-launcher-package/issues">here</a>.</em>"</p>
+<p><em>Note: please make sure to report any issues you may find <a href="https://github.com/sbt/sbt-launcher-package/issues">here</a>.</em></p>
</li>
<li id="rpm" class="feature contained"><h4>Yum Repositories</h4>
-<p>coming soon...</p>
+<p>The sbt package is available from the <a href="http://rpm.typesafe.com">Typesafe Yum Repository</a>.
+Please install <a href="http://rpm.typesafe.com/typesafe-repo-2.0.0-1.noarch.rpm">this rpm</a> to add the typesafe yum repository to your list of approved sources.
+Then run:</p>
+
+<pre><code>yum install sbt
+</code></pre>
+
+<p> to grab the latest release of sbt.</p>
+
+<p><em>Note: please make sure to report any issues you may find <a href="https://github.com/sbt/sbt-launcher-package/issues">here</a>.</em>"</p>
</li>
<li id="deb" class="feature contained"><h4>APT Repositories</h4>
-<p>Coming Soon...</p>
+<p>The sbt package is available from the <a href="http://apt.typesafe.com">Typesafe Debian Repository</a>.
+Please install <a href="http://apt.typesafe.com/repo-deb-build-0002.deb">this deb</a> to enable the typesafe repository.
+Then run:</p>
+
+<pre><code>apt-get install sbt
+</code></pre>
+
+<p>to grab the latest release of sbt.</p>
+
+<p> <em>Note: please make sure to report any issues you may find <a href="https://github.com/sbt/sbt-launcher-package/issues">here</a>.</em>"</p>
</li>
View
624 howto.html
@@ -39,658 +39,224 @@
<div id="pagecontent" class="cf">
-<h2><a href="/howto/triggered.html">Triggered execution</a></h2>
-
-
-
-
-<ul>
-<li><a href="/howto/triggered.html#basic">How to run a command when sources change</a></li>
-</ul>
-
-
-
-
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; ~ test </span>
-</code></pre>
-</div>
-
-
-
-
-<ul>
-<li><a href="/howto/triggered.html#multi">How to run multiple commands when sources change</a></li>
-</ul>
-
-
-
-
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; ~ ;a ;b </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>
-
-
-
-
-<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/triggered.html#interval">How to set the time interval between checks for changes to sources</a></li>
-</ul>
-
-
-
-
-<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>
-
-
-
-
-<h2><a href="/howto/generatefiles.html">Generating files</a></h2>
-
-
-
-
-<ul>
-<li><a href="/howto/generatefiles.html#sources">How to generate sources</a></li>
-</ul>
-
-
-
-
-<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/generatefiles.html#resources">How to generate resources</a></li>
-</ul>
-
-
-
-
-<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>
-
-
-
-
-<h2><a href="/howto/metadata.html">Project metadata</a></h2>
-
-
-
-
-<ul>
-<li><a href="/howto/metadata.html#name">How to set the project name</a></li>
-</ul>
-
-
-
-
-<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/metadata.html#version">How to set the project version</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>
-</code></pre>
-</div>
-
-
-
-
-<ul>
-<li><a href="/howto/metadata.html#organization">How to set the project organization</a></li>
-</ul>
-
-
-
-
-<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/metadata.html#other">How to set the project homepage and other metadata used in a published pom.xml</a></li>
-</ul>
-
-
-
-
-<h2><a href="/howto/logging.html">Configure and use logging</a></h2>
-
-
-
-
-<ul>
-<li><a href="/howto/logging.html#last">How to view the logging output of the previously executed command</a></li>
-</ul>
-
-
-
-
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; last </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>
-
-
-
-
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; last compile </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>
-
-
-
-
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; last-grep *Test.jar </span>
-</code></pre>
-</div>
-
-
-
-
-<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; last-grep *Test.jar run </span>
-</code></pre>
-</div>
-
-
-
-
-<ul>
-<li><a href="/howto/logging.html#level">How to change the logging level globally</a></li>
-</ul>
-
-
-
-
-<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/logging.html#tasklevel">How to change the logging level for a specific task, configuration, or project</a></li>
-</ul>
-
-
-
-
-<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/logging.html#trace">How to configure printing of stack traces globally</a></li>
-</ul>
-
-
-
-
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; set every traceLevel := 5` </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>
-
-
-
-
-<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/logging.html#nobuffer">How to print the output of tests immediately instead of buffering</a></li>
-</ul>
-
-
-
-
-<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><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>
-
-
-
-
<h2><a href="/howto/interactive.html">Interactive mode</a></h2>
<ul>
-<li><a href="/howto/interactive.html#basic_completion">How to use tab completion</a></li>
-</ul>
-
+<li><p><a href="/howto/interactive.html#basic_completion">How to use tab completion</a></p>
-
-
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; test-only &lt;TAB&gt; </span>
-</code></pre>
-</div>
-
-
-
-
-<ul>
+<p> Liquid error: undefined method `join' for " > test-only <TAB> ":String</p></li>
<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>
+<li><p><a href="/howto/interactive.html#show_keybindings">How to view basic JLine keybindings</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>
-</code></pre>
-</div>
-
-
-
-
-<ul>
+<p> Liquid error: undefined method `join' for " > console-quick\nscala> :keybindings\n ":String</p></li>
<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>
-
-
+<li><p><a href="/howto/interactive.html#prompt">How to configure the prompt string</a></p>
+<p> Liquid error: undefined method `join' for #&lt;String:0x7f62ab6ee9d8></p></li>
+<li><p><a href="/howto/interactive.html#history">How to use history</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>
+<p> Liquid error: undefined method `join' for " > ! ":String</p></li>
+<li><p><a href="/howto/interactive.html#history_file">How to change the location of the interactive history file</a></p>
+<p> Liquid error: undefined method `join' for " historyPath &lt;&lt;= baseDirectory(t => Some(t / \".history\")) ":String</p></li>
+<li><p><a href="/howto/interactive.html#share_history">How to share interactive history across projects</a></p>
+<p> Liquid error: undefined method `join' for #&lt;String:0x7f62ab6e0c98></p></li>
+<li><p><a href="/howto/interactive.html#disable_history">How to disable interactive history</a></p>
+<p> Liquid error: undefined method `join' for " historyPath := None ":String</p></li>
+<li><p><a href="/howto/interactive.html#pre_commands">How to start interactive mode after executing some commands first</a></p>
-<ul>
-<li><a href="/howto/interactive.html#history">How to use history</a></li>
+<p> Liquid error: undefined method `join' for " $ sbt clean compile shell ":String</p></li>
</ul>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; ! </span>
-</code></pre>
-</div>
+<h2><a href="/howto/generatefiles.html">Generating files</a></h2>
<ul>
-<li><a href="/howto/interactive.html#history_file">How to change the location of the interactive history file</a></li>
-</ul>
-
-
+<li><p><a href="/howto/generatefiles.html#sources">How to generate sources</a></p>
+<p> Liquid error: undefined method `join' for " sourceGenerators in Compile &lt;+= <your Task[Seq[File]] here> ":String</p></li>
+<li><p><a href="/howto/generatefiles.html#resources">How to generate resources</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>
-</code></pre>
-</div>
-
-
-
-
-<ul>
-<li><a href="/howto/interactive.html#share_history">How to share interactive history across projects</a></li>
+<p> Liquid error: undefined method `join' for " resourceGenerators in Compile &lt;+= <your Task[Seq[File]] here> ":String</p></li>
</ul>
-<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>
+<h2><a href="/howto/triggered.html">Triggered execution</a></h2>
<ul>
-<li><a href="/howto/interactive.html#disable_history">How to disable interactive history</a></li>
-</ul>
-
+<li><p><a href="/howto/triggered.html#basic">How to run a command when sources change</a></p>
+<p> Liquid error: undefined method `join' for " > ~ test ":String</p></li>
+<li><p><a href="/howto/triggered.html#multi">How to run multiple commands when sources change</a></p>
+<p> Liquid error: undefined method `join' for " > ~ ;a ;b ":String</p></li>
+<li><p><a href="/howto/triggered.html#sources">How to configure the sources that are checked for changes</a></p>
-<div class="highlight"><pre><code class="scala"> <span class="n">historyPath</span> <span class="o">:=</span> <span class="nc">None</span>
-</code></pre>
-</div>
-
-
+<p> Liquid error: undefined method `join' for " watchSources &lt;+= baseDirectory { _ / \"examples.txt\" } ":String</p></li>
+<li><p><a href="/howto/triggered.html#interval">How to set the time interval between checks for changes to sources</a></p>
-
-<ul>
-<li><a href="/howto/interactive.html#pre_commands">How to start interactive mode after executing some commands first</a></li>
+<p> Liquid error: undefined method `join' for " pollInterval := 1000 // in ms ":String</p></li>
</ul>
-<div class="highlight"><pre><code class="console"><span class="go"> $ sbt clean compile shell </span>
-</code></pre>
-</div>
-
-
-
-
-<h2><a href="/howto/runningcommands.html">Running commands</a></h2>
-
-
-
-
-<ul>
-<li><a href="/howto/runningcommands.html#batch">How to pass arguments to a command or task in batch mode</a></li>
-</ul>
-
-
-
-
-<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>
+<h2><a href="/howto/metadata.html">Project metadata</a></h2>
<ul>
-<li><a href="/howto/runningcommands.html#multi">How to provide multiple commands to run consecutively</a></li>
-</ul>
-
-
-
-
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; ;clean ;compile </span>
-</code></pre>
-</div>
-
+<li><p><a href="/howto/metadata.html#name">How to set the project name</a></p>
+<p> Liquid error: undefined method `join' for " name := \"demo\" ":String</p></li>
+<li><p><a href="/howto/metadata.html#version">How to set the project version</a></p>
+<p> Liquid error: undefined method `join' for " version := \"1.0\" ":String</p></li>
+<li><p><a href="/howto/metadata.html#organization">How to set the project organization</a></p>
-<ul>
-<li><a href="/howto/runningcommands.html#read">How to read commands from a file</a></li>
+<p> Liquid error: undefined method `join' for " organization := \"org.example\" ":String</p></li>
+<li><p><a href="/howto/metadata.html#other">How to set the project homepage and other metadata used in a published pom.xml</a></p></li>
</ul>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; &lt; /path/to/file </span>
-</code></pre>
-</div>
+<h2><a href="/howto/runningcommands.html">Running commands</a></h2>
<ul>
-<li><a href="/howto/runningcommands.html#alias">How to define an alias for a command or task</a></li>
-</ul>
+<li><p><a href="/howto/runningcommands.html#batch">How to pass arguments to a command or task in batch mode</a></p>
+<p> Liquid error: undefined method `join' for #&lt;String:0x7f62ab6b36d0></p></li>
+<li><p><a href="/howto/runningcommands.html#multi">How to provide multiple commands to run consecutively</a></p>
+<p> Liquid error: undefined method `join' for " > ;clean ;compile ":String</p></li>
+<li><p><a href="/howto/runningcommands.html#read">How to read commands from a file</a></p>
+<p> Liquid error: undefined method `join' for " > &lt; /path/to/file ":String</p></li>
+<li><p><a href="/howto/runningcommands.html#alias">How to define an alias for a command or task</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; alias h=help </span>
-</code></pre>
-</div>
-
-
-
+<p> Liquid error: undefined method `join' for " > alias h=help ":String</p></li>
+<li><p><a href="/howto/runningcommands.html#eval">How to quickly evaluate a Scala expression</a></p>
-<ul>
-<li><a href="/howto/runningcommands.html#eval">How to quickly evaluate a Scala expression</a></li>
+<p> Liquid error: undefined method `join' for " > eval 2+2 ":String</p></li>
</ul>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; eval 2+2 </span>
-</code></pre>
-</div>
-
-
-
-
<h2><a href="/howto/package.html">Configure packaging</a></h2>
<ul>
-<li><a href="/howto/package.html#export">How to use the packaged jar on classpaths instead of class directory</a></li>
-</ul>
-
-
-
-
-<div class="highlight"><pre><code class="scala"> <span class="n">exportJars</span> <span class="o">:=</span> <span class="kc">true</span>
-</code></pre>
-</div>
-
-
-
-
-<ul>
-<li><a href="/howto/package.html#manifest">How to add manifest attributes</a></li>
-</ul>
-
+<li><p><a href="/howto/package.html#export">How to use the packaged jar on classpaths instead of class directory</a></p>
+<p> Liquid error: undefined method `join' for " exportJars := true ":String</p></li>
+<li><p><a href="/howto/package.html#manifest">How to add manifest attributes</a></p>
-
-<div class="highlight"><pre><code class="scala"> <span class="n">packageOptions</span> <span class="n">in</span> <span class="o">(</span><span class="nc">Compile</span><span class="o">,</span> <span class="n">packageBin</span><span class="o">)</span> <span class="o">+=</span> <span class="nc">Package</span><span class="o">.</span><span class="nc">ManifestAttributes</span><span class="o">(</span> <span class="nc">Attributes</span><span class="o">.</span><span class="nc">Name</span><span class="o">.</span><span class="nc">SEALED</span> <span class="o">-&gt;</span> <span class="s">&quot;true&quot;</span> <span class="o">)</span>
-</code></pre>
-</div>
-
-
-
-
-<ul>
+<p> Liquid error: undefined method `join' for #&lt;String:0x7f62ab6a7fd8></p></li>
<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>
-
-
-
-
-<div class="highlight"><pre><code class="scala"> <span class="n">mappings</span> <span class="n">in</span> <span class="o">(</span><span class="nc">Compile</span><span class="o">,</span> <span class="n">packageBin</span><span class="o">)</span> <span class="o">&lt;+=</span> <span class="n">baseDirectory</span> <span class="o">{</span> <span class="n">dir</span> <span class="k">=&gt;</span> <span class="o">(</span> <span class="n">dir</span> <span class="o">/</span> <span class="s">&quot;example.txt&quot;</span><span class="o">)</span> <span class="o">-&gt;</span> <span class="s">&quot;out/example.txt&quot;</span> <span class="o">}</span>
-</code></pre>
-</div>
-
-
-
-
-<h2><a href="/howto/scala.html">Configure and use Scala</a></h2>
-
-
-
-
-<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>
-</code></pre>
-</div>
-
-
-
-
-<ul>
-<li><a href="/howto/scala.html#noauto">How to disable the automatic dependency on the Scala library</a></li>
-</ul>
-
-
-
-
-<div class="highlight"><pre><code class="scala"> <span class="n">autoScalaLibrary</span> <span class="o">:=</span> <span class="kc">false</span>
-</code></pre>
-</div>
-
+<li><p><a href="/howto/package.html#contents">How to modify the contents of the package</a></p>
-
-
-<ul>
-<li><a href="/howto/scala.html#temporary">How to temporarily switch to a different Scala version</a></li>
+<p> Liquid error: undefined method `join' for #&lt;String:0x7f62ab6a4838></p></li>
</ul>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; ++ 2.8.2 </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>
-
-
-
-
-<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>
+<h2><a href="/howto/logging.html">Configure and use logging</a></h2>
<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>
+<li><p><a href="/howto/logging.html#last">How to view the logging output of the previously executed command</a></p>
+<p> Liquid error: undefined method `join' for " > last ":String</p></li>
+<li><p><a href="/howto/logging.html#tasklast">How to view the previous logging output of a specific task</a></p>
+<p> Liquid error: undefined method `join' for " > last compile ":String</p></li>
+<li><p><a href="/howto/logging.html#lastgrep">How to search the logging output of the previously executed command</a></p>
+<p> Liquid error: undefined method `join' for " > last-grep *Test.jar ":String</p></li>
+<li><p><a href="/howto/logging.html#tasklastgrep">How to search the previous logging output of a specific task</a></p>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; console-quick </span>
-</code></pre>
-</div>
+<p> Liquid error: undefined method `join' for " > last-grep *Test.jar run ":String</p></li>
+<li><p><a href="/howto/logging.html#level">How to change the logging level globally</a></p>
+<p> Liquid error: undefined method `join' for " > set every logLevel := Level.Debug ":String</p></li>
+<li><p><a href="/howto/logging.html#tasklevel">How to change the logging level for a specific task, configuration, or project</a></p>
+<p> Liquid error: undefined method `join' for " logLevel in compile := Level.Debug ":String</p></li>
+<li><p><a href="/howto/logging.html#trace">How to configure printing of stack traces globally</a></p>
+<p> Liquid error: undefined method <code>join' for " &gt; set every traceLevel := 5</code> ":String</p></li>
+<li><p><a href="/howto/logging.html#tasktrace">How to configure printing of stack traces for a specific task, configuration, or project</a></p>
-<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>
-
-
-
-
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; console </span>
-</code></pre>
-</div>
+<p> Liquid error: undefined method `join' for " traceLevel := 5 ":String</p></li>
+<li><p><a href="/howto/logging.html#nobuffer">How to print the output of tests immediately instead of buffering</a></p>
-
-
-
-<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>
+<p> Liquid error: undefined method `join' for " logBuffered := false ":String</p></li>
+<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>
-<div class="highlight"><pre><code class="console"><span class="go"> &gt; console-project </span>
-</code></pre>
-</div>
+<h2><a href="/howto/scala.html">Configure and use Scala</a></h2>
<ul>
-<li><a href="/howto/scala.html#initial">How to define the initial commands evaluated when entering the Scala REPL</a></li>
-</ul>
+<li><p><a href="/howto/scala.html#version">How to set the Scala version used for building the project</a></p>
+<p> Liquid error: undefined method `join' for " version := \"1.0\" ":String</p></li>
+<li><p><a href="/howto/scala.html#noauto">How to disable the automatic dependency on the Scala library</a></p>
+<p> Liquid error: undefined method `join' for " autoScalaLibrary := false ":String</p></li>
+<li><p><a href="/howto/scala.html#temporary">How to temporarily switch to a different Scala version</a></p>
+<p> Liquid error: undefined method `join' for " > ++ 2.8.2 ":String</p></li>
+<li><p><a href="/howto/scala.html#local">How to use a local Scala installation for building a project</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>
-</code></pre>
-</div>
+<p> Liquid error: undefined method `join' for " scalaHome := Some(file(\"/path/to/scala/home/\")) ":String</p></li>
+<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>
+<p> Liquid error: undefined method `join' for " > console-quick ":String</p></li>
+<li><p><a href="/howto/scala.html#console">How to enter the Scala REPL with a project's dependencies and compiled code on the classpath</a></p>
+<p> Liquid error: undefined method `join' for " > console ":String</p></li>
+<li><p><a href="/howto/scala.html#console-project">How to enter the Scala REPL with plugins and the build definition on the classpath</a></p>
+<p> Liquid error: undefined method `join' for " > console-project ":String</p></li>
+<li><p><a href="/howto/scala.html#initial">How to define the initial commands evaluated when entering the Scala REPL</a></p>
-<ul>
-<li><a href="/howto/scala.html#embed">How to use the Scala REPL from project code</a></li>
+<p> Liquid error: undefined method `join' for " initialCommands in console := \"\"\"println(\"Hi!\")\"\"\" ":String</p></li>
+<li><p><a href="/howto/scala.html#embed">How to use the Scala REPL from project code</a></p></li>
</ul>
View
45 howto/generatefiles.html
@@ -56,30 +56,15 @@ <h4 id="sources">Generate sources</h4>
<p>A source generation task should generate sources in a subdirectory of <code>sourceManaged</code> and return a sequence of files generated. The key to add the task to is called <code>sourceGenerators</code>. It should be scoped according to whether the generated files are main (<code>Compile</code>) or test (<code>Test</code>) sources. This basic structure looks like:</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>
-
+<p>Liquid error: undefined method `join' for "\nsourceGenerators in Compile &lt;+= <your Task[Seq[File]] here>\n":String</p>
<p>For example, assuming a method <code>def makeSomeSources(base: File): Seq[File]</code>,</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="n">sourceManaged</span> <span class="n">in</span> <span class="nc">Compile</span> <span class="n">map</span> <span class="o">{</span> <span class="n">outDir</span><span class="k">:</span> <span class="kt">File</span> <span class="o">=&gt;</span>
- <span class="n">makeSomeSources</span><span class="o">(</span><span class="n">outDir</span> <span class="o">/</span> <span class="s">&quot;demo&quot;</span><span class="o">)</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab7cae60></p>
<p>As a specific example, the following generates a hello world source file:</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="n">sourceManaged</span> <span class="n">in</span> <span class="nc">Compile</span> <span class="n">map</span> <span class="o">{</span> <span class="n">dir</span> <span class="k">=&gt;</span>
- <span class="k">val</span> <span class="n">file</span> <span class="k">=</span> <span class="n">dir</span> <span class="o">/</span> <span class="s">&quot;demo&quot;</span> <span class="o">/</span> <span class="s">&quot;Test.scala&quot;</span>
- <span class="nc">IO</span><span class="o">.</span><span class="n">write</span><span class="o">(</span><span class="n">file</span><span class="o">,</span> <span class="s">&quot;&quot;&quot;object Test extends App { println(&quot;Hi&quot;) }&quot;&quot;&quot;</span><span class="o">)</span>
- <span class="nc">Seq</span><span class="o">(</span><span class="n">file</span><span class="o">)</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab7ca9d8></p>
<p>Executing 'run' will print "Hi". Change <code>Compile</code> to <code>Test</code> to make it a test source. For efficiency, you would only want to generate sources when necessary and not every run.</p>
@@ -90,33 +75,15 @@ <h4 id="resources">Generate resources</h4>
<p>A resource generation task should generate resources in a subdirectory of <code>resourceManaged</code> and return a sequence of files generated. The key to add the task to is called <code>resourceGenerators</code>. It should be scoped according to whether the generated files are main (<code>Compile</code>) or test (<code>Test</code>) resources. This basic structure looks like:</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>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab7ca550></p>
<p>For example, assuming a method <code>def makeSomeResources(base: File): Seq[File]</code>,</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="n">resourceManaged</span> <span class="n">in</span> <span class="nc">Compile</span> <span class="n">map</span> <span class="o">{</span> <span class="n">outDir</span><span class="k">:</span> <span class="kt">File</span> <span class="o">=&gt;</span>
- <span class="n">makeSomeResources</span><span class="o">(</span><span class="n">outDir</span> <span class="o">/</span> <span class="s">&quot;demo&quot;</span><span class="o">)</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab7ca0c8></p>
<p>As a specific example, the following generates a properties file containing the application name and version:</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">(</span><span class="n">resourceManaged</span> <span class="n">in</span> <span class="nc">Compile</span><span class="o">,</span> <span class="n">name</span><span class="o">,</span> <span class="n">version</span><span class="o">)</span> <span class="n">map</span> <span class="o">{</span> <span class="o">(</span><span class="n">dir</span><span class="o">,</span> <span class="n">n</span><span class="o">,</span> <span class="n">v</span><span class="o">)</span> <span class="k">=&gt;</span>
- <span class="k">val</span> <span class="n">file</span> <span class="k">=</span> <span class="n">dir</span> <span class="o">/</span> <span class="s">&quot;demo&quot;</span> <span class="o">/</span> <span class="s">&quot;myapp.properties&quot;</span>
- <span class="k">val</span> <span class="n">contents</span> <span class="k">=</span> <span class="s">&quot;name=%s\nversion=%s&quot;</span><span class="o">.</span><span class="n">format</span><span class="o">(</span><span class="n">n</span><span class="o">,</span><span class="n">v</span><span class="o">)</span>
- <span class="nc">IO</span><span class="o">.</span><span class="n">write</span><span class="o">(</span><span class="n">file</span><span class="o">,</span> <span class="n">contents</span><span class="o">)</span>
- <span class="nc">Seq</span><span class="o">(</span><span class="n">file</span><span class="o">)</span>
- <span class="o">}</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab7c9c40></p>
<p>Change <code>Compile</code> to <code>Test</code> to make it a test resource. Normally, you would only want to generate resources when necessary and not every run.</p>
View
34 howto/interactive.html
@@ -140,18 +140,8 @@ <h4 id="prompt">Configure the prompt string</h4>
This can be changed through the <code>shellPrompt</code> setting, which has type <code>State =&gt; String</code>.
<a href="https://github.com/harrah/xsbt/wiki/Build-State">State</a> contains all state for sbt and thus provides access to all build information for use in the prompt string.</p>
-<p>Examples:</p>
-
-<div class="highlight"><pre><code class="scala"><span class="c1">// set the prompt (for this build) to include the project id.</span>
-<span class="n">shellPrompt</span> <span class="n">in</span> <span class="nc">ThisBuild</span> <span class="o">:=</span> <span class="o">{</span> <span class="n">state</span> <span class="k">=&gt;</span> <span class="nc">Project</span><span class="o">.</span><span class="n">extract</span><span class="o">(</span><span class="n">state</span><span class="o">).</span><span class="n">currentRef</span><span class="o">.</span><span class="n">project</span> <span class="o">+</span> <span class="s">&quot;&gt; &quot;</span> <span class="o">}</span>
-
-<span class="c1">// set the prompt (for the current project) to include the username</span>
-<span class="n">shellPrompt</span> <span class="o">:=</span> <span class="o">{</span> <span class="n">state</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>
-
-
-
+<p>Examples:
+Liquid error: undefined method `join' for #&lt;String:0x7f62ab7d6e90></p>
<h4 id="history">Using history</h4>
@@ -180,10 +170,7 @@ <h4 id="history_file">Changing the history file location</h4>
The location can be changed with the <code>historyPath</code> setting, which has type <code>Option[File]</code>.
For example, history can be stored in the root directory for the project instead of the output directory:</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>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for "\nhistoryPath &lt;&lt;= baseDirectory(t => Some(t / \".history\"))\n":String</p>
<p>The history path needs to be set for each project, since sbt will use the value of <code>historyPath</code> for the current project (as selected by the <code>project</code> command).</p>
@@ -194,13 +181,7 @@ <h4 id="share_history">Use the same history for all projects</h4>
This setting can be used to share the interactive history among all projects in a build instead of using a different history for each project.
The way this is done is to set <code>historyPath</code> to be the same file, such as a file in the root project's <code>target/</code> directory:</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>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab7d6558></p>
<p>The <code>in LocalRootProject</code> part means to get the output directory for the root project for the build.</p>
@@ -209,12 +190,7 @@ <h4 id="disable_history">Disable interactive history</h4>
<p>If, for whatever reason, you want to disable history, set <code>historyPath</code> to <code>None</code> in each project it should be disabled in:</p>
-<div class="highlight"><pre><code class="scala"><span class="n">historyPath</span> <span class="o">:=</span> <span class="nc">None</span>
-</code></pre>
-</div>
-
-
-
+<p>Liquid error: undefined method `join' for "\nhistoryPath := None\n":String</p>
<h4 id="pre_commands">Run commands before entering interactive mode</h4>
View
43 howto/logging.html
@@ -75,50 +75,11 @@ <h4 id="last">View logging output of the previously executed command</h4>
<p>For example, the output of <code>run</code> when the sources are uptodate is:</p>
-<div class="highlight"><pre><code class="console"><span class="gp">&gt;</span> run
-<span class="go">[info] Running A </span>
-<span class="go">Hi!</span>
-<span class="go">[success] Total time: 0 s, completed Feb 25, 2012 1:00:00 PM</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab776158></p>
<p>The details of this execution can be recalled by running <code>last</code>:</p>
-<div class="highlight"><pre><code class="console"><span class="gp">&gt;</span> last
-<span class="go">[debug] Running task... Cancelable: false, max worker threads: 4, check cycles: false</span>
-<span class="go">[debug] </span>
-<span class="go">[debug] Initial source changes: </span>
-<span class="go">[debug] removed:Set()</span>
-<span class="go">[debug] added: Set()</span>
-<span class="go">[debug] modified: Set()</span>
-<span class="go">[debug] Removed products: Set()</span>
-<span class="go">[debug] Modified external sources: Set()</span>
-<span class="go">[debug] Modified binary dependencies: Set()</span>
-<span class="go">[debug] Initial directly invalidated sources: Set()</span>
-<span class="go">[debug] </span>
-<span class="go">[debug] Sources indirectly invalidated by:</span>
-<span class="go">[debug] product: Set()</span>
-<span class="go">[debug] binary dep: Set()</span>
-<span class="go">[debug] external source: Set()</span>
-<span class="go">[debug] Initially invalidated: Set()</span>
-<span class="go">[debug] Copy resource mappings: </span>
-<span class="go">[debug] </span>
-<span class="go">[info] Running A </span>
-<span class="go">[debug] Starting sandboxed run...</span>
-<span class="go">[debug] Waiting for threads to exit or System.exit to be called.</span>
-<span class="go">[debug] Classpath:</span>
-<span class="go">[debug] /tmp/e/target/scala-2.9.1/classes</span>
-<span class="go">[debug] /tmp/e/.sbt/0.12.0/boot/scala-2.9.1/lib/scala-library.jar</span>
-<span class="go">[debug] Waiting for thread run-main to exit</span>
-<span class="go">[debug] Thread run-main exited.</span>
-<span class="go">[debug] Interrupting remaining threads (should be all daemons).</span>
-<span class="go">[debug] Sandboxed run complete..</span>
-<span class="go">[debug] Exited with code 0</span>
-<span class="go">[success] Total time: 0 s, completed Jan 1, 2012 1:00:00 PM</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab775870></p>
<p>Configuration of the logging level for the console and for the backing file are described in following sections.</p>
View
47 howto/metadata.html
@@ -58,67 +58,30 @@
<h4 id="name">Set the project name</h4>
-
-
-<div class="highlight"><pre><code class="scala"><span class="n">name</span> <span class="o">:=</span> <span class="s">&quot;Your project name&quot;</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for "\nname := \"Your project name\"\n":String</p>
<p>For published projects, this name is normalized to be suitable for use as an artifact name and dependency ID. This normalized name is stored in <code>normalizedName</code>.</p>
<h4 id="version">Set the project version</h4>
-
-
-<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>
-
-
-
+<p>Liquid error: undefined method `join' for "\nversion := \"1.0\"\n":String</p>
<h4 id="organization">Set the project organization</h4>
-
-
-<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>
-
+<p>Liquid error: undefined method `join' for "\norganization := \"org.example\"\n":String</p>
<p>By convention, this is a reverse domain name that you own, typically one specific to your project. It is used as a namespace for projects.</p>
<p>A full/formal name can be defined in the <code>organizationName</code> setting. This is used in the generated pom.xml. If the organization has a web site, it may be set in the <code>organizationHomepage</code> setting. For example:</p>
-<div class="highlight"><pre><code class="scala"><span class="n">organization</span> <span class="o">:=</span> <span class="s">&quot;Example, Inc.&quot;</span>
-
-<span class="n">organizationHomepage</span> <span class="o">:=</span> <span class="s">&quot;org.example&quot;</span>
-</code></pre>
-</div>
-
-
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab799270></p>
<h4 id="other">Set the project's homepage and other metadata</h4>
-
-
-<div class="highlight"><pre><code class="scala"><span class="n">homepage</span> <span class="o">:=</span> <span class="nc">Some</span><span class="o">(</span><span class="n">url</span><span class="o">(</span><span class="s">&quot;http://scala-sbt.org&quot;</span><span class="o">))</span>
-
-<span class="n">startYear</span> <span class="o">:=</span> <span class="nc">Some</span><span class="o">(</span><span class="mi">2008</span><span class="o">)</span>
-
-<span class="n">description</span> <span class="o">:=</span> <span class="s">&quot;A build tool for Scala.&quot;</span>
-
-<span class="n">licenses</span> <span class="o">+=</span> <span class="s">&quot;GPLv2&quot;</span> <span class="o">-&gt;</span> <span class="s">&quot;http://www.gnu.org/licenses/gpl-2.0.html&quot;</span>
-</code></pre>
-</div>
-
-
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab7980f0></p>
</div>
</div>
View
38 howto/package.html
@@ -58,10 +58,7 @@ <h4 id="export">Use the packaged jar on classpaths instead of class directory</h
<p>By default, a project exports a directory containing its resources and compiled class files. Set <code>exportJars</code> to true to export the packaged jar instead. For example,</p>
-<div class="highlight"><pre><code class="scala"><span class="n">exportJars</span> <span class="o">:=</span> <span class="kc">true</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for "\nexportJars := true\n":String</p>
<p>The jar will be used by <code>run</code>, <code>test</code>, <code>console</code>, and other tasks that use the full classpath.</p>
@@ -74,35 +71,15 @@ <h4 id="manifest">Add attributes to the manifest</h4>
<p>For example,</p>
-<div class="highlight"><pre><code class="scala"><span class="n">packageOptions</span> <span class="n">in</span> <span class="o">(</span><span class="nc">Compile</span><span class="o">,</span> <span class="n">packageBin</span><span class="o">)</span> <span class="o">+=</span>
- <span class="nc">Package</span><span class="o">.</span><span class="nc">ManifestAttributes</span><span class="o">(</span> <span class="n">java</span><span class="o">.</span><span class="n">util</span><span class="o">.</span><span class="n">jar</span><span class="o">.</span><span class="nc">Attributes</span><span class="o">.</span><span class="nc">Name</span><span class="o">.</span><span class="nc">SEALED</span> <span class="o">-&gt;</span> <span class="s">&quot;true&quot;</span> <span class="o">)</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab786530></p>
<p>Other attributes may be added with <code>Package.JarManifest</code>.</p>
-<div class="highlight"><pre><code class="scala"><span class="n">packageOptions</span> <span class="n">in</span> <span class="o">(</span><span class="nc">Compile</span><span class="o">,</span> <span class="n">packageBin</span><span class="o">)</span> <span class="o">+=</span> <span class="o">{</span>
- <span class="k">import</span> <span class="nn">java.util.jar.</span><span class="o">{</span><span class="nc">Attributes</span><span class="o">,</span> <span class="nc">Manifest</span><span class="o">}</span>
- <span class="k">val</span> <span class="n">manifest</span> <span class="k">=</span> <span class="k">new</span> <span class="nc">Manifest</span>
- <span class="n">manifest</span><span class="o">.</span><span class="n">getAttributes</span><span class="o">(</span><span class="s">&quot;foo/bar/&quot;</span><span class="o">).</span><span class="n">put</span><span class="o">(</span><span class="nc">Attributes</span><span class="o">.</span><span class="nc">Name</span><span class="o">.</span><span class="nc">SEALED</span><span class="o">,</span> <span class="s">&quot;false&quot;</span><span class="o">)</span>
- <span class="nc">Package</span><span class="o">.</span><span class="nc">JarManifest</span><span class="o">(</span> <span class="n">manifest</span> <span class="o">)</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab786030></p>
<p>Or, to read the manifest from a file:</p>
-<div class="highlight"><pre><code class="scala"><span class="n">packageOptions</span> <span class="n">in</span> <span class="o">(</span><span class="nc">Compile</span><span class="o">,</span> <span class="n">packageBin</span><span class="o">)</span> <span class="o">+=</span> <span class="o">{</span>
- <span class="k">val</span> <span class="n">manifest</span> <span class="k">=</span> <span class="nc">Using</span><span class="o">.</span><span class="n">fileInputStream</span><span class="o">(</span> <span class="n">in</span> <span class="k">=&gt;</span> <span class="k">new</span> <span class="n">java</span><span class="o">.</span><span class="n">util</span><span class="o">.</span><span class="n">jar</span><span class="o">.</span><span class="nc">Manifest</span><span class="o">(</span><span class="n">in</span><span class="o">)</span> <span class="o">)</span>
- <span class="nc">Package</span><span class="o">.</span><span class="nc">JarManifest</span><span class="o">(</span> <span class="n">manifest</span> <span class="o">)</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
-
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab785ba8></p>
<h4 id="name">Change the file name of a package</h4>
@@ -114,12 +91,7 @@ <h4 id="contents">Modify the contents of the package</h4>
<p>The contents of a package are defined by the <code>mappings</code> task, of type <code>Seq[(File,String)]</code>. The <code>mappings</code> task is a sequence of mappings from a file to include in the package to the path in the package. See the page on <a href="https://github.com/harrah/xsbt/wiki/Mapping-Files">mapping files</a> for convenience functions for generating these mappings. For example, to add the file <code>in/example.txt</code> to the main binary jar with the path "out/example.txt",</p>
-<div class="highlight"><pre><code class="scala"><span class="n">mappings</span> <span class="n">in</span> <span class="o">(</span><span class="nc">Compile</span><span class="o">,</span> <span class="n">packageBin</span><span class="o">)</span> <span class="o">&lt;+=</span> <span class="n">baseDirectory</span> <span class="o">{</span> <span class="n">base</span> <span class="k">=&gt;</span>
- <span class="o">(</span><span class="n">base</span> <span class="o">/</span> <span class="s">&quot;in&quot;</span> <span class="o">/</span> <span class="s">&quot;example.txt&quot;</span><span class="o">)</span> <span class="o">-&gt;</span> <span class="s">&quot;out/example.txt&quot;</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab7856a8></p>
<p>Note that <code>mappings</code> is scoped by the configuration and the specific package task. For example, the mappings for the test source package are defined by the <code>mappings in (Test, packageSrc)</code> task.</p>
View
54 howto/scala.html
@@ -74,24 +74,14 @@ <h4 id="version">Set the Scala version used for building the project</h4>
<p>For example, to set the Scala version to "2.9.1",</p>
-<div class="highlight"><pre><code class="scala"><span class="n">scalaVersion</span> <span class="o">:=</span> <span class="s">&quot;2.9.1&quot;</span>
-</code></pre>
-</div>
-
-
-
+<p>Liquid error: undefined method `join' for "\nscalaVersion := \"2.9.1\"\n":String</p>
<h4 id="noauto">Disable the automatic dependency on the Scala library</h4>
<p>sbt adds a dependency on the Scala standard library by default. To disable this behavior, set the <code>autoScalaLibrary</code> setting to false.</p>
-<div class="highlight"><pre><code class="scala"><span class="n">autoScalaLibrary</span> <span class="o">:=</span> <span class="kc">false</span>
-</code></pre>
-</div>
-
-
-
+<p>Liquid error: undefined method `join' for "\nautoScalaLibrary := false\n":String</p>
<h4 id="temporary">Temporarily switch to a different Scala version</h4>
@@ -106,14 +96,7 @@ <h4 id="local">Use a local Scala version</h4>
<p>Defining the <code>scalaHome</code> setting with the path to the Scala home directory will use that Scala installation. sbt still requires <code>scalaVersion</code> to be set when a local Scala version is used. For example,</p>
-<div class="highlight"><pre><code class="scala"><span class="n">scalaVersion</span> <span class="o">:=</span> <span class="s">&quot;2.10.0-local&quot;</span>
-
-<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>
-
-
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab74daf0></p>
<h4 id="cross">Build a project against multiple Scala versions</h4>
@@ -144,21 +127,11 @@ <h4 id="initial">Define the initial commands evaluated when entering the Scala R
<p>Set <code>initialCommands in console</code> to set the initial statements to evaluate when <code>console</code> and <code>console-quick</code> are run. To configure <code>console-quick</code> separately, use <code>initialCommands in consoleQuick</code>.
For example,</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;Hello from console&quot;)&quot;&quot;&quot;</span>
-
-<span class="n">initialCommands</span> <span class="n">in</span> <span class="n">consoleQuick</span> <span class="o">:=</span> <span class="s">&quot;&quot;&quot;println(&quot;Hello from console-quick&quot;)&quot;&quot;&quot;</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab74d2a8></p>
<p>The <code>console-project</code> command is configured separately by <code>initialCommands in consoleProject</code>. It does not use the value from <code>initialCommands in console</code> by default. For example,</p>
-<div class="highlight"><pre><code class="scala"><span class="n">initialCommands</span> <span class="n">in</span> <span class="n">consoleProject</span> <span class="o">:=</span> <span class="s">&quot;&quot;&quot;println(&quot;Hello from console-project&quot;)&quot;&quot;&quot;</span>
-</code></pre>
-</div>
-
-
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab74bea8></p>
<h4 id="embed">Use the Scala REPL from project code</h4>
@@ -173,26 +146,13 @@ <h4 id="embed">Use the Scala REPL from project code</h4>
<p>The key is to initialize the Settings for the interpreter using <em>embeddedDefaults</em>. For example:</p>
-<div class="highlight"><pre><code class="scala"><span class="k">val</span> <span class="n">settings</span> <span class="k">=</span> <span class="k">new</span> <span class="nc">Settings</span>
-<span class="n">settings</span><span class="o">.</span><span class="n">embeddedDefaults</span><span class="o">[</span><span class="kt">MyType</span><span class="o">]</span>
-<span class="k">val</span> <span class="n">interpreter</span> <span class="k">=</span> <span class="k">new</span> <span class="nc">Interpreter</span><span class="o">(</span><span class="n">settings</span><span class="o">,</span> <span class="o">...)</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab74b1d8></p>
<p>Here, MyType is a representative class that should be included on the interpreter's classpath and in its application class loader. For more background, see the <a href="https://gist.github.com/404272">original proposal</a> that resulted in <em>embeddedDefaults</em> being added.</p>
<p>Similarly, use a representative class as the type argument when using the <em>break</em> and <em>breakIf</em> methods of <em>ILoop</em>, as in the following example:</p>
-<div class="highlight"><pre><code class="scala"><span class="k">def</span> <span class="n">x</span><span class="o">(</span><span class="n">a</span><span class="k">:</span> <span class="kt">Int</span><span class="o">,</span> <span class="n">b</span><span class="k">:</span> <span class="kt">Int</span><span class="o">)</span> <span class="k">=</span> <span class="o">{</span>
- <span class="k">import</span> <span class="nn">scala.tools.nsc.interpreter.ILoop</span>
- <span class="nc">ILoop</span><span class="o">.</span><span class="n">breakIf</span><span class="o">[</span><span class="kt">MyType</span><span class="o">](</span><span class="n">a</span> <span class="o">!=</span> <span class="n">b</span><span class="o">,</span> <span class="s">&quot;a&quot;</span> <span class="o">-&gt;</span> <span class="n">a</span><span class="o">,</span> <span class="s">&quot;b&quot;</span> <span class="o">-&gt;</span> <span class="n">b</span> <span class="o">)</span>
-<span class="o">}</span>
-</code></pre>
-</div>
-
-
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab74a968></p>
</div>
</div>
View
33 howto/triggered.html
@@ -62,31 +62,18 @@ <h4 id="basic">Run a command when sources change</h4>
<p>The original use-case for triggered execution was continuous compilation:</p>
-<div class="highlight"><pre><code class="scala"><span class="o">&gt;</span> <span class="o">~</span> <span class="n">test</span><span class="k">:</span><span class="kt">compile</span>
-
-<span class="o">&gt;</span> <span class="o">~</span> <span class="n">compile</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for "\n> ~ test:compile\n\n> ~ compile\n":String</p>
<p>You can use the triggered execution feature to run any command or task, however. The following will poll for changes to your source code (main or test) and run <code>test-only</code> for the specified test.</p>
-<div class="highlight"><pre><code class="scala"><span class="o">&gt;</span> <span class="o">~</span> <span class="n">test</span><span class="o">-</span><span class="n">only</span> <span class="n">example</span><span class="o">.</span><span class="nc">TestA</span>
-</code></pre>
-</div>
-
-
-
+<p>Liquid error: undefined method `join' for "\n> ~ test-only example.TestA\n":String</p>
<h4 id="multi">Run multiple commands when sources change</h4>
<p>The command passed to <code>~</code> may be any command string, so multiple commands may be run by separating them with a semicolon. For example,</p>
-<div class="highlight"><pre><code class="scala"><span class="o">&gt;</span> <span class="o">~</span> <span class="o">;</span><span class="n">a</span> <span class="o">;</span><span class="n">b</span>
-</code></pre>
-</div>
-
+<p>Liquid error: undefined method `join' for "\n> ~ ;a ;b\n":String</p>
<p>This runs <code>a</code> and then <code>b</code> when sources change.</p>
@@ -101,12 +88,7 @@ <h4 id="sources">Configure the sources checked for changes</h4>
<p>To add the file <code>demo/example.txt</code> to the files to watch,</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;demo&quot;</span> <span class="o">/</span> <span class="s">&quot;examples.txt&quot;</span> <span class="o">}</span>
-</code></pre>
-</div>
-
-
-
+<p>Liquid error: undefined method `join' for #&lt;String:0x7f62ab7c1888></p>
<h4 id="interval">Configure the polling time</h4>
@@ -116,12 +98,7 @@ <h4 id="interval">Configure the polling time</h4>
</ul>
-<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>
-
-
-
+<p>Liquid error: undefined method `join' for "\npollInterval := 1000 // in ms\n":String</p>
</div>
</div>

0 comments on commit 7302460

Please sign in to comment.