Permalink
Browse files

latest updates on 0.12.1 branch

  • Loading branch information...
1 parent 9ee8bf9 commit f29fe5be84964a1b639ae5f3984b74a089f05c7f @harrah harrah committed Dec 3, 2012
@@ -339,7 +339,7 @@
<li>More aggressive incremental recompilation for both Java and Scala sources</li>
<li>Merged plugins and processors into improved plugins system:
<a class="reference internal" href="../Extending/Plugins.html"><em>Plugins</em></a></li>
-<li><a class="reference external" href="https://github.com/siasia/xsbt-web-plugin">Web application</a> and
+<li><a class="reference external" href="https://github.com/JamesEarlDouglas/xsbt-web-plugin">Web application</a> and
webstart support moved to plugins instead of core features</li>
<li>Fixed all of the issues in (Google Code) issue #44</li>
<li>Managed dependencies automatically updated when configuration changes</li>
@@ -145,7 +145,7 @@
<div class="section" id="web-plugins">
<h3>Web Plugins<a class="headerlink" href="#web-plugins" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
-<li>xsbt-web-plugin: <a class="reference external" href="https://github.com/siasia/xsbt-web-plugin">https://github.com/siasia/xsbt-web-plugin</a></li>
+<li>xsbt-web-plugin: <a class="reference external" href="https://github.com/JamesEarlDouglas/xsbt-web-plugin">https://github.com/JamesEarlDouglas/xsbt-web-plugin</a></li>
<li>xsbt-webstart: <a class="reference external" href="https://github.com/ritschwumm/xsbt-webstart">https://github.com/ritschwumm/xsbt-webstart</a></li>
<li>sbt-appengine: <a class="reference external" href="https://github.com/sbt/sbt-appengine">https://github.com/sbt/sbt-appengine</a></li>
<li>sbt-gwt-plugin: <a class="reference external" href="https://github.com/thunderklaus/sbt-gwt-plugin">https://github.com/thunderklaus/sbt-gwt-plugin</a></li>
@@ -276,6 +276,14 @@
</pre></div>
</div>
</div>
+<div class="section" id="using-state-in-a-task">
+<h2>Using State in a task<a class="headerlink" href="#using-state-in-a-task" title="Permalink to this headline">¶</a></h2>
+<p>To access the current State from a task, use <tt class="docutils literal"><span class="pre">state</span></tt> task as an input.
+For example,</p>
+<div class="highlight-scala"><div class="highlight"><pre><span class="n">myTask</span> <span class="o">&lt;&lt;=</span> <span class="n">state</span> <span class="n">map</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="o">...</span> <span class="o">}</span>
+</pre></div>
+</div>
+</div>
</div>
@@ -290,6 +298,7 @@
<li><a class="reference internal" href="#project-data">Project data</a></li>
<li><a class="reference internal" href="#classpaths">Classpaths</a></li>
<li><a class="reference internal" href="#running-tasks">Running tasks</a></li>
+<li><a class="reference internal" href="#using-state-in-a-task">Using State in a task</a></li>
</ul>
</li>
</ul>
@@ -233,7 +233,7 @@
<span class="k">object</span> <span class="nc">PluginDef</span> <span class="k">extends</span> <span class="nc">Build</span> <span class="o">{</span>
<span class="k">override</span> <span class="k">lazy</span> <span class="k">val</span> <span class="n">projects</span> <span class="k">=</span> <span class="nc">Seq</span><span class="o">(</span><span class="n">root</span><span class="o">)</span>
<span class="k">lazy</span> <span class="k">val</span> <span class="n">root</span> <span class="k">=</span> <span class="nc">Project</span><span class="o">(</span><span class="s">&quot;plugins&quot;</span><span class="o">,</span> <span class="n">file</span><span class="o">(</span><span class="s">&quot;.&quot;</span><span class="o">))</span> <span class="n">dependsOn</span><span class="o">(</span> <span class="n">webPlugin</span> <span class="o">)</span>
- <span class="k">lazy</span> <span class="k">val</span> <span class="n">webPlugin</span> <span class="k">=</span> <span class="n">uri</span><span class="o">(</span><span class="s">&quot;git://github.com/siasia/xsbt-web-plugin&quot;</span><span class="o">)</span>
+ <span class="k">lazy</span> <span class="k">val</span> <span class="n">webPlugin</span> <span class="k">=</span> <span class="n">uri</span><span class="o">(</span><span class="s">&quot;git://github.com/JamesEarlDouglas/xsbt-web-plugin&quot;</span><span class="o">)</span>
<span class="o">}</span>
</pre></div>
</div>
@@ -245,7 +245,7 @@
version of a plugin from its repository.</p>
<p>It is recommended to explicitly specify the commit or tag by appending
it to the repository as a fragment:</p>
-<div class="highlight-scala"><div class="highlight"><pre><span class="k">lazy</span> <span class="k">val</span> <span class="n">webPlugin</span> <span class="k">=</span> <span class="n">uri</span><span class="o">(</span><span class="s">&quot;git://github.com/siasia/xsbt-web-plugin#0.9.7&quot;</span><span class="o">)</span>
+<div class="highlight-scala"><div class="highlight"><pre><span class="k">lazy</span> <span class="k">val</span> <span class="n">webPlugin</span> <span class="k">=</span> <span class="n">uri</span><span class="o">(</span><span class="s">&quot;git://github.com/JamesEarlDouglas/xsbt-web-plugin#0.9.7&quot;</span><span class="o">)</span>
</pre></div>
</div>
</div>
@@ -108,6 +108,7 @@
<li class="toctree-l2"><a class="reference internal" href="Build-State.html#project-data">Project data</a></li>
<li class="toctree-l2"><a class="reference internal" href="Build-State.html#classpaths">Classpaths</a></li>
<li class="toctree-l2"><a class="reference internal" href="Build-State.html#running-tasks">Running tasks</a></li>
+<li class="toctree-l2"><a class="reference internal" href="Build-State.html#using-state-in-a-task">Using State in a task</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="Command-Line-Applications.html">Creating Command Line Applications Using sbt</a><ul>
@@ -282,7 +282,7 @@
<ul class="simple">
<li>those for IDEs (to import an sbt project into your IDE)</li>
<li>those supporting web frameworks, such as
-<a class="reference external" href="https://github.com/siasia/xsbt-web-plugin">xsbt-web-plugin</a>.</li>
+<a class="reference external" href="https://github.com/JamesEarlDouglas/xsbt-web-plugin">xsbt-web-plugin</a>.</li>
</ul>
<p><a class="reference internal" href="../Community/Community-Plugins.html"><em>Check out the list</em></a>.</p>
</div>
@@ -246,7 +246,7 @@ Some of the more visible changes:
- More aggressive incremental recompilation for both Java and Scala sources
- Merged plugins and processors into improved plugins system:
:doc:`/Extending/Plugins`
-- `Web application <https://github.com/siasia/xsbt-web-plugin>`_ and
+- `Web application <https://github.com/JamesEarlDouglas/xsbt-web-plugin>`_ and
webstart support moved to plugins instead of core features
- Fixed all of the issues in (Google Code) issue #44
- Managed dependencies automatically updated when configuration changes
@@ -68,7 +68,7 @@ Plugins for IDEs:
Web Plugins
~~~~~~~~~~~
-- xsbt-web-plugin: https://github.com/siasia/xsbt-web-plugin
+- xsbt-web-plugin: https://github.com/JamesEarlDouglas/xsbt-web-plugin
- xsbt-webstart: https://github.com/ritschwumm/xsbt-webstart
- sbt-appengine: https://github.com/sbt/sbt-appengine
- sbt-gwt-plugin: https://github.com/thunderklaus/sbt-gwt-plugin
@@ -216,3 +216,13 @@ For getting the test classpath of a specific project, use this key:
val taskKey: Task[Seq[Attributed[File]]] =
Keys.fullClasspath in (projectRef, Test)
+
+Using State in a task
+---------------------
+
+To access the current State from a task, use `state` task as an input.
+For example,
+
+::
+
+ myTask <<= state map { (s: State) => ... }
@@ -170,7 +170,7 @@ Edit ``project/project/Build.scala``
object PluginDef extends Build {
override lazy val projects = Seq(root)
lazy val root = Project("plugins", file(".")) dependsOn( webPlugin )
- lazy val webPlugin = uri("git://github.com/siasia/xsbt-web-plugin")
+ lazy val webPlugin = uri("git://github.com/JamesEarlDouglas/xsbt-web-plugin")
}
If sbt is running, run ``reload``.
@@ -186,7 +186,7 @@ it to the repository as a fragment:
::
- lazy val webPlugin = uri("git://github.com/siasia/xsbt-web-plugin#0.9.7")
+ lazy val webPlugin = uri("git://github.com/JamesEarlDouglas/xsbt-web-plugin#0.9.7")
2) Use the library
~~~~~~~~~~~~~~~~~~
@@ -236,7 +236,7 @@ Some especially popular plugins are:
- those for IDEs (to import an sbt project into your IDE)
- those supporting web frameworks, such as
- `xsbt-web-plugin <https://github.com/siasia/xsbt-web-plugin>`_.
+ `xsbt-web-plugin <https://github.com/JamesEarlDouglas/xsbt-web-plugin>`_.
:doc:`Check out the list</Community/Community-Plugins>`.
@@ -137,7 +137,7 @@ What happened to the web development and Web Start support since 0.7?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Web application support was split out into a plugin. See the
-`xsbt-web-plugin <https://github.com/siasia/xsbt-web-plugin>`_ project.
+`xsbt-web-plugin <https://github.com/JamesEarlDouglas/xsbt-web-plugin>`_ project.
For an early version of an xsbt Web Start plugin, visit the
`xsbt-webstart <https://github.com/ritschwumm/xsbt-webstart>`_ project.
@@ -301,7 +301,7 @@ var Search = {
},
query : function(query) {
- var stopwords = ["there","was","with","they","that","but","such","then","not","are","or","as","at","of","on","will","these","their","if","a","in","into","it","and","this","be","is","for","by","near","no","the","to"];
+ var stopwords = ["or","then","if","as","at","in","near","this","is","it","they","on","for","not","to","into","these","the","such","are","but","that","with","and","no","be","was","a","there","of","by","their","will"];
// Stem the searchterms and add them to the correct list
var stemmer = new Stemmer();
@@ -209,7 +209,7 @@
<div class="section" id="what-happened-to-the-web-development-and-web-start-support-since-0-7">
<h3>What happened to the web development and Web Start support since 0.7?<a class="headerlink" href="#what-happened-to-the-web-development-and-web-start-support-since-0-7" title="Permalink to this headline">¶</a></h3>
<p>Web application support was split out into a plugin. See the
-<a class="reference external" href="https://github.com/siasia/xsbt-web-plugin">xsbt-web-plugin</a> project.</p>
+<a class="reference external" href="https://github.com/JamesEarlDouglas/xsbt-web-plugin">xsbt-web-plugin</a> project.</p>
<p>For an early version of an xsbt Web Start plugin, visit the
<a class="reference external" href="https://github.com/ritschwumm/xsbt-webstart">xsbt-webstart</a> project.</p>
</div>
Oops, something went wrong.

0 comments on commit f29fe5b

Please sign in to comment.