buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r19711 [17/44] - in /dev/buildr/1.5.3: ./ dist/ site/ site/css/ site/images/ site/rdoc/ site/rdoc/Buildr/ site/rdoc/Buildr/ArchiveTask/ site/rdoc/Buildr/ArtifactNamespace/ site/rdoc/Buildr/Assets/ site/rdoc/Buildr/CPom/ site/rdoc/Buildr/Che...
Date Wed, 17 May 2017 11:56:15 GMT
Added: dev/buildr/1.5.3/site/rdoc/Buildr/Compiler/Ecj.html
==============================================================================
--- dev/buildr/1.5.3/site/rdoc/Buildr/Compiler/Ecj.html (added)
+++ dev/buildr/1.5.3/site/rdoc/Buildr/Compiler/Ecj.html Wed May 17 11:56:15 2017
@@ -0,0 +1,207 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>class Buildr::Compiler::Ecj - buildr</title>
+
+<script type="text/javascript">
+  var rdoc_rel_prefix = "../../";
+</script>
+
+<script src="../../js/jquery.js"></script>
+<script src="../../js/darkfish.js"></script>
+
+<link href="../../css/fonts.css" rel="stylesheet">
+<link href="../../css/rdoc.css" rel="stylesheet">
+
+
+
+<body id="top" role="document" class="class">
+<nav role="navigation">
+  <div id="project-navigation">
+    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
+  <h2>
+    <a href="../../index.html" rel="home">Home</a>
+  </h2>
+
+  <div id="table-of-contents-navigation">
+    <a href="../../table_of_contents.html#pages">Pages</a>
+    <a href="../../table_of_contents.html#classes">Classes</a>
+    <a href="../../table_of_contents.html#methods">Methods</a>
+  </div>
+</div>
+
+    <div id="search-section" role="search" class="project-section initially-hidden">
+  <form action="#" method="get" accept-charset="utf-8">
+    <div id="search-field-wrapper">
+      <input id="search-field" role="combobox" aria-label="Search"
+             aria-autocomplete="list" aria-controls="search-results"
+             type="text" name="search" placeholder="Search" spellcheck="false"
+             title="Type to search, Up and Down to navigate, Enter to load">
+    </div>
+
+    <ul id="search-results" aria-label="Search Results"
+        aria-busy="false" aria-expanded="false"
+        aria-atomic="false" class="initially-hidden"></ul>
+  </form>
+</div>
+
+  </div>
+
+  
+
+  <div id="class-metadata">
+    
+    <div id="parent-class-section" class="nav-section">
+  <h3>Parent</h3>
+
+  
+  <p class="link"><a href="Javac.html">Buildr::Compiler::Javac</a>
+  
+</div>
+
+    
+    
+    <!-- Method Quickref -->
+<div id="method-list-section" class="nav-section">
+  <h3>Methods</h3>
+
+  <ul class="link-list" role="directory">
+    
+    <li ><a href="#method-c-dependencies">::dependencies</a>
+    
+    <li ><a href="#method-c-version">::version</a>
+    
+  </ul>
+</div>
+
+  </div>
+</nav>
+
+<main role="main" aria-labelledby="class-Buildr::Compiler::Ecj">
+  <h1 id="class-Buildr::Compiler::Ecj" class="class">
+    class Buildr::Compiler::Ecj
+  </h1>
+
+  <section class="description">
+    
+  </section>
+
+  
+  
+  
+  <section id="5Buntitled-5D" class="documentation-section">
+    
+
+    
+
+    
+    <section class="constants-list">
+      <header>
+        <h3>Constants</h3>
+      </header>
+      <dl>
+      
+        <dt id="OPTIONS">OPTIONS
+        
+        <dd>
+        
+      
+        <dt id="VERSION">VERSION
+        
+        <dd>
+        
+      
+      </dl>
+    </section>
+    
+
+    
+
+    
+     <section id="public-class-5Buntitled-5D-method-details" class="method-section">
+       <header>
+         <h3>Public Class Methods</h3>
+       </header>
+
+    
+      <div id="method-c-dependencies" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">dependencies</span><span
+            class="method-args">()</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          <p>ECJ classpath dependencies.</p>
+          
+          
+
+          
+          <div class="method-source-code" id="dependencies-source">
+            <pre><span class="ruby-comment"># File lib/buildr/java/ecj.rb, line
30</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">dependencies</span>
+  <span class="ruby-ivar">@dependencies</span> <span class="ruby-operator">||=</span>
[<span class="ruby-node">&quot;org.eclipse.jdt.core.compiler:ecj:jar:#{version}&quot;</span>]
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-c-version" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">version</span><span
+            class="method-args">()</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          <p>Current version of ECJ being used.</p>
+          
+          
+
+          
+          <div class="method-source-code" id="version-source">
+            <pre><span class="ruby-comment"># File lib/buildr/java/ecj.rb, line
25</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">version</span>
+  <span class="ruby-constant">Buildr</span>.<span class="ruby-identifier">settings</span>.<span
class="ruby-identifier">build</span>[<span class="ruby-string">&#39;ecj&#39;</span>]
<span class="ruby-operator">||</span> <span class="ruby-constant">VERSION</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+    </section>
+  
+  </section>
+</main>
+
+
+<footer id="validator-badges" role="contentinfo">
+  <p><a href="http://validator.w3.org/check/referer">Validate</a>
+  <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
+  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a>
by <a href="http://deveiate.org">Michael Granger</a>.
+</footer>
+

Added: dev/buildr/1.5.3/site/rdoc/Buildr/Compiler/ExternalJavac.html
==============================================================================
--- dev/buildr/1.5.3/site/rdoc/Buildr/Compiler/ExternalJavac.html (added)
+++ dev/buildr/1.5.3/site/rdoc/Buildr/Compiler/ExternalJavac.html Wed May 17 11:56:15 2017
@@ -0,0 +1,116 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>class Buildr::Compiler::ExternalJavac - buildr</title>
+
+<script type="text/javascript">
+  var rdoc_rel_prefix = "../../";
+</script>
+
+<script src="../../js/jquery.js"></script>
+<script src="../../js/darkfish.js"></script>
+
+<link href="../../css/fonts.css" rel="stylesheet">
+<link href="../../css/rdoc.css" rel="stylesheet">
+
+
+
+<body id="top" role="document" class="class">
+<nav role="navigation">
+  <div id="project-navigation">
+    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
+  <h2>
+    <a href="../../index.html" rel="home">Home</a>
+  </h2>
+
+  <div id="table-of-contents-navigation">
+    <a href="../../table_of_contents.html#pages">Pages</a>
+    <a href="../../table_of_contents.html#classes">Classes</a>
+    <a href="../../table_of_contents.html#methods">Methods</a>
+  </div>
+</div>
+
+    <div id="search-section" role="search" class="project-section initially-hidden">
+  <form action="#" method="get" accept-charset="utf-8">
+    <div id="search-field-wrapper">
+      <input id="search-field" role="combobox" aria-label="Search"
+             aria-autocomplete="list" aria-controls="search-results"
+             type="text" name="search" placeholder="Search" spellcheck="false"
+             title="Type to search, Up and Down to navigate, Enter to load">
+    </div>
+
+    <ul id="search-results" aria-label="Search Results"
+        aria-busy="false" aria-expanded="false"
+        aria-atomic="false" class="initially-hidden"></ul>
+  </form>
+</div>
+
+  </div>
+
+  
+
+  <div id="class-metadata">
+    
+    <div id="parent-class-section" class="nav-section">
+  <h3>Parent</h3>
+
+  
+  <p class="link"><a href="Javac.html">Buildr::Compiler::Javac</a>
+  
+</div>
+
+    
+    
+    
+  </div>
+</nav>
+
+<main role="main" aria-labelledby="class-Buildr::Compiler::ExternalJavac">
+  <h1 id="class-Buildr::Compiler::ExternalJavac" class="class">
+    class Buildr::Compiler::ExternalJavac
+  </h1>
+
+  <section class="description">
+    
+  </section>
+
+  
+  
+  
+  <section id="5Buntitled-5D" class="documentation-section">
+    
+
+    
+
+    
+    <section class="constants-list">
+      <header>
+        <h3>Constants</h3>
+      </header>
+      <dl>
+      
+        <dt id="OPTIONS">OPTIONS
+        
+        <dd>
+        
+      
+      </dl>
+    </section>
+    
+
+    
+
+    
+  </section>
+</main>
+
+
+<footer id="validator-badges" role="contentinfo">
+  <p><a href="http://validator.w3.org/check/referer">Validate</a>
+  <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
+  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a>
by <a href="http://deveiate.org">Michael Granger</a>.
+</footer>
+

Added: dev/buildr/1.5.3/site/rdoc/Buildr/Compiler/Javac.html
==============================================================================
--- dev/buildr/1.5.3/site/rdoc/Buildr/Compiler/Javac.html (added)
+++ dev/buildr/1.5.3/site/rdoc/Buildr/Compiler/Javac.html Wed May 17 11:56:15 2017
@@ -0,0 +1,211 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>class Buildr::Scala::Scalac::Javac - buildr</title>
+
+<script type="text/javascript">
+  var rdoc_rel_prefix = "../../";
+</script>
+
+<script src="../../js/jquery.js"></script>
+<script src="../../js/darkfish.js"></script>
+
+<link href="../../css/fonts.css" rel="stylesheet">
+<link href="../../css/rdoc.css" rel="stylesheet">
+
+
+
+<body id="top" role="document" class="class">
+<nav role="navigation">
+  <div id="project-navigation">
+    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
+  <h2>
+    <a href="../../index.html" rel="home">Home</a>
+  </h2>
+
+  <div id="table-of-contents-navigation">
+    <a href="../../table_of_contents.html#pages">Pages</a>
+    <a href="../../table_of_contents.html#classes">Classes</a>
+    <a href="../../table_of_contents.html#methods">Methods</a>
+  </div>
+</div>
+
+    <div id="search-section" role="search" class="project-section initially-hidden">
+  <form action="#" method="get" accept-charset="utf-8">
+    <div id="search-field-wrapper">
+      <input id="search-field" role="combobox" aria-label="Search"
+             aria-autocomplete="list" aria-controls="search-results"
+             type="text" name="search" placeholder="Search" spellcheck="false"
+             title="Type to search, Up and Down to navigate, Enter to load">
+    </div>
+
+    <ul id="search-results" aria-label="Search Results"
+        aria-busy="false" aria-expanded="false"
+        aria-atomic="false" class="initially-hidden"></ul>
+  </form>
+</div>
+
+  </div>
+
+  
+
+  <div id="class-metadata">
+    
+    <div id="parent-class-section" class="nav-section">
+  <h3>Parent</h3>
+
+  
+  <p class="link">Buildr::Compiler::Base
+  
+</div>
+
+    
+    
+    <!-- Method Quickref -->
+<div id="method-list-section" class="nav-section">
+  <h3>Methods</h3>
+
+  <ul class="link-list" role="directory">
+    
+    <li class="calls-super" ><a href="#method-i-compile_map">#compile_map</a>
+    
+  </ul>
+</div>
+
+  </div>
+</nav>
+
+<main role="main" aria-labelledby="class-Buildr::Scala::Scalac::Javac">
+  <h1 id="class-Buildr::Scala::Scalac::Javac" class="class">
+    class Buildr::Scala::Scalac::Javac
+  </h1>
+
+  <section class="description">
+    
+<p><a href="Javac.html">Javac</a> compiler:</p>
+
+<pre class="ruby"><span class="ruby-identifier">compile</span>.<span
class="ruby-identifier">using</span>(:<span class="ruby-identifier">javac</span>)
+</pre>
+
+<p>Used by default if .java files are found in the src/main/java directory (or
+src/test/java) and sets the target directory to target/classes (or
+target/test/classes).</p>
+
+<p>Accepts the following options:</p>
+<ul><li>
+<p>:warnings    – Issue warnings when compiling.  True when running in verbose
+mode.</p>
+</li><li>
+<p>:debug       – Generates bytecode with debugging information.  Set from the
+debug</p>
+</li></ul>
+
+<p>environment variable/global option.</p>
+<ul><li>
+<p>:deprecation – If true, shows deprecation messages.  False by default.</p>
+</li><li>
+<p>:source      – Source code compatibility.</p>
+</li><li>
+<p>:target      – Bytecode compatibility.</p>
+</li><li>
+<p>:lint        – Lint option is one of true, false (default), name (e.g.
+&#39;cast&#39;) or array.</p>
+</li><li>
+<p>:other       – Array of options passed to the compiler</p>
+</li></ul>
+
+<p>(e.g. [&#39;-implicit:none&#39;, &#39;-encoding&#39;,
+&#39;iso-8859-1&#39;])</p>
+
+  </section>
+
+  
+  
+  
+  <section id="5Buntitled-5D" class="documentation-section">
+    
+
+    
+
+    
+    <section class="constants-list">
+      <header>
+        <h3>Constants</h3>
+      </header>
+      <dl>
+      
+        <dt id="OPTIONS">OPTIONS
+        
+        <dd>
+        
+      
+      </dl>
+    </section>
+    
+
+    
+
+    
+     <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
+       <header>
+         <h3>Public Instance Methods</h3>
+       </header>
+
+    
+      <div id="method-i-compile_map" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">compile_map</span><span
+            class="method-args">(sources, target)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          <p><a href="../Filter.html">Filter</a> out source files that
are known to not
+produce any corresponding .class output file. If we leave this type of file
+in the generated compile map the compiler will always be run due to missing
+output files.</p>
+          
+          
+            <div class="method-calls-super">
+              Calls superclass method
+              
+            </div>
+          
+
+          
+          <div class="method-source-code" id="compile_map-source">
+            <pre><span class="ruby-comment"># File lib/buildr/java/compiler.rb,
line 69</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">compile_map</span>(<span
class="ruby-identifier">sources</span>, <span class="ruby-identifier">target</span>)
+  <span class="ruby-identifier">map</span> = <span class="ruby-keyword">super</span>
+  <span class="ruby-identifier">map</span>.<span class="ruby-identifier">reject!</span>
{ <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>,<span
class="ruby-identifier">_</span><span class="ruby-operator">|</span>
<span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span
class="ruby-identifier">key</span>) <span class="ruby-operator">==</span>
<span class="ruby-string">&#39;package-info.java&#39;</span> } <span
class="ruby-operator">||</span> <span class="ruby-identifier">map</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+    </section>
+  
+  </section>
+</main>
+
+
+<footer id="validator-badges" role="contentinfo">
+  <p><a href="http://validator.w3.org/check/referer">Validate</a>
+  <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
+  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a>
by <a href="http://deveiate.org">Michael Granger</a>.
+</footer>
+

Added: dev/buildr/1.5.3/site/rdoc/Buildr/ConcatTask.html
==============================================================================
--- dev/buildr/1.5.3/site/rdoc/Buildr/ConcatTask.html (added)
+++ dev/buildr/1.5.3/site/rdoc/Buildr/ConcatTask.html Wed May 17 11:56:15 2017
@@ -0,0 +1,110 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>class Buildr::ConcatTask - buildr</title>
+
+<script type="text/javascript">
+  var rdoc_rel_prefix = "../";
+</script>
+
+<script src="../js/jquery.js"></script>
+<script src="../js/darkfish.js"></script>
+
+<link href="../css/fonts.css" rel="stylesheet">
+<link href="../css/rdoc.css" rel="stylesheet">
+
+
+
+<body id="top" role="document" class="class">
+<nav role="navigation">
+  <div id="project-navigation">
+    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
+  <h2>
+    <a href="../index.html" rel="home">Home</a>
+  </h2>
+
+  <div id="table-of-contents-navigation">
+    <a href="../table_of_contents.html#pages">Pages</a>
+    <a href="../table_of_contents.html#classes">Classes</a>
+    <a href="../table_of_contents.html#methods">Methods</a>
+  </div>
+</div>
+
+    <div id="search-section" role="search" class="project-section initially-hidden">
+  <form action="#" method="get" accept-charset="utf-8">
+    <div id="search-field-wrapper">
+      <input id="search-field" role="combobox" aria-label="Search"
+             aria-autocomplete="list" aria-controls="search-results"
+             type="text" name="search" placeholder="Search" spellcheck="false"
+             title="Type to search, Up and Down to navigate, Enter to load">
+    </div>
+
+    <ul id="search-results" aria-label="Search Results"
+        aria-busy="false" aria-expanded="false"
+        aria-atomic="false" class="initially-hidden"></ul>
+  </form>
+</div>
+
+  </div>
+
+  
+
+  <div id="class-metadata">
+    
+    <div id="parent-class-section" class="nav-section">
+  <h3>Parent</h3>
+
+  
+  <p class="link"><a href="../Rake/FileTask.html">Rake::FileTask</a>
+  
+</div>
+
+    
+    
+    
+  </div>
+</nav>
+
+<main role="main" aria-labelledby="class-Buildr::ConcatTask">
+  <h1 id="class-Buildr::ConcatTask" class="class">
+    class Buildr::ConcatTask
+  </h1>
+
+  <section class="description">
+    
+<p>A file task that concatenates all its prerequisites to create a new file.</p>
+
+<p>For example:</p>
+
+<pre>concat(&quot;master.sql&quot;=&gt;[&quot;users.sql&quot;,
&quot;orders.sql&quot;, reports.sql&quot;]</pre>
+
+<p>See also Buildr#concat.</p>
+
+  </section>
+
+  
+  
+  
+  <section id="5Buntitled-5D" class="documentation-section">
+    
+
+    
+
+    
+
+    
+
+    
+  </section>
+</main>
+
+
+<footer id="validator-badges" role="contentinfo">
+  <p><a href="http://validator.w3.org/check/referer">Validate</a>
+  <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
+  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a>
by <a href="http://deveiate.org">Michael Granger</a>.
+</footer>
+

Added: dev/buildr/1.5.3/site/rdoc/Buildr/Console.html
==============================================================================
--- dev/buildr/1.5.3/site/rdoc/Buildr/Console.html (added)
+++ dev/buildr/1.5.3/site/rdoc/Buildr/Console.html Wed May 17 11:56:15 2017
@@ -0,0 +1,449 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>class Buildr::Console - buildr</title>
+
+<script type="text/javascript">
+  var rdoc_rel_prefix = "../";
+</script>
+
+<script src="../js/jquery.js"></script>
+<script src="../js/darkfish.js"></script>
+
+<link href="../css/fonts.css" rel="stylesheet">
+<link href="../css/rdoc.css" rel="stylesheet">
+
+
+
+<body id="top" role="document" class="class">
+<nav role="navigation">
+  <div id="project-navigation">
+    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
+  <h2>
+    <a href="../index.html" rel="home">Home</a>
+  </h2>
+
+  <div id="table-of-contents-navigation">
+    <a href="../table_of_contents.html#pages">Pages</a>
+    <a href="../table_of_contents.html#classes">Classes</a>
+    <a href="../table_of_contents.html#methods">Methods</a>
+  </div>
+</div>
+
+    <div id="search-section" role="search" class="project-section initially-hidden">
+  <form action="#" method="get" accept-charset="utf-8">
+    <div id="search-field-wrapper">
+      <input id="search-field" role="combobox" aria-label="Search"
+             aria-autocomplete="list" aria-controls="search-results"
+             type="text" name="search" placeholder="Search" spellcheck="false"
+             title="Type to search, Up and Down to navigate, Enter to load">
+    </div>
+
+    <ul id="search-results" aria-label="Search Results"
+        aria-busy="false" aria-expanded="false"
+        aria-atomic="false" class="initially-hidden"></ul>
+  </form>
+</div>
+
+  </div>
+
+  
+
+  <div id="class-metadata">
+    
+    <div id="parent-class-section" class="nav-section">
+  <h3>Parent</h3>
+
+  
+  <p class="link"><a href="../Object.html">Object</a>
+  
+</div>
+
+    
+    
+    <!-- Method Quickref -->
+<div id="method-list-section" class="nav-section">
+  <h3>Methods</h3>
+
+  <ul class="link-list" role="directory">
+    
+    <li ><a href="#method-c-agree-3F">::agree?</a>
+    
+    <li ><a href="#method-c-ask_password">::ask_password</a>
+    
+    <li ><a href="#method-c-color">::color</a>
+    
+    <li ><a href="#method-c-console_dimensions">::console_dimensions</a>
+    
+    <li ><a href="#method-c-output_cols">::output_cols</a>
+    
+    <li ><a href="#method-c-present_menu">::present_menu</a>
+    
+    <li ><a href="#method-c-use_color">::use_color</a>
+    
+    <li ><a href="#method-c-use_color-3D">::use_color=</a>
+    
+  </ul>
+</div>
+
+  </div>
+</nav>
+
+<main role="main" aria-labelledby="class-Buildr::Console">
+  <h1 id="class-Buildr::Console" class="class">
+    class Buildr::Console
+  </h1>
+
+  <section class="description">
+    
+<p>A utility class that helps with colorizing output for interactive shells
+where appropriate</p>
+
+  </section>
+
+  
+  
+  
+  <section id="5Buntitled-5D" class="documentation-section">
+    
+
+    
+
+    
+
+    
+
+    
+     <section id="public-class-5Buntitled-5D-method-details" class="method-section">
+       <header>
+         <h3>Public Class Methods</h3>
+       </header>
+
+    
+      <div id="method-c-agree-3F" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">agree?</span><span
+            class="method-args">(message)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="agree-3F-source">
+            <pre><span class="ruby-comment"># File lib/buildr/core/console.rb,
line 75</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">agree?</span>(<span
class="ruby-identifier">message</span>)
+  <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{message}
(Y or N)&quot;</span>
+  <span class="ruby-value">:agree</span> <span class="ruby-operator">==</span>
<span class="ruby-identifier">ask</span>(<span class="ruby-string">&#39;Y&#39;</span>
=<span class="ruby-operator">&gt;</span> <span class="ruby-value">:agree</span>,
<span class="ruby-string">&#39;N&#39;</span> =<span class="ruby-operator">&gt;</span>
<span class="ruby-value">:disagree</span>)
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-c-ask_password" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">ask_password</span><span
+            class="method-args">(prompt)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="ask_password-source">
+            <pre><span class="ruby-comment"># File lib/buildr/core/console.rb,
line 80</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">ask_password</span>(<span
class="ruby-identifier">prompt</span>)
+  <span class="ruby-identifier">puts</span> <span class="ruby-identifier">prompt</span>
+  <span class="ruby-keyword">begin</span>
+    <span class="ruby-identifier">set_no_echo_mode</span>
+    <span class="ruby-identifier">password</span> = <span class="ruby-identifier">$stdin</span>.<span
class="ruby-identifier">readline</span>
+    <span class="ruby-keyword">return</span> <span class="ruby-identifier">password</span>.<span
class="ruby-identifier">chomp</span>
+  <span class="ruby-keyword">ensure</span>
+    <span class="ruby-identifier">reset_mode</span>
+  <span class="ruby-keyword">end</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-c-color" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">color</span><span
+            class="method-args">(message, color)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          <p>Emit message with color at the start of the message and the clear color
+command at the end of the sequence.</p>
+          
+          
+
+          
+          <div class="method-source-code" id="color-source">
+            <pre><span class="ruby-comment"># File lib/buildr/core/console.rb,
line 31</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">color</span>(<span
class="ruby-identifier">message</span>, <span class="ruby-identifier">color</span>)
+  <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Unknown
color #{color.inspect}&quot;</span> <span class="ruby-keyword">unless</span>
[<span class="ruby-value">:green</span>, <span class="ruby-value">:red</span>,
<span class="ruby-value">:blue</span>].<span class="ruby-identifier">include?</span>(<span
class="ruby-identifier">color</span>)
+  <span class="ruby-keyword">return</span> <span class="ruby-identifier">message</span>
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">use_color</span>
+  <span class="ruby-identifier">constants</span> = {<span class="ruby-value">:green</span>
=<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;\e[32m&quot;</span>,
<span class="ruby-value">:red</span> =<span class="ruby-operator">&gt;</span>
<span class="ruby-string">&quot;\e[31m&quot;</span>, <span class="ruby-value">:blue</span>
=<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;\e[34m&quot;</span>}
+  <span class="ruby-ivar">@java_console</span>.<span class="ruby-identifier">putString</span>(<span
class="ruby-node">&quot;#{constants[color]}#{message}\e[0m&quot;</span>)
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@java_console</span>
+  <span class="ruby-node">&quot;#{constants[color]}#{message}\e[0m&quot;</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-c-console_dimensions" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">console_dimensions</span><span
+            class="method-args">()</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          <p>Return the [rows, columns] of a console or nil if unknown</p>
+          
+          
+
+          
+          <div class="method-source-code" id="console_dimensions-source">
+            <pre><span class="ruby-comment"># File lib/buildr/core/console.rb,
line 40</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">console_dimensions</span>
+  <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span>
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">setup_support</span>
+
+  <span class="ruby-keyword">begin</span>
+    <span class="ruby-keyword">if</span> <span class="ruby-constant">Buildr</span><span
class="ruby-operator">::</span><span class="ruby-constant">Util</span>.<span
class="ruby-identifier">win_os?</span>
+      <span class="ruby-keyword">if</span> <span class="ruby-constant">Buildr</span><span
class="ruby-operator">::</span><span class="ruby-constant">Util</span>.<span
class="ruby-identifier">java_platform?</span>
+        <span class="ruby-keyword">if</span> <span class="ruby-constant">JRUBY_VERSION</span>
<span class="ruby-operator">=~</span> <span class="ruby-regexp">/^1.7/</span>
+          [<span class="ruby-ivar">@java_terminal</span>.<span class="ruby-identifier">get_width</span>,
<span class="ruby-ivar">@java_terminal</span>.<span class="ruby-identifier">get_height</span>]
+        <span class="ruby-keyword">else</span>
+          [<span class="ruby-ivar">@java_terminal</span>.<span class="ruby-identifier">getTerminalWidth</span>,
<span class="ruby-ivar">@java_terminal</span>.<span class="ruby-identifier">getTerminalHeight</span>]
+        <span class="ruby-keyword">end</span>
+      <span class="ruby-keyword">else</span>
+        <span class="ruby-constant">Win32</span><span class="ruby-operator">::</span><span
class="ruby-constant">Console</span>.<span class="ruby-identifier">new</span>(<span
class="ruby-constant">Win32</span><span class="ruby-operator">::</span><span
class="ruby-constant">Console</span><span class="ruby-operator">::</span><span
class="ruby-constant">STD_OUTPUT_HANDLE</span>).<span class="ruby-constant">MaxWindow</span>
+      <span class="ruby-keyword">end</span>
+    <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">$stdout</span>.<span
class="ruby-identifier">isatty</span>
+      <span class="ruby-keyword">if</span> <span class="ruby-regexp">/solaris/</span>
<span class="ruby-operator">=~</span> <span class="ruby-constant">RUBY_PLATFORM</span>
<span class="ruby-keyword">and</span>
+        <span class="ruby-value">%x`stty`</span> <span class="ruby-operator">=~</span>
<span class="ruby-regexp">/\brows = (\d+).*\bcolumns = (\d+)/</span>
+        [<span class="ruby-node">$2</span>, <span class="ruby-node">$1</span>].<span
class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span
class="ruby-identifier">c</span><span class="ruby-operator">|</span>
<span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_i</span>
}
+      <span class="ruby-keyword">else</span>
+        <span class="ruby-value">%x`stty size 2&gt; /dev/null`</span>.<span
class="ruby-identifier">split</span>.<span class="ruby-identifier">map</span>
{ <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span
class="ruby-operator">|</span> <span class="ruby-identifier">x</span>.<span
class="ruby-identifier">to_i</span> }.<span class="ruby-identifier">reverse</span>
+      <span class="ruby-keyword">end</span>
+    <span class="ruby-keyword">else</span>
+      <span class="ruby-keyword">nil</span>
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">rescue</span> =<span class="ruby-operator">&gt;</span>
<span class="ruby-identifier">e</span>
+    <span class="ruby-keyword">nil</span>
+  <span class="ruby-keyword">end</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-c-output_cols" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">output_cols</span><span
+            class="method-args">()</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          <p>Return the number of columns in console or nil if unknown</p>
+          
+          
+
+          
+          <div class="method-source-code" id="output_cols-source">
+            <pre><span class="ruby-comment"># File lib/buildr/core/console.rb,
line 70</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">output_cols</span>
+  <span class="ruby-identifier">d</span> = <span class="ruby-identifier">console_dimensions</span>
+  <span class="ruby-identifier">d</span> <span class="ruby-operator">?</span>
<span class="ruby-identifier">d</span>[<span class="ruby-value">0</span>]
<span class="ruby-operator">:</span> <span class="ruby-keyword">nil</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-c-present_menu" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">present_menu</span><span
+            class="method-args">(header, options)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="present_menu-source">
+            <pre><span class="ruby-comment"># File lib/buildr/core/console.rb,
line 91</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">present_menu</span>(<span
class="ruby-identifier">header</span>, <span class="ruby-identifier">options</span>)
+  <span class="ruby-identifier">puts</span> <span class="ruby-identifier">header</span>
+  <span class="ruby-identifier">question_options</span> = {}
+  <span class="ruby-identifier">count</span> = <span class="ruby-value">1</span>
+  <span class="ruby-identifier">options</span>.<span class="ruby-identifier">each_pair</span>
<span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span
class="ruby-identifier">message</span>, <span class="ruby-identifier">result</span><span
class="ruby-operator">|</span>
+    <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{count}.
#{message}&quot;</span>
+    <span class="ruby-identifier">question_options</span>[<span class="ruby-identifier">count</span>.<span
class="ruby-identifier">to_s</span>] = <span class="ruby-identifier">result</span>
+    <span class="ruby-identifier">count</span> <span class="ruby-operator">+=</span>
<span class="ruby-value">1</span>
+  <span class="ruby-keyword">end</span>
+  <span class="ruby-identifier">ask</span>(<span class="ruby-identifier">question_options</span>)
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-c-use_color" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">use_color</span><span
+            class="method-args">()</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="use_color-source">
+            <pre><span class="ruby-comment"># File lib/buildr/core/console.rb,
line 21</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">use_color</span>
+  <span class="ruby-ivar">@use_color</span>.<span class="ruby-identifier">nil?</span>
<span class="ruby-operator">?</span> <span class="ruby-keyword">false</span>
<span class="ruby-operator">:</span> <span class="ruby-ivar">@use_color</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-c-use_color-3D" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">use_color=</span><span
+            class="method-args">(use_color)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="use_color-3D-source">
+            <pre><span class="ruby-comment"># File lib/buildr/core/console.rb,
line 25</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">use_color=</span>(<span
class="ruby-identifier">use_color</span>)
+  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span>
<span class="ruby-identifier">use_color</span> <span class="ruby-operator">&amp;&amp;</span>
<span class="ruby-operator">!</span><span class="ruby-identifier">setup_support</span>
+  <span class="ruby-ivar">@use_color</span> = <span class="ruby-identifier">use_color</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+    </section>
+  
+  </section>
+</main>
+
+
+<footer id="validator-badges" role="contentinfo">
+  <p><a href="http://validator.w3.org/check/referer">Validate</a>
+  <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
+  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a>
by <a href="http://deveiate.org">Michael Granger</a>.
+</footer>
+



Mime
View raw message