Added: dev/buildr/1.5.7/site/rdoc/Buildr/Checks.html ============================================================================== --- dev/buildr/1.5.7/site/rdoc/Buildr/Checks.html (added) +++ dev/buildr/1.5.7/site/rdoc/Buildr/Checks.html Sat Feb 16 02:53:28 2019 @@ -0,0 +1,237 @@ +<!DOCTYPE html> + +<html> +<head> +<meta charset="UTF-8"> + +<title>module Buildr::Checks - 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="module"> +<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="includes-section" class="nav-section"> + <h3>Included Modules</h3> + + <ul class="link-list"> + + + <li><a class="include" href="Extension.html">Buildr::Extension</a> + + + </ul> +</div> + + + <!-- Method Quickref --> +<div id="method-list-section" class="nav-section"> + <h3>Methods</h3> + + <ul class="link-list" role="directory"> + + <li ><a href="#method-i-check">#check</a> + + <li ><a href="#method-i-expectations">#expectations</a> + + </ul> +</div> + + </div> +</nav> + +<main role="main" aria-labelledby="module-Buildr::Checks"> + <h1 id="module-Buildr::Checks" class="module"> + module Buildr::Checks + </h1> + + <section class="description"> + +<p>Methods added to <a href="Project.html">Project</a> to allow checking the +build.</p> + + </section> + + + + + <section id="5Buntitled-5D" class="documentation-section"> + + + + + + + + + + <section id="public-instance-5Buntitled-5D-method-details" class="method-section"> + <header> + <h3>Public Instance Methods</h3> + </header> + + + <div id="method-i-check" class="method-detail "> + + + <div class="method-heading"> + <span class="method-callseq"> + check(description) { ... } + </span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + <div class="method-heading"> + <span class="method-callseq"> + check(subject, description) { ... } + </span> + + </div> + + + + <div class="method-description"> + + <p>Adds an expectation. The expectation is run against the project by the +check task, executed after packaging. You can access any package created by +the project.</p> + +<p>An expectation is written using a subject, description and block to +validate the expectation. For example:</p> + +<p>For example:</p> + +<pre class="ruby"><span class="ruby-identifier">check</span> <span class="ruby-identifier">package</span>(:<span class="ruby-identifier">jar</span>), <span class="ruby-string">"should exist"</span> <span class="ruby-keyword">do</span> + <span class="ruby-identifier">it</span>.<span class="ruby-identifier">should</span> <span class="ruby-identifier">exist</span> +<span class="ruby-keyword">end</span> +<span class="ruby-identifier">check</span> <span class="ruby-identifier">package</span>(:<span class="ruby-identifier">jar</span>), <span class="ruby-string">"should contain a manifest"</span> <span class="ruby-keyword">do</span> + <span class="ruby-identifier">it</span>.<span class="ruby-identifier">should</span> <span class="ruby-identifier">contain</span>(<span class="ruby-string">"META-INF/MANIFEST.MF"</span>) +<span class="ruby-keyword">end</span> +<span class="ruby-identifier">check</span> <span class="ruby-identifier">package</span>(:<span class="ruby-identifier">jar</span>).<span class="ruby-identifier">path</span>(<span class="ruby-string">"com/acme"</span>), <span class="ruby-string">"should contain classes"</span> <span class="ruby-keyword">do</span> + <span class="ruby-identifier">it</span>.<span class="ruby-identifier">should_not</span> <span class="ruby-identifier">be_empty</span> +<span class="ruby-keyword">end</span> +<span class="ruby-identifier">check</span> <span class="ruby-identifier">package</span>(:<span class="ruby-identifier">jar</span>).<span class="ruby-identifier">entry</span>(<span class="ruby-string">"META-INF/MANIFEST"</span>), <span class="ruby-string">"should be a recent license"</span> <span class="ruby-keyword">do</span> + <span class="ruby-identifier">it</span>.<span class="ruby-identifier">should</span> <span class="ruby-identifier">contain</span>(<span class="ruby-regexp">/Copyright (C) 2007/</span>) +<span class="ruby-keyword">end</span> +</pre> + +<p>If you omit the subject, the project is used as the subject. If you omit +the description, the subject is used as description.</p> + +<p>During development you can write placeholder expectations by omitting the +block. This will simply report the expectation as pending.</p> + + + + + <div class="method-source-code" id="check-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/checks.rb, line 188</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">check</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) + <span class="ruby-constant">Buildr</span>.<span class="ruby-identifier">ensure_rspec</span>(<span class="ruby-string">'check() method invoked in buildfile'</span>) + <span class="ruby-identifier">expectations</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Checks</span><span class="ruby-operator">::</span><span class="ruby-constant">Expectation</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-i-expectations" class="method-detail "> + + + <div class="method-heading"> + <span class="method-callseq"> + expectations() → Expectation* + </span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + + <div class="method-description"> + + <p>Returns a list of expectations (see <a +href="Checks.html#method-i-check">check</a>).</p> + + + + + <div class="method-source-code" id="expectations-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/checks.rb, line 197</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">expectations</span>() + <span class="ruby-ivar">@expectations</span> <span class="ruby-operator">||=</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.7/site/rdoc/Buildr/Checks/Expectation.html ============================================================================== --- dev/buildr/1.5.7/site/rdoc/Buildr/Checks/Expectation.html (added) +++ dev/buildr/1.5.7/site/rdoc/Buildr/Checks/Expectation.html Sat Feb 16 02:53:28 2019 @@ -0,0 +1,328 @@ +<!DOCTYPE html> + +<html> +<head> +<meta charset="UTF-8"> + +<title>class Buildr::Checks::Expectation - 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> + + <div id="includes-section" class="nav-section"> + <h3>Included Modules</h3> + + <ul class="link-list"> + + + <li><span class="include">::RSpec::Matchers</span> + + + </ul> +</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-new">::new</a> + + <li ><a href="#method-i-run_against">#run_against</a> + + </ul> +</div> + + </div> +</nav> + +<main role="main" aria-labelledby="class-Buildr::Checks::Expectation"> + <h1 id="class-Buildr::Checks::Expectation" class="class"> + class Buildr::Checks::Expectation + </h1> + + <section class="description"> + +<p>An expectation has subject, description and block. The expectation is +validated by running the block, and can access the subject from the method +it. The description is used for reporting.</p> + +<p>The expectation is run by calling <a +href="Expectation.html#method-i-run_against">run_against</a>. You can share +expectations by running them against different projects (or any other +context for that matter).</p> + +<p>If the subject is missing, it is set to the argument of <a +href="Expectation.html#method-i-run_against">run_against</a>, typically the +project itself. If the description is missing, it is set from the project. +If the block is missing, the default behavior prints âPendingâ followed by +the description. You can use this to write place holders and fill them +later.</p> + + </section> + + + + + <section id="5Buntitled-5D" class="documentation-section"> + + + + + + + + <section class="attribute-method-details" class="method-section"> + <header> + <h3>Attributes</h3> + </header> + + + <div id="attribute-i-block" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">block</span><span + class="attribute-access-type">[R]</span> + </div> + + <div class="method-description"> + + + + </div> + </div> + + <div id="attribute-i-description" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">description</span><span + class="attribute-access-type">[R]</span> + </div> + + <div class="method-description"> + + + + </div> + </div> + + <div id="attribute-i-subject" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">subject</span><span + class="attribute-access-type">[R]</span> + </div> + + <div class="method-description"> + + + + </div> + </div> + + </section> + + + + <section id="public-class-5Buntitled-5D-method-details" class="method-section"> + <header> + <h3>Public Class Methods</h3> + </header> + + + <div id="method-c-new" class="method-detail "> + + + <div class="method-heading"> + <span class="method-callseq"> + initialize(subject, description?) { .... } + </span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + <div class="method-heading"> + <span class="method-callseq"> + initialize(description?) { .... } + </span> + + </div> + + + + <div class="method-description"> + + <p>First argument is subject (returned from it method), second argument is +description. If you omit the description, it will be set from the subject. +If you omit the subject, it will be set from the object passed to +run_against.</p> + + + + + <div class="method-source-code" id="new-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/checks.rb, line 84</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) + <span class="ruby-ivar">@description</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">pop</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">String</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">last</span> + <span class="ruby-ivar">@subject</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">shift</span> + <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">'Expecting subject followed by description, and either one is optional. Not quite sure what to do with this list of arguments.'</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span> + <span class="ruby-ivar">@block</span> = <span class="ruby-identifier">block</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">klass</span><span class="ruby-operator">|</span> <span class="ruby-identifier">info</span> <span class="ruby-node">"Pending: #{description}"</span> } +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + </section> + + <section id="public-instance-5Buntitled-5D-method-details" class="method-section"> + <header> + <h3>Public Instance Methods</h3> + </header> + + + <div id="method-i-run_against" class="method-detail "> + + + <div class="method-heading"> + <span class="method-callseq"> + run_against(context) + </span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + + <div class="method-description"> + + <p>Runs this expectation against the context object. The context object is +different from the subject, but used as the subject if no subject specified +(i.e. returned from the it method).</p> + +<p>This method creates a new context object modeled after the context +argument, but a separate object used strictly for running this expectation, +and used only once. The context object will pass methods to the context +argument, so you can call any method, e.g. package(:jar).</p> + +<p>It also adds all matchers defined in <a href="../../Buildr.html">Buildr</a> +and <a href="../RSpec.html">RSpec</a>, and two additional methods:</p> +<ul><li> +<p>it() â Returns the subject.</p> +</li><li> +<p>description() â Returns the description.</p> +</li></ul> + + + + + <div class="method-source-code" id="run_against-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/checks.rb, line 104</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">run_against</span>(<span class="ruby-identifier">context</span>) + <span class="ruby-identifier">subject</span> = <span class="ruby-ivar">@subject</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">context</span> + <span class="ruby-identifier">description</span> = <span class="ruby-ivar">@description</span> <span class="ruby-operator">?</span> <span class="ruby-node">"#{subject} #{@description}"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">subject</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-comment"># Define anonymous class and load it with:</span> + <span class="ruby-comment"># - All instance methods defined in context, so we can pass method calls to the context.</span> + <span class="ruby-comment"># - it() method to return subject, description() method to return description.</span> + <span class="ruby-comment"># - All matchers defined by Buildr and RSpec.</span> + <span class="ruby-identifier">klass</span> = <span class="ruby-constant">Class</span>.<span class="ruby-identifier">new</span> + <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-keyword">do</span> + <span class="ruby-identifier">context</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">instance_methods</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">method</span><span class="ruby-operator">|</span> + <span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">method</span>) { <span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span> <span class="ruby-identifier">context</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">method</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) } <span class="ruby-keyword">unless</span> <span class="ruby-identifier">instance_methods</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">method</span>) + <span class="ruby-keyword">end</span> + <span class="ruby-identifier">define_method</span>(<span class="ruby-value">:it</span>) { <span class="ruby-identifier">subject</span> } + <span class="ruby-identifier">define_method</span>(<span class="ruby-value">:description</span>) { <span class="ruby-identifier">description</span> } + <span class="ruby-identifier">include</span> <span class="ruby-operator">::</span><span class="ruby-constant">RSpec</span><span class="ruby-operator">::</span><span class="ruby-constant">Matchers</span> + <span class="ruby-identifier">include</span> <span class="ruby-constant">Matchers</span> + <span class="ruby-keyword">end</span> + + <span class="ruby-comment"># Run the expectation. We only print the expectation name when tracing (to know they all ran),</span> + <span class="ruby-comment"># or when we get a failure.</span> + <span class="ruby-keyword">begin</span> + <span class="ruby-identifier">trace</span> <span class="ruby-identifier">description</span> + <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&</span><span class="ruby-ivar">@block</span> + <span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span>=<span class="ruby-operator">></span><span class="ruby-identifier">error</span> + <span class="ruby-identifier">raise</span> <span class="ruby-identifier">error</span>.<span class="ruby-identifier">exception</span>(<span class="ruby-node">"#{description}\n#{error}"</span>).<span class="ruby-identifier">tap</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">wrapped</span><span class="ruby-operator">|</span> <span class="ruby-identifier">wrapped</span>.<span class="ruby-identifier">set_backtrace</span>(<span class="ruby-identifier">error</span>.<span class="ruby-identifier">backtrace</span>) } + <span class="ruby-keyword">end</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.7/site/rdoc/Buildr/Cobertura.html ============================================================================== --- dev/buildr/1.5.7/site/rdoc/Buildr/Cobertura.html (added) +++ dev/buildr/1.5.7/site/rdoc/Buildr/Cobertura.html Sat Feb 16 02:53:28 2019 @@ -0,0 +1,354 @@ +<!DOCTYPE html> + +<html> +<head> +<meta charset="UTF-8"> + +<title>module Buildr::Cobertura - 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="module"> +<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"> + + + + + <!-- Method Quickref --> +<div id="method-list-section" class="nav-section"> + <h3>Methods</h3> + + <ul class="link-list" role="directory"> + + <li ><a href="#method-c-data_file">::data_file</a> + + <li ><a href="#method-c-dependencies">::dependencies</a> + + <li ><a href="#method-c-report_dir">::report_dir</a> + + <li ><a href="#method-c-report_to">::report_to</a> + + <li ><a href="#method-c-version">::version</a> + + </ul> +</div> + + </div> +</nav> + +<main role="main" aria-labelledby="module-Buildr::Cobertura"> + <h1 id="module-Buildr::Cobertura" class="module"> + module Buildr::Cobertura + </h1> + + <section class="description"> + +<p>Provides the <code>cobertura:html</code>, <code>cobertura:xml</code> and +<code>cobertura:check</code> tasks. Require explicitly using <code>require +"buildr/java/cobertura"</code>.</p> + +<p>You can generate cobertura reports for a single project using the project +name as prefix:</p> + +<pre>project_name:cobertura:html</pre> + +<p>You can also specify which classes to include/exclude from instrumentation +by passing a class name regexp to the <code>cobertura.include</code> or +<code>cobertura.exclude</code> methods.</p> + +<pre>define 'someModule' do + cobertura.include 'some.package.*' + cobertura.include /some.(foo|bar).*/ + cobertura.exclude 'some.foo.util.SimpleUtil' + cobertura.exclude /*.Const(ants)?/i +end</pre> + +<p>You can also specify the top level directory to which the top level +cobertura tasks will generate reports by setting the value of the +<code>Buildr::Cobertura.report_dir</code> configuration parameter.</p> + + </section> + + + + + <section id="5Buntitled-5D" class="documentation-section"> + + + + + + <section class="constants-list"> + <header> + <h3>Constants</h3> + </header> + <dl> + + <dt id="REQUIRES">REQUIRES + + <dd> + + + <dt id="VERSION">VERSION + + <dd> + + + </dl> + </section> + + + + <section class="attribute-method-details" class="method-section"> + <header> + <h3>Attributes</h3> + </header> + + + <div id="attribute-c-report_dir" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">report_dir</span><span + class="attribute-access-type">[W]</span> + </div> + + <div class="method-description"> + + + + </div> + </div> + + </section> + + + + <section id="public-class-5Buntitled-5D-method-details" class="method-section"> + <header> + <h3>Public Class Methods</h3> + </header> + + + <div id="method-c-data_file" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">data_file</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="data_file-source"> + <pre><span class="ruby-comment"># File lib/buildr/java/cobertura.rb, line 78</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">data_file</span> + <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-node">"#{report_dir}.ser"</span>) +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <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"> + + + + + + + <div class="method-source-code" id="dependencies-source"> + <pre><span class="ruby-comment"># File lib/buildr/java/cobertura.rb, line 60</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">dependencies</span> + <span class="ruby-keyword">if</span> (<span class="ruby-constant">VersionRequirement</span>.<span class="ruby-identifier">create</span>(<span class="ruby-string">'>=1.9.1'</span>).<span class="ruby-identifier">satisfied_by?</span>(<span class="ruby-constant">REQUIRES</span>.<span class="ruby-identifier">cobertura</span>.<span class="ruby-identifier">version</span>)) + [<span class="ruby-value">:asm</span>, <span class="ruby-value">:asm_tree</span>].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-constant">REQUIRES</span>[<span class="ruby-identifier">s</span>] = <span class="ruby-string">'3.0'</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">REQUIRES</span>[<span class="ruby-identifier">s</span>].<span class="ruby-identifier">selected?</span> } + <span class="ruby-keyword">end</span> + + <span class="ruby-constant">REQUIRES</span>.<span class="ruby-identifier">artifacts</span> +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-c-report_dir" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">report_dir</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="report_dir-source"> + <pre><span class="ruby-comment"># File lib/buildr/java/cobertura.rb, line 70</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">report_dir</span> + <span class="ruby-ivar">@report_dir</span> <span class="ruby-operator">||</span> <span class="ruby-string">"reports/cobertura"</span> +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-c-report_to" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">report_to</span><span + class="method-args">(file = nil)</span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + <div class="method-description"> + + + + + + + <div class="method-source-code" id="report_to-source"> + <pre><span class="ruby-comment"># File lib/buildr/java/cobertura.rb, line 74</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">report_to</span>(<span class="ruby-identifier">file</span> = <span class="ruby-keyword">nil</span>) + <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-operator">*</span>[<span class="ruby-identifier">report_dir</span>, <span class="ruby-identifier">file</span>.<span class="ruby-identifier">to_s</span>].<span class="ruby-identifier">compact</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"> + + + + + + + <div class="method-source-code" id="version-source"> + <pre><span class="ruby-comment"># File lib/buildr/java/cobertura.rb, line 46</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">'cobertura'</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.7/site/rdoc/Buildr/Cobertura/CoberturaCheck.html ============================================================================== --- dev/buildr/1.5.7/site/rdoc/Buildr/Cobertura/CoberturaCheck.html (added) +++ dev/buildr/1.5.7/site/rdoc/Buildr/Cobertura/CoberturaCheck.html Sat Feb 16 02:53:28 2019 @@ -0,0 +1,188 @@ +<!DOCTYPE html> + +<html> +<head> +<meta charset="UTF-8"> + +<title>class Buildr::Cobertura::CoberturaCheck - 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> + + + + + </div> +</nav> + +<main role="main" aria-labelledby="class-Buildr::Cobertura::CoberturaCheck"> + <h1 id="class-Buildr::Cobertura::CoberturaCheck" class="class"> + class Buildr::Cobertura::CoberturaCheck + </h1> + + <section class="description"> + + </section> + + + + + <section id="5Buntitled-5D" class="documentation-section"> + + + + + + + + <section class="attribute-method-details" class="method-section"> + <header> + <h3>Attributes</h3> + </header> + + + <div id="attribute-i-branch_rate" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">branch_rate</span><span + class="attribute-access-type">[RW]</span> + </div> + + <div class="method-description"> + + + + </div> + </div> + + <div id="attribute-i-line_rate" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">line_rate</span><span + class="attribute-access-type">[RW]</span> + </div> + + <div class="method-description"> + + + + </div> + </div> + + <div id="attribute-i-package_branch_rate" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">package_branch_rate</span><span + class="attribute-access-type">[RW]</span> + </div> + + <div class="method-description"> + + + + </div> + </div> + + <div id="attribute-i-package_line_rate" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">package_line_rate</span><span + class="attribute-access-type">[RW]</span> + </div> + + <div class="method-description"> + + + + </div> + </div> + + <div id="attribute-i-total_branch_rate" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">total_branch_rate</span><span + class="attribute-access-type">[RW]</span> + </div> + + <div class="method-description"> + + + + </div> + </div> + + <div id="attribute-i-total_line_rate" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">total_line_rate</span><span + class="attribute-access-type">[RW]</span> + </div> + + <div class="method-description"> + + + + </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.7/site/rdoc/Buildr/Cobertura/CoberturaExtension.html ============================================================================== --- dev/buildr/1.5.7/site/rdoc/Buildr/Cobertura/CoberturaExtension.html (added) +++ dev/buildr/1.5.7/site/rdoc/Buildr/Cobertura/CoberturaExtension.html Sat Feb 16 02:53:28 2019 @@ -0,0 +1,95 @@ +<!DOCTYPE html> + +<html> +<head> +<meta charset="UTF-8"> + +<title>module Buildr::Cobertura::CoberturaExtension - 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="module"> +<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> +</nav> + +<main role="main" aria-labelledby="module-Buildr::Cobertura::CoberturaExtension"> + <h1 id="module-Buildr::Cobertura::CoberturaExtension" class="module"> + module Buildr::Cobertura::CoberturaExtension + </h1> + + <section class="description"> + + </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.7/site/rdoc/Buildr/Cobertura/CoberturaExtension/File.html ============================================================================== --- dev/buildr/1.5.7/site/rdoc/Buildr/Cobertura/CoberturaExtension/File.html (added) +++ dev/buildr/1.5.7/site/rdoc/Buildr/Cobertura/CoberturaExtension/File.html Sat Feb 16 02:53:28 2019 @@ -0,0 +1,95 @@ +<!DOCTYPE html> + +<html> +<head> +<meta charset="UTF-8"> + +<title>module Buildr::Cobertura::CoberturaExtension::File - 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="module"> +<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> +</nav> + +<main role="main" aria-labelledby="module-Buildr::Cobertura::CoberturaExtension::File"> + <h1 id="module-Buildr::Cobertura::CoberturaExtension::File" class="module"> + module Buildr::Cobertura::CoberturaExtension::File + </h1> + + <section class="description"> + + </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.7/site/rdoc/Buildr/Cobertura/File.html ============================================================================== --- dev/buildr/1.5.7/site/rdoc/Buildr/Cobertura/File.html (added) +++ dev/buildr/1.5.7/site/rdoc/Buildr/Cobertura/File.html Sat Feb 16 02:53:28 2019 @@ -0,0 +1,95 @@ +<!DOCTYPE html> + +<html> +<head> +<meta charset="UTF-8"> + +<title>module Buildr::Cobertura::File - 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="module"> +<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> +</nav> + +<main role="main" aria-labelledby="module-Buildr::Cobertura::File"> + <h1 id="module-Buildr::Cobertura::File" class="module"> + module Buildr::Cobertura::File + </h1> + + <section class="description"> + + </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.7/site/rdoc/Buildr/Compile.html ============================================================================== --- dev/buildr/1.5.7/site/rdoc/Buildr/Compile.html (added) +++ dev/buildr/1.5.7/site/rdoc/Buildr/Compile.html Sat Feb 16 02:53:28 2019 @@ -0,0 +1,264 @@ +<!DOCTYPE html> + +<html> +<head> +<meta charset="UTF-8"> + +<title>module Buildr::Compile - 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="module"> +<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="includes-section" class="nav-section"> + <h3>Included Modules</h3> + + <ul class="link-list"> + + + <li><a class="include" href="Extension.html">Buildr::Extension</a> + + + </ul> +</div> + + + <!-- Method Quickref --> +<div id="method-list-section" class="nav-section"> + <h3>Methods</h3> + + <ul class="link-list" role="directory"> + + <li ><a href="#method-i-compile">#compile</a> + + <li ><a href="#method-i-resources">#resources</a> + + </ul> +</div> + + </div> +</nav> + +<main role="main" aria-labelledby="module-Buildr::Compile"> + <h1 id="module-Buildr::Compile" class="module"> + module Buildr::Compile + </h1> + + <section class="description"> + +<p>Methods added to <a href="Project.html">Project</a> for compiling, handling +of resources and generating source documentation.</p> + + </section> + + + + + <section id="5Buntitled-5D" class="documentation-section"> + + + + + + + + + + <section id="public-instance-5Buntitled-5D-method-details" class="method-section"> + <header> + <h3>Public Instance Methods</h3> + </header> + + + <div id="method-i-compile" class="method-detail "> + + + <div class="method-heading"> + <span class="method-callseq"> + compile(*sources) → CompileTask + </span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + <div class="method-heading"> + <span class="method-callseq"> + compile(*sources) { |task| .. } → CompileTask + </span> + + </div> + + + + <div class="method-description"> + + <p>The compile task does what its name suggests. This method returns the +project's <a href="CompileTask.html">CompileTask</a>. It also accepts a +list of source directories and files to compile (equivalent to calling <a +href="CompileTask.html#method-i-from">Buildr::CompileTask#from</a> on the +task), and a block for any post-compilation work.</p> + +<p>The compile task attempts to guess which compiler to use. For example, if +it finds any <a href="../Java.html">Java</a> files in the src/main/java +directory, it will use the <a href="../Java.html">Java</a> compiler and +create class files in the target/classes directory.</p> + +<p>You can also configure it yourself by telling it which compiler to use, +pointing it as source directories and chooing a different target directory.</p> + +<p>For example:</p> + +<pre class="ruby"><span class="ruby-comment"># Include Log4J and the api sub-project artifacts.</span> +<span class="ruby-identifier">compile</span>.<span class="ruby-identifier">with</span> <span class="ruby-string">'log4j:log4j:jar:1.2'</span>, <span class="ruby-identifier">project</span>(<span class="ruby-string">'api'</span>) +<span class="ruby-comment"># Include Apt-generated source files.</span> +<span class="ruby-identifier">compile</span>.<span class="ruby-identifier">from</span> <span class="ruby-identifier">apt</span> +<span class="ruby-comment"># For JavaC, force target compatibility.</span> +<span class="ruby-identifier">compile</span>.<span class="ruby-identifier">options</span>.<span class="ruby-identifier">source</span> = <span class="ruby-string">'1.6'</span> +<span class="ruby-comment"># Run the OpenJPA bytecode enhancer after compilation.</span> +<span class="ruby-identifier">compile</span> { <span class="ruby-identifier">open_jpa_enhance</span> } +<span class="ruby-comment"># Pick a given compiler.</span> +<span class="ruby-identifier">compile</span>.<span class="ruby-identifier">using</span>(:<span class="ruby-identifier">scalac</span>).<span class="ruby-identifier">from</span>(<span class="ruby-string">'src/scala'</span>) +</pre> + +<p>For more information, see <a href="CompileTask.html">CompileTask</a>.</p> + + + + + <div class="method-source-code" id="compile-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 546</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">compile</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">sources</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) + <span class="ruby-identifier">task</span>(<span class="ruby-string">'compile'</span>).<span class="ruby-identifier">from</span>(<span class="ruby-identifier">sources</span>).<span class="ruby-identifier">enhance</span> <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-i-resources" class="method-detail "> + + + <div class="method-heading"> + <span class="method-callseq"> + resources(*prereqs) → ResourcesTask + </span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + <div class="method-heading"> + <span class="method-callseq"> + resources(*prereqs) { |task| .. } → ResourcesTask + </span> + + </div> + + + + <div class="method-description"> + + <p>The resources task is executed by the compile task to copy resources files +from the resource directory into the target directory. By default the +resources task copies files from the src/main/resources into the +target/resources directory.</p> + +<p>This method returns the project's resources task. It also accepts a +list of prerequisites and a block, used to enhance the resources task.</p> + +<p>Resources files are copied and filtered (see <a +href="Filter.html">Buildr::Filter</a> for more information). The default +filter uses the profile properties for the current environment.</p> + +<p>For example:</p> + +<pre class="ruby"><span class="ruby-identifier">resources</span>.<span class="ruby-identifier">from</span> <span class="ruby-identifier">_</span>(<span class="ruby-string">'src/etc'</span>) +<span class="ruby-identifier">resources</span>.<span class="ruby-identifier">filter</span>.<span class="ruby-identifier">using</span> <span class="ruby-string">'Copyright'</span>=<span class="ruby-operator">></span><span class="ruby-string">'Acme Inc, 2007'</span> +</pre> + +<p>Or in your profiles.yaml file:</p> + +<pre>common: + Copyright: Acme Inc, 2007</pre> + + + + + <div class="method-source-code" id="resources-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 571</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">resources</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">prereqs</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) + <span class="ruby-identifier">task</span>(<span class="ruby-string">'resources'</span>).<span class="ruby-identifier">enhance</span> <span class="ruby-identifier">prereqs</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</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.7/site/rdoc/Buildr/CompileTask.html ============================================================================== --- dev/buildr/1.5.7/site/rdoc/Buildr/CompileTask.html (added) +++ dev/buildr/1.5.7/site/rdoc/Buildr/CompileTask.html Sat Feb 16 02:53:28 2019 @@ -0,0 +1,537 @@ +<!DOCTYPE html> + +<html> +<head> +<meta charset="UTF-8"> + +<title>class Buildr::CompileTask - 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">Rake::Task + +</div> + + + + <!-- Method Quickref --> +<div id="method-list-section" class="nav-section"> + <h3>Methods</h3> + + <ul class="link-list" role="directory"> + + <li ><a href="#method-i-compiler">#compiler</a> + + <li ><a href="#method-i-from">#from</a> + + <li ><a href="#method-i-into">#into</a> + + <li ><a href="#method-i-language">#language</a> + + <li ><a href="#method-i-packaging">#packaging</a> + + <li ><a href="#method-i-using">#using</a> + + <li ><a href="#method-i-with">#with</a> + + </ul> +</div> + + </div> +</nav> + +<main role="main" aria-labelledby="class-Buildr::CompileTask"> + <h1 id="class-Buildr::CompileTask" class="class"> + class Buildr::CompileTask + </h1> + + <section class="description"> + +<p><a href="Compile.html">Compile</a> task.</p> + +<p>Attempts to determine which compiler to use based on the project layout, +for example, uses the Javac compiler if it finds any .java files in +src/main/java. You can also select the compiler explicitly:</p> + +<pre class="ruby"><span class="ruby-identifier">compile</span>.<span class="ruby-identifier">using</span>(:<span class="ruby-identifier">scalac</span>) +</pre> + +<p>Accepts multiple source directories that are invoked as prerequisites +before compilation. You can pass a task as a source directory:</p> + +<pre class="ruby"><span class="ruby-identifier">compile</span>.<span class="ruby-identifier">from</span>(<span class="ruby-identifier">apt</span>) +</pre> + +<p>Likewise, dependencies are invoked before compiling. All dependencies are +evaluated as artifacts, so you can pass artifact specifications and even +projects:</p> + +<pre class="ruby"><span class="ruby-identifier">compile</span>.<span class="ruby-identifier">with</span>(<span class="ruby-string">'module1.jar'</span>, <span class="ruby-string">'log4j:log4j:jar:1.0'</span>, <span class="ruby-identifier">project</span>(<span class="ruby-string">'foo'</span>)) +</pre> + +<p>Creates a file task for the target directory, so executing that task as a +dependency will execute the compile task first.</p> + +<p><a href="Compiler.html">Compiler</a> options are inherited form a parent +task, e.g. the foo:bar:compile task inherits its options from the +foo:compile task. Even if foo is an empty project that does not compile any +classes itself, you can use it to set compile options for all its +sub-projects.</p> + +<p>Normally, the project will take care of setting the source and target +directory, and you only need to set options and dependencies. See <a +href="Compile.html#method-i-compile">Buildr::Compile#compile</a>.</p> + + </section> + + + + + <section id="5Buntitled-5D" class="documentation-section"> + + + + + + + + <section class="attribute-method-details" class="method-section"> + <header> + <h3>Attributes</h3> + </header> + + + <div id="attribute-i-dependencies" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">dependencies</span><span + class="attribute-access-type">[RW]</span> + </div> + + <div class="method-description"> + + <p>Compilation dependencies.</p> + + </div> + </div> + + <div id="attribute-i-options" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">options</span><span + class="attribute-access-type">[R]</span> + </div> + + <div class="method-description"> + + <p>Returns the compiler options.</p> + + </div> + </div> + + <div id="attribute-i-project" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">project</span><span + class="attribute-access-type">[R]</span> + </div> + + <div class="method-description"> + + <p>The project this task belongs to.</p> + + </div> + </div> + + <div id="attribute-i-sources" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">sources</span><span + class="attribute-access-type">[RW]</span> + </div> + + <div class="method-description"> + + <p>Source directories.</p> + + </div> + </div> + + <div id="attribute-i-target" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">target</span><span + class="attribute-access-type">[R]</span> + </div> + + <div class="method-description"> + + <p>The target directory for the compiled code.</p> + + </div> + </div> + + <div id="attribute-i-usage" class="method-detail"> + <div class="method-heading attribute-method-heading"> + <span class="method-name">usage</span><span + class="attribute-access-type">[R]</span> + </div> + + <div class="method-description"> + + <p>The usage, one of :main or :test.</p> + + </div> + </div> + + </section> + + + + <section id="public-instance-5Buntitled-5D-method-details" class="method-section"> + <header> + <h3>Public Instance Methods</h3> + </header> + + + <div id="method-i-compiler" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">compiler</span><span + class="method-args">()</span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + <div class="method-description"> + + <p>Returns the compiler if known. The compiler is either automatically +selected based on existing source directories (e.g. src/main/java), or by +requesting a specific compiler (see <a +href="CompileTask.html#method-i-using">using</a>).</p> + + + + + <div class="method-source-code" id="compiler-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 336</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">compiler</span> + <span class="ruby-identifier">guess_compiler</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@compiler</span> + <span class="ruby-ivar">@compiler</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@compiler</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_sym</span> +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-i-from" class="method-detail "> + + + <div class="method-heading"> + <span class="method-callseq"> + from(*sources) → self + </span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + + <div class="method-description"> + + <p>Adds source directories and files to compile, and returns self.</p> + +<p>For example:</p> + +<pre class="ruby"><span class="ruby-identifier">compile</span>.<span class="ruby-identifier">from</span>(<span class="ruby-string">'src/java'</span>).<span class="ruby-identifier">into</span>(<span class="ruby-string">'classes'</span>).<span class="ruby-identifier">with</span>(<span class="ruby-string">'module1.jar'</span>) +</pre> + + + + + <div class="method-source-code" id="from-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 274</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">from</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">sources</span>) + <span class="ruby-ivar">@sources</span> <span class="ruby-operator">|=</span> <span class="ruby-identifier">sources</span>.<span class="ruby-identifier">flatten</span> + <span class="ruby-identifier">guess_compiler</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@compiler</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">sources</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">any?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">source</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">source</span>.<span class="ruby-identifier">to_s</span>) } + <span class="ruby-keyword">self</span> +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-i-into" class="method-detail "> + + + <div class="method-heading"> + <span class="method-callseq"> + into(path) → self + </span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + + <div class="method-description"> + + <p>Sets the target directory and returns self. This will also set the compile +task as a prerequisite to a file task on the target directory.</p> + +<p>For example:</p> + +<pre class="ruby"><span class="ruby-identifier">compile</span>(<span class="ruby-identifier">src_dir</span>).<span class="ruby-identifier">into</span>(<span class="ruby-identifier">target_dir</span>).<span class="ruby-identifier">with</span>(<span class="ruby-identifier">artifacts</span>) +</pre> + +<p>Both compile.invoke and file(target_dir).invoke will compile the source +files.</p> + + + + + <div class="method-source-code" id="into-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 310</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">into</span>(<span class="ruby-identifier">path</span>) + <span class="ruby-ivar">@target</span> = <span class="ruby-identifier">file</span>(<span class="ruby-identifier">path</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">enhance</span>([<span class="ruby-keyword">self</span>]) <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@target</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">path</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-keyword">self</span> +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-i-language" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">language</span><span + class="method-args">()</span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + <div class="method-description"> + + <p>Returns the compiled language, if known. See also <a +href="CompileTask.html#method-i-compiler">compiler</a>.</p> + + + + + <div class="method-source-code" id="language-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 342</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">language</span> + <span class="ruby-identifier">compiler</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@compiler</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">language</span> +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-i-packaging" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">packaging</span><span + class="method-args">()</span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + <div class="method-description"> + + <p>Returns the default packaging type for this compiler, if known.</p> + + + + + <div class="method-source-code" id="packaging-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 347</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">packaging</span> + <span class="ruby-identifier">compiler</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@compiler</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">packaging</span> +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-i-using" class="method-detail "> + + + <div class="method-heading"> + <span class="method-callseq"> + using(options) → self + </span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + + <div class="method-description"> + + <p>Sets the compiler options from a hash and returns self. Can also be used +to select the compiler.</p> + +<p>For example:</p> + +<pre class="ruby"><span class="ruby-identifier">compile</span>.<span class="ruby-identifier">using</span>(:<span class="ruby-identifier">warnings=</span><span class="ruby-operator">></span><span class="ruby-keyword">true</span>, :<span class="ruby-identifier">source=</span><span class="ruby-operator">></span><span class="ruby-string">'1.5'</span>) +<span class="ruby-identifier">compile</span>.<span class="ruby-identifier">using</span>(:<span class="ruby-identifier">scala</span>) +</pre> + + + + + <div class="method-source-code" id="using-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 327</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">using</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) + <span class="ruby-identifier">args</span>.<span class="ruby-identifier">pop</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">send</span> <span class="ruby-node">"#{key}="</span>, <span class="ruby-identifier">value</span> } <span class="ruby-keyword">if</span> <span class="ruby-constant">Hash</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">last</span> + <span class="ruby-keyword">self</span>.<span class="ruby-identifier">compiler</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">pop</span> <span class="ruby-keyword">until</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span> + <span class="ruby-keyword">self</span> +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-i-with" class="method-detail "> + + + <div class="method-heading"> + <span class="method-callseq"> + with(*artifacts) → self + </span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + + <div class="method-description"> + + <p>Adds files and artifacts as dependencies, and returns self.</p> + +<p>Calls artifacts on the arguments, so you can pass artifact specifications, +tasks, projects, etc. Use this rather than setting the dependencies array +directly.</p> + +<p>For example:</p> + +<pre class="ruby"><span class="ruby-identifier">compile</span>.<span class="ruby-identifier">with</span>(<span class="ruby-string">'module1.jar'</span>, <span class="ruby-string">'log4j:log4j:jar:1.0'</span>, <span class="ruby-identifier">project</span>(<span class="ruby-string">'foo'</span>)) +</pre> + + + + + <div class="method-source-code" id="with-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 293</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">specs</span>) + <span class="ruby-ivar">@dependencies</span> <span class="ruby-operator">|=</span> <span class="ruby-constant">Buildr</span>.<span class="ruby-identifier">artifacts</span>(<span class="ruby-identifier">specs</span>.<span class="ruby-identifier">flatten</span>).<span class="ruby-identifier">uniq</span> + <span class="ruby-keyword">self</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.7/site/rdoc/Buildr/Compiler.html ============================================================================== --- dev/buildr/1.5.7/site/rdoc/Buildr/Compiler.html (added) +++ dev/buildr/1.5.7/site/rdoc/Buildr/Compiler.html Sat Feb 16 02:53:28 2019 @@ -0,0 +1,297 @@ +<!DOCTYPE html> + +<html> +<head> +<meta charset="UTF-8"> + +<title>module Buildr::Compiler - 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="module"> +<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"> + + + + + <!-- Method Quickref --> +<div id="method-list-section" class="nav-section"> + <h3>Methods</h3> + + <ul class="link-list" role="directory"> + + <li ><a href="#method-c-3C-3C">::<<</a> + + <li ><a href="#method-c-add">::add</a> + + <li ><a href="#method-c-compilers">::compilers</a> + + <li ><a href="#method-c-has-3F">::has?</a> + + <li ><a href="#method-c-select">::select</a> + + </ul> +</div> + + </div> +</nav> + +<main role="main" aria-labelledby="module-Buildr::Compiler"> + <h1 id="module-Buildr::Compiler" class="module"> + module Buildr::Compiler + </h1> + + <section class="description"> + +<p>The underlying compiler used by <a href="CompileTask.html">CompileTask</a>. +To add a new compiler, extend Compiler::Base and add your compiler using:</p> + +<pre class="ruby"><span class="ruby-constant">Buildr</span><span class="ruby-operator">::</span><span class="ruby-constant">Compiler</span>.<span class="ruby-identifier">add</span> <span class="ruby-constant">MyCompiler</span> +</pre> + + </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-3C-3C" class="method-detail method-alias"> + + <div class="method-heading"> + <span class="method-name"><<</span><span + class="method-args">(compiler)</span> + + </div> + + + <div class="method-description"> + + + + + + + </div> + + + + + <div class="aliases"> + Alias for: <a href="Compiler.html#method-c-add">add</a> + </div> + + </div> + + + <div id="method-c-add" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">add</span><span + class="method-args">(compiler)</span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + <div class="method-description"> + + <p>Adds a compiler to the list of supported compiler.</p> + +<p>For example:</p> + +<pre class="ruby"><span class="ruby-constant">Buildr</span><span class="ruby-operator">::</span><span class="ruby-constant">Compiler</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Buildr</span><span class="ruby-operator">::</span><span class="ruby-constant">Javac</span> +</pre> + + + + + <div class="method-source-code" id="add-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 39</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">compiler</span>) + <span class="ruby-ivar">@compilers</span> <span class="ruby-operator">||=</span> [] + <span class="ruby-ivar">@compilers</span> <span class="ruby-operator">|=</span> [<span class="ruby-identifier">compiler</span>] +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + <div class="aliases"> + Also aliased as: <a href="Compiler.html#method-c-3C-3C"><<</a> + </div> + + + + </div> + + + <div id="method-c-compilers" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">compilers</span><span + class="method-args">()</span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + <div class="method-description"> + + <p>Returns a list of available compilers.</p> + + + + + <div class="method-source-code" id="compilers-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 46</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">compilers</span> + <span class="ruby-ivar">@compilers</span> <span class="ruby-operator">||=</span> [] +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-c-has-3F" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">has?</span><span + class="method-args">(name)</span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + <div class="method-description"> + + <p>Returns true if the specified compiler exists.</p> + + + + + <div class="method-source-code" id="has-3F-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 26</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">has?</span>(<span class="ruby-identifier">name</span>) + <span class="ruby-identifier">compilers</span>.<span class="ruby-identifier">any?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">compiler</span><span class="ruby-operator">|</span> <span class="ruby-identifier">compiler</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span> } +<span class="ruby-keyword">end</span></pre> + </div> + + </div> + + + + + </div> + + + <div id="method-c-select" class="method-detail "> + + <div class="method-heading"> + <span class="method-name">select</span><span + class="method-args">(name)</span> + + <span class="method-click-advice">click to toggle source</span> + + </div> + + + <div class="method-description"> + + <p>Select a compiler by its name.</p> + + + + + <div class="method-source-code" id="select-source"> + <pre><span class="ruby-comment"># File lib/buildr/core/compile.rb, line 31</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier">select</span>(<span class="ruby-identifier">name</span>) + <span class="ruby-identifier">compilers</span>.<span class="ruby-identifier">detect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">compiler</span><span class="ruby-operator">|</span> <span class="ruby-identifier">compiler</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</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> +