You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2017/04/02 23:37:44 UTC
svn commit: r19013 [37/44] - in /dev/buildr/1.5.2: ./ 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...
Added: dev/buildr/1.5.2/site/rdoc/File.html
==============================================================================
--- dev/buildr/1.5.2/site/rdoc/File.html (added)
+++ dev/buildr/1.5.2/site/rdoc/File.html Sun Apr 2 23:37:43 2017
@@ -0,0 +1,188 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>class 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="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">IO
+
+</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-move">::move</a>
+
+ <li ><a href="#method-c-rm_rf">::rm_rf</a>
+
+ </ul>
+</div>
+
+ </div>
+</nav>
+
+<main role="main" aria-labelledby="class-File">
+ <h1 id="class-File" class="class">
+ class File
+ </h1>
+
+ <section class="description">
+
+ </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-move" class="method-detail ">
+
+ <div class="method-heading">
+ <span class="method-name">move</span><span
+ class="method-args">(source, dest)</span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+ <div class="method-description">
+
+
+
+
+
+
+ <div class="method-source-code" id="move-source">
+ <pre><span class="ruby-comment"># File lib/buildr/packaging/zip.rb, line 22</span>
+<span class="ruby-keyword">def</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">move</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">dest</span>)
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">move</span> <span class="ruby-identifier">source</span>, <span class="ruby-identifier">dest</span>
+<span class="ruby-keyword">end</span></pre>
+ </div>
+
+ </div>
+
+
+
+
+ </div>
+
+
+ <div id="method-c-rm_rf" class="method-detail ">
+
+ <div class="method-heading">
+ <span class="method-name">rm_rf</span><span
+ class="method-args">(path)</span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+ <div class="method-description">
+
+
+
+
+
+
+ <div class="method-source-code" id="rm_rf-source">
+ <pre><span class="ruby-comment"># File lib/buildr/packaging/zip.rb, line 26</span>
+<span class="ruby-keyword">def</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">rm_rf</span>(<span class="ruby-identifier">path</span>)
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span> <span class="ruby-identifier">path</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.2/site/rdoc/FileUtils.html
==============================================================================
--- dev/buildr/1.5.2/site/rdoc/FileUtils.html (added)
+++ dev/buildr/1.5.2/site/rdoc/FileUtils.html Sun Apr 2 23:37:43 2017
@@ -0,0 +1,193 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>module FileUtils - 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="extends-section" class="nav-section">
+ <h3>Extended With Modules</h3>
+
+ <ul class="link-list">
+
+
+ <li><span class="extend">FFI::Library</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-i-sh">#sh</a>
+
+ </ul>
+</div>
+
+ </div>
+</nav>
+
+<main role="main" aria-labelledby="module-FileUtils">
+ <h1 id="module-FileUtils" class="module">
+ module FileUtils
+ </h1>
+
+ <section class="description">
+
+ </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-sh" class="method-detail ">
+
+ <div class="method-heading">
+ <span class="method-name">sh</span><span
+ class="method-args">(*cmd, &block)</span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+ <div class="method-description">
+
+ <p>code “borrowed” directly from <a href="Rake.html">Rake</a></p>
+
+
+
+
+ <div class="method-source-code" id="sh-source">
+ <pre><span class="ruby-comment"># File lib/buildr/core/util.rb, line 362</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">sh</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">cmd</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
+ <span class="ruby-identifier">options</span> = (<span class="ruby-constant">Hash</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">last</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">pop</span> <span class="ruby-operator">:</span> {}
+ <span class="ruby-keyword">unless</span> <span class="ruby-identifier">block_given?</span>
+ <span class="ruby-identifier">show_command</span> = <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">" "</span>)
+ <span class="ruby-identifier">show_command</span> = <span class="ruby-identifier">show_command</span>[<span class="ruby-value">0</span>,<span class="ruby-value">42</span>] <span class="ruby-operator">+</span> <span class="ruby-string">"..."</span>
+
+ <span class="ruby-identifier">block</span> = <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">ok</span>, <span class="ruby-identifier">status</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">ok</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">fail</span> <span class="ruby-node">"Command failed with status (#{status.exitstatus}): [#{show_command}]"</span>
+ }
+ <span class="ruby-keyword">end</span>
+ <span class="ruby-keyword">if</span> <span class="ruby-constant">RakeFileUtils</span>.<span class="ruby-identifier">verbose_flag</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Rake</span><span class="ruby-operator">::</span><span class="ruby-constant">FileUtilsExt</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT</span>
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:verbose</span>] = <span class="ruby-keyword">false</span>
+ <span class="ruby-keyword">else</span>
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:verbose</span>] <span class="ruby-operator">||=</span> <span class="ruby-constant">RakeFileUtils</span>.<span class="ruby-identifier">verbose_flag</span>
+ <span class="ruby-keyword">end</span>
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:noop</span>] <span class="ruby-operator">||=</span> <span class="ruby-constant">RakeFileUtils</span>.<span class="ruby-identifier">nowrite_flag</span>
+ <span class="ruby-identifier">rake_check_options</span> <span class="ruby-identifier">options</span>, <span class="ruby-value">:noop</span>, <span class="ruby-value">:verbose</span>
+ <span class="ruby-identifier">rake_output_message</span> <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">" "</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:verbose</span>]
+ <span class="ruby-keyword">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:noop</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-comment"># Ruby uses forward slashes regardless of platform,</span>
+ <span class="ruby-comment"># unfortunately cd c:/some/path fails on Windows</span>
+ <span class="ruby-identifier">pwd</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">%r{/}</span>, <span class="ruby-string">'\'</span>)
+ <span class="ruby-identifier">cd</span> = <span class="ruby-node">"cd /d \"#{pwd}\" && "</span>
+ <span class="ruby-keyword">else</span>
+ <span class="ruby-identifier">cd</span> = <span class="ruby-node">"cd '#{Dir.pwd}' && "</span>
+ <span class="ruby-keyword">end</span>
+ <span class="ruby-identifier">args</span> = <span class="ruby-keyword">if</span> <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">cmd</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">size</span>] <span class="ruby-keyword">else</span> [] <span class="ruby-keyword">end</span>
+
+ <span class="ruby-identifier">res</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-operator">&&</span> <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
+ <span class="ruby-identifier">__native_system__</span>(<span class="ruby-node">"#{cd} call #{cmd.first}"</span>)
+ <span class="ruby-keyword">else</span>
+ <span class="ruby-identifier">arg_str</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-node">"'#{a}'"</span> }
+ <span class="ruby-identifier">__native_system__</span>(<span class="ruby-identifier">cd</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">+</span> <span class="ruby-string">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">arg_str</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">' '</span>))
+ <span class="ruby-keyword">end</span>
+ <span class="ruby-identifier">status</span> = <span class="ruby-constant">Buildr</span><span class="ruby-operator">::</span><span class="ruby-constant">ProcessStatus</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">res</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>, <span class="ruby-identifier">res</span>) <span class="ruby-comment"># KLUDGE</span>
+ <span class="ruby-identifier">block</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">res</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>, <span class="ruby-identifier">status</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.2/site/rdoc/FileUtils/FFI.html
==============================================================================
--- dev/buildr/1.5.2/site/rdoc/FileUtils/FFI.html (added)
+++ dev/buildr/1.5.2/site/rdoc/FileUtils/FFI.html Sun Apr 2 23:37:43 2017
@@ -0,0 +1,95 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>module FileUtils::FFI - 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-FileUtils::FFI">
+ <h1 id="module-FileUtils::FFI" class="module">
+ module FileUtils::FFI
+ </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.2/site/rdoc/FileUtils/FFI/Platform.html
==============================================================================
--- dev/buildr/1.5.2/site/rdoc/FileUtils/FFI/Platform.html (added)
+++ dev/buildr/1.5.2/site/rdoc/FileUtils/FFI/Platform.html Sun Apr 2 23:37:43 2017
@@ -0,0 +1,95 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>module FileUtils::FFI::Platform - 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-FileUtils::FFI::Platform">
+ <h1 id="module-FileUtils::FFI::Platform" class="module">
+ module FileUtils::FFI::Platform
+ </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.2/site/rdoc/Gem.html
==============================================================================
--- dev/buildr/1.5.2/site/rdoc/Gem.html (added)
+++ dev/buildr/1.5.2/site/rdoc/Gem.html Sun Apr 2 23:37:43 2017
@@ -0,0 +1,95 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>module Gem - 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-Gem">
+ <h1 id="module-Gem" class="module">
+ module Gem
+ </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.2/site/rdoc/Gem/Version.html
==============================================================================
--- dev/buildr/1.5.2/site/rdoc/Gem/Version.html (added)
+++ dev/buildr/1.5.2/site/rdoc/Gem/Version.html Sun Apr 2 23:37:43 2017
@@ -0,0 +1,157 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>class Gem::Version - 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-i-version-3D">#version=</a>
+
+ </ul>
+</div>
+
+ </div>
+</nav>
+
+<main role="main" aria-labelledby="class-Gem::Version">
+ <h1 id="class-Gem::Version" class="class">
+ class Gem::Version
+ </h1>
+
+ <section class="description">
+
+ </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-version-3D" class="method-detail ">
+
+ <div class="method-heading">
+ <span class="method-name">version=</span><span
+ class="method-args">(version)</span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+ <div class="method-description">
+
+
+
+
+
+
+ <div class="method-source-code" id="version-3D-source">
+ <pre><span class="ruby-comment"># File lib/buildr/packaging/version_requirement.rb, line 22</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">version=</span>(<span class="ruby-identifier">version</span>)
+ <span class="ruby-ivar">@version</span> = <span class="ruby-identifier">version</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span>
+
+ <span class="ruby-comment"># re-prime @segments</span>
+ <span class="ruby-ivar">@segments</span> = <span class="ruby-keyword">nil</span>
+ <span class="ruby-identifier">segments</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.2/site/rdoc/Hash.html
==============================================================================
--- dev/buildr/1.5.2/site/rdoc/Hash.html (added)
+++ dev/buildr/1.5.2/site/rdoc/Hash.html Sun Apr 2 23:37:43 2017
@@ -0,0 +1,317 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>class Hash - 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-from_java_properties">::from_java_properties</a>
+
+ <li ><a href="#method-i-except">#except</a>
+
+ <li ><a href="#method-i-only">#only</a>
+
+ <li ><a href="#method-i-to_java_properties">#to_java_properties</a>
+
+ </ul>
+</div>
+
+ </div>
+</nav>
+
+<main role="main" aria-labelledby="class-Hash">
+ <h1 id="class-Hash" class="class">
+ class Hash
+ </h1>
+
+ <section class="description">
+
+ </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-from_java_properties" class="method-detail ">
+
+
+ <div class="method-heading">
+ <span class="method-callseq">
+ from_java_properties(string)
+ </span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+
+ <div class="method-description">
+
+ <p>Returns a hash from a string in the <a href="Java.html">Java</a> properties
+file format. For example:</p>
+
+<pre>str = 'foo=bar\nbaz=fab'
+Hash.from_properties(str)
+=> { 'foo'=>'bar', 'baz'=>'fab' }.to_properties</pre>
+
+
+
+
+ <div class="method-source-code" id="from_java_properties-source">
+ <pre><span class="ruby-comment"># File lib/buildr/core/util.rb, line 224</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">from_java_properties</span>(<span class="ruby-identifier">string</span>)
+ <span class="ruby-identifier">hash</span> = {}
+ <span class="ruby-identifier">input_stream</span> = <span class="ruby-constant">Java</span>.<span class="ruby-identifier">java</span>.<span class="ruby-identifier">io</span>.<span class="ruby-constant">StringBufferInputStream</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">string</span>)
+ <span class="ruby-identifier">java_properties</span> = <span class="ruby-constant">Java</span>.<span class="ruby-identifier">java</span>.<span class="ruby-identifier">util</span>.<span class="ruby-constant">Properties</span>.<span class="ruby-identifier">new</span>
+ <span class="ruby-identifier">java_properties</span>.<span class="ruby-identifier">load</span> <span class="ruby-identifier">input_stream</span>
+ <span class="ruby-identifier">keys</span> = <span class="ruby-identifier">java_properties</span>.<span class="ruby-identifier">keySet</span>.<span class="ruby-identifier">iterator</span>
+ <span class="ruby-keyword">while</span> <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">hasNext</span>
+ <span class="ruby-comment"># Calling key.next in JRuby returns a java.lang.String, behaving as a Ruby string and life is good.</span>
+ <span class="ruby-comment"># MRI, unfortunately, treats next() like the interface says returning an object that's not a String,</span>
+ <span class="ruby-comment"># and the Hash doesn't work the way we need it to. Unfortunately, we can call toString on MRI's object,</span>
+ <span class="ruby-comment"># but not on the JRuby one; calling to_s on the JRuby object returns what we need, but ... you guessed it.</span>
+ <span class="ruby-comment"># So this seems like the one hack to unite them both.</span>
+ <span class="ruby-comment">#key = Java.java.lang.String.valueOf(keys.next.to_s)</span>
+ <span class="ruby-identifier">key</span> = <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">next</span>
+ <span class="ruby-identifier">key</span> = <span class="ruby-identifier">key</span>.<span class="ruby-identifier">toString</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">String</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">key</span>
+ <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">java_properties</span>.<span class="ruby-identifier">getProperty</span>(<span class="ruby-identifier">key</span>)
+ <span class="ruby-keyword">end</span>
+ <span class="ruby-identifier">hash</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-except" class="method-detail ">
+
+
+ <div class="method-heading">
+ <span class="method-callseq">
+ except(keys*) → hash
+ </span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+
+ <div class="method-description">
+
+ <p>Returns a new hash without the specified keys.</p>
+
+<p>For example:</p>
+
+<pre>{ :a=>1, :b=>2, :c=>3, :d=>4 }.except(:a, :c)
+=> { :b=>2, :d=>4 }</pre>
+
+
+
+
+ <div class="method-source-code" id="except-source">
+ <pre><span class="ruby-comment"># File lib/buildr/core/util.rb, line 267</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">except</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span>)
+ (<span class="ruby-keyword">self</span>.<span class="ruby-identifier">keys</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">keys</span>).<span class="ruby-identifier">inject</span>({}) { <span class="ruby-operator">|</span><span class="ruby-identifier">hash</span>, <span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">key</span>=<span class="ruby-operator">></span><span class="ruby-keyword">self</span>[<span class="ruby-identifier">key</span>]) }
+<span class="ruby-keyword">end</span></pre>
+ </div>
+
+ </div>
+
+
+
+
+ </div>
+
+
+ <div id="method-i-only" class="method-detail ">
+
+
+ <div class="method-heading">
+ <span class="method-callseq">
+ only(keys*) → hash
+ </span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+
+ <div class="method-description">
+
+ <p>Returns a new hash with only the specified keys.</p>
+
+<p>For example:</p>
+
+<pre>{ :a=>1, :b=>2, :c=>3, :d=>4 }.only(:a, :c)
+=> { :a=>1, :c=>3 }</pre>
+
+
+
+
+ <div class="method-source-code" id="only-source">
+ <pre><span class="ruby-comment"># File lib/buildr/core/util.rb, line 254</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">only</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">keys</span>)
+ <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">inject</span>({}) { <span class="ruby-operator">|</span><span class="ruby-identifier">hash</span>, <span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">key</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">key</span>=<span class="ruby-operator">></span><span class="ruby-keyword">self</span>[<span class="ruby-identifier">key</span>]) <span class="ruby-operator">:</span> <span class="ruby-identifier">hash</span> }
+<span class="ruby-keyword">end</span></pre>
+ </div>
+
+ </div>
+
+
+
+
+ </div>
+
+
+ <div id="method-i-to_java_properties" class="method-detail ">
+
+
+ <div class="method-heading">
+ <span class="method-callseq">
+ to_java_properties → string
+ </span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+
+ <div class="method-description">
+
+ <p>Convert hash to string format used for <a href="Java.html">Java</a>
+properties file. For example:</p>
+
+<pre>{ 'foo'=>'bar', 'baz'=>'fab' }.to_properties
+=> foo=bar
+ baz=fab</pre>
+
+
+
+
+ <div class="method-source-code" id="to_java_properties-source">
+ <pre><span class="ruby-comment"># File lib/buildr/core/util.rb, line 278</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_java_properties</span>
+ <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">value</span> = <span class="ruby-keyword">self</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/[\t\r\n\f\]/</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">escape</span><span class="ruby-operator">|</span> <span class="ruby-string">"\\"</span> <span class="ruby-operator">+</span> {<span class="ruby-string">"\t"</span>=<span class="ruby-operator">></span><span class="ruby-string">"t"</span>, <span class="ruby-string">"\r"</span>=<span class="ruby-operator">></span><span class="ruby-string">"r"</span>, <span class="ruby-string">"\n"</span>=<span class="ruby-operator">></span><span class="ruby-string">"n"</span>, <span class="ruby-string">"\f"</span>=<span class="ruby-operator">></span><span class="ruby-string">"f"</span>, <span class="ruby-string">"\
\"</span>=<span class="ruby-operator">></span><span class="ruby-string">"\\"</span>}[<span class="ruby-identifier">escape</span>] }
+ <span class="ruby-node">"#{key}=#{value}"</span>
+ }.<span class="ruby-identifier">join</span>(<span class="ruby-string">"\n"</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.2/site/rdoc/Java.html
==============================================================================
--- dev/buildr/1.5.2/site/rdoc/Java.html (added)
+++ dev/buildr/1.5.2/site/rdoc/Java.html Sun Apr 2 23:37:43 2017
@@ -0,0 +1,398 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>module Java - 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="extends-section" class="nav-section">
+ <h3>Extended With Modules</h3>
+
+ <ul class="link-list">
+
+
+ <li><span class="extend">Package</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-classpath">::classpath</a>
+
+ <li ><a href="#method-c-load">::load</a>
+
+ <li ><a href="#method-c-loaded-3F">::loaded?</a>
+
+ </ul>
+</div>
+
+ </div>
+</nav>
+
+<main role="main" aria-labelledby="module-Java">
+ <h1 id="module-Java" class="module">
+ module Java
+ </h1>
+
+ <section class="description">
+
+<p>Base module for all things <a href="Java.html">Java</a>.</p>
+
+<p><a href="Buildr.html">Buildr</a> runs along side a JVM, using either RJB or
+JRuby. The <a href="Java.html">Java</a> module allows you to access <a
+href="Java.html">Java</a> classes and create <a href="Java.html">Java</a>
+objects.</p>
+
+<p><a href="Java.html">Java</a> classes are accessed as static methods on the
+<a href="Java.html">Java</a> module, for example:</p>
+
+<pre>str = Java.java.lang.String.new('hai!')
+str.toUpperCase
+=> 'HAI!'
+Java.java.lang.String.isInstance(str)
+=> true
+Java.com.sun.tools.javac.Main.compile(args)</pre>
+
+<p>The classpath attribute allows <a href="Buildr.html">Buildr</a> to add JARs
+and directories to the classpath, for example, we use it to load Ant and
+various Ant tasks, code generators, test frameworks, and so forth.</p>
+
+<p>When using an artifact specification, <a href="Buildr.html">Buildr</a> will
+automatically download and install the artifact before adding it to the
+classpath.</p>
+
+<p>For example, Ant is loaded as follows:</p>
+
+<pre class="ruby"><span class="ruby-constant">Java</span>.<span class="ruby-identifier">classpath</span> <span class="ruby-operator"><<</span> <span class="ruby-string">'org.apache.ant:ant:jar:1.7.0'</span>
+</pre>
+
+<p>Artifacts can only be downloaded after the Buildfile has loaded, giving it
+a chance to specify which remote repositories to use, so adding to
+classpath does not by itself load any libraries. You must call <a
+href="Java.html#method-c-load">::load</a> before accessing any <a
+href="Java.html">Java</a> classes to give <a href="Buildr.html">Buildr</a>
+a chance to load the libraries specified in the classpath.</p>
+
+<p>When building an extension, make sure to follow these rules:</p>
+<ol><li>
+<p>Add to the classpath when the extension is loaded (i.e. in module or class
+definition), so the first call to <a
+href="Java.html#method-c-load">::load</a> anywhere in the code will include
+the libraries you specify.</p>
+</li><li>
+<p>Call <a href="Java.html#method-c-load">::load</a> once before accessing any
+<a href="Java.html">Java</a> classes, allowing <a
+href="Buildr.html">Buildr</a> to set up the classpath.</p>
+</li><li>
+<p>Only call <a href="Java.html#method-c-load">::load</a> when invoked,
+otherwise you may end up loading the JVM with a partial classpath, or
+before all remote repositories are listed.</p>
+</li><li>
+<p>Check on a clean build with empty local repository.</p>
+</li></ol>
+
+<p><a href="Buildr.html">Buildr</a> runs along side a JVM, using either RJB or
+JRuby. The <a href="Java.html">Java</a> module allows you to access <a
+href="Java.html">Java</a> classes and create <a href="Java.html">Java</a>
+objects.</p>
+
+<p><a href="Java.html">Java</a> classes are accessed as static methods on the
+<a href="Java.html">Java</a> module, for example:</p>
+
+<pre>str = Java.java.lang.String.new('hai!')
+str.toUpperCase
+=> 'HAI!'
+Java.java.lang.String.isInstance(str)
+=> true
+Java.com.sun.tools.javac.Main.compile(args)</pre>
+
+<p>The classpath attribute allows <a href="Buildr.html">Buildr</a> to add JARs
+and directories to the classpath, for example, we use it to load Ant and
+various Ant tasks, code generators, test frameworks, and so forth.</p>
+
+<p>When using an artifact specification, <a href="Buildr.html">Buildr</a> will
+automatically download and install the artifact before adding it to the
+classpath.</p>
+
+<p>For example, Ant is loaded as follows:</p>
+
+<pre class="ruby"><span class="ruby-constant">Java</span>.<span class="ruby-identifier">classpath</span> <span class="ruby-operator"><<</span> <span class="ruby-string">'org.apache.ant:ant:jar:1.7.0'</span>
+</pre>
+
+<p>Artifacts can only be downloaded after the Buildfile has loaded, giving it
+a chance to specify which remote repositories to use, so adding to
+classpath does not by itself load any libraries. You must call <a
+href="Java.html#method-c-load">::load</a> before accessing any <a
+href="Java.html">Java</a> classes to give <a href="Buildr.html">Buildr</a>
+a chance to load the libraries specified in the classpath.</p>
+
+<p>When building an extension, make sure to follow these rules:</p>
+<ol><li>
+<p>Add to the classpath when the extension is loaded (i.e. in module or class
+definition), so the first call to <a
+href="Java.html#method-c-load">::load</a> anywhere in the code will include
+the libraries you specify.</p>
+</li><li>
+<p>Call <a href="Java.html#method-c-load">::load</a> once before accessing any
+<a href="Java.html">Java</a> classes, allowing <a
+href="Buildr.html">Buildr</a> to set up the classpath.</p>
+</li><li>
+<p>Only call <a href="Java.html#method-c-load">::load</a> when invoked,
+otherwise you may end up loading the JVM with a partial classpath, or
+before all remote repositories are listed.</p>
+</li><li>
+<p>Check on a clean build with empty local repository.</p>
+</li></ol>
+
+ </section>
+
+
+
+
+ <section id="5Buntitled-5D" class="documentation-section">
+
+
+
+
+
+ <section class="constants-list">
+ <header>
+ <h3>Constants</h3>
+ </header>
+ <dl>
+
+ <dt id="JRUBY_MIN_VERSION">JRUBY_MIN_VERSION
+
+ <dd><p>This version is the minimal version <a href="Buildr.html">Buildr</a> will
+support. Any older version of JRuby will raise an exception.</p>
+
+
+ </dl>
+ </section>
+
+
+
+
+
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
+ <header>
+ <h3>Public Class Methods</h3>
+ </header>
+
+
+ <div id="method-c-classpath" class="method-detail ">
+
+ <div class="method-heading">
+ <span class="method-name">classpath</span><span
+ class="method-args">()</span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+ <div class="method-description">
+
+ <p>Returns the classpath, an array listing directories, JAR files and
+artifacts. Use when loading the extension to add any additional libraries
+used by that extension.</p>
+
+<p>For example, Ant is loaded as follows:</p>
+
+<pre class="ruby"><span class="ruby-constant">Java</span>.<span class="ruby-identifier">classpath</span> <span class="ruby-operator"><<</span> <span class="ruby-string">'org.apache.ant:ant:jar:1.7.0'</span>
+</pre>
+
+
+
+
+ <div class="method-source-code" id="classpath-source">
+ <pre><span class="ruby-comment"># File lib/buildr/java/jruby.rb, line 74</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">classpath</span>
+ <span class="ruby-ivar">@classpath</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword">begin</span>
+ <span class="ruby-identifier">classpath</span> = []
+ <span class="ruby-keyword">class</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">classpath</span>
+
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">new_add</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
+ <span class="ruby-identifier">warn</span> <span class="ruby-string">'Java is already loaded'</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">Java</span>.<span class="ruby-identifier">loaded?</span>
+ <span class="ruby-identifier">send</span>(<span class="ruby-value">:old_add</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
+ <span class="ruby-keyword">end</span>
+
+ <span class="ruby-identifier">alias_method</span> <span class="ruby-value">:old_add</span>, <span class="ruby-value">:<<</span>
+ <span class="ruby-identifier">alias_method</span> <span class="ruby-value">:<<</span>, <span class="ruby-value">:new_add</span>
+ <span class="ruby-keyword">end</span>
+ <span class="ruby-identifier">classpath</span>
+ <span class="ruby-keyword">end</span>
+<span class="ruby-keyword">end</span></pre>
+ </div>
+
+ </div>
+
+
+
+
+ </div>
+
+
+ <div id="method-c-load" class="method-detail ">
+
+ <div class="method-heading">
+ <span class="method-name">load</span><span
+ class="method-args">()</span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+ <div class="method-description">
+
+ <p>Loads the JVM and all the libraries listed on the classpath. Call this
+method before accessing any <a href="Java.html">Java</a> class, but only
+call it from methods used in the build, giving the Buildfile a chance to
+load all extensions that append to the classpath and specify which remote
+repositories to use.</p>
+
+
+
+
+ <div class="method-source-code" id="load-source">
+ <pre><span class="ruby-comment"># File lib/buildr/java/jruby.rb, line 109</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">load</span>
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">self</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@loaded</span>
+
+ <span class="ruby-comment"># Adding jars to the jruby's $CLASSPATH should be the correct thing, however it</span>
+ <span class="ruby-comment"># seems like some tools require their jars on system class loader (javadoc, junit, etc)</span>
+ <span class="ruby-comment"># cp.each { |path| $CLASSPATH << path }</span>
+
+ <span class="ruby-comment"># Use system ClassLoader to add classpath</span>
+ <span class="ruby-identifier">sysloader</span> = <span class="ruby-identifier">java</span>.<span class="ruby-identifier">lang</span>.<span class="ruby-constant">ClassLoader</span>.<span class="ruby-identifier">getSystemClassLoader</span>
+ <span class="ruby-identifier">add_url_method</span> = <span class="ruby-identifier">java</span>.<span class="ruby-identifier">lang</span>.<span class="ruby-constant">Class</span>.<span class="ruby-identifier">forName</span>(<span class="ruby-string">'java.net.URLClassLoader'</span>).
+ <span class="ruby-identifier">getDeclaredMethod</span>(<span class="ruby-string">'addURL'</span>, [<span class="ruby-identifier">java</span>.<span class="ruby-identifier">net</span>.<span class="ruby-constant">URL</span>.<span class="ruby-identifier">java_class</span>].<span class="ruby-identifier">to_java</span>(<span class="ruby-identifier">java</span>.<span class="ruby-identifier">lang</span>.<span class="ruby-constant">Class</span>))
+ <span class="ruby-identifier">add_url_method</span>.<span class="ruby-identifier">setAccessible</span>(<span class="ruby-keyword">true</span>)
+ <span class="ruby-identifier">add_path</span> = <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span> <span class="ruby-identifier">add_url_method</span>.<span class="ruby-identifier">invoke</span>(<span class="ruby-identifier">sysloader</span>, [<span class="ruby-identifier">java</span>.<span class="ruby-identifier">io</span>.<span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>).<span class="ruby-identifier">toURI</span>.<span class="ruby-identifier">toURL</span>].<span class="ruby-identifier">to_java</span>(<span class="ruby-identifier">java</span>.<span class="ruby-identifier">net</span>.<span class="ruby-constant">URL</span>)) }
+
+ <span class="ruby-comment"># Most platforms requires tools.jar to be on the classpath.</span>
+ <span class="ruby-identifier">add_path</span>[<span class="ruby-identifier">tools_jar</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">tools_jar</span>
+
+ <span class="ruby-identifier">classpath</span>.<span class="ruby-identifier">map!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span> <span class="ruby-constant">Proc</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">path</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">path</span>.<span class="ruby-identifier">call</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">path</span> }
+ <span class="ruby-constant">Buildr</span>.<span class="ruby-identifier">artifacts</span>(<span class="ruby-identifier">classpath</span>).<span class="ruby-identifier">map</span>(<span class="ruby-operator">&</span><span class="ruby-value">:to_s</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">file</span>(<span class="ruby-identifier">path</span>).<span class="ruby-identifier">invoke</span>
+ <span class="ruby-identifier">add_path</span>[<span class="ruby-identifier">path</span>]
+ <span class="ruby-keyword">end</span>
+
+ <span class="ruby-ivar">@loaded</span> = <span class="ruby-keyword">true</span>
+ <span class="ruby-keyword">self</span>
+<span class="ruby-keyword">end</span></pre>
+ </div>
+
+ </div>
+
+
+
+
+ </div>
+
+
+ <div id="method-c-loaded-3F" class="method-detail ">
+
+ <div class="method-heading">
+ <span class="method-name">loaded?</span><span
+ class="method-args">()</span>
+
+ <span class="method-click-advice">click to toggle source</span>
+
+ </div>
+
+
+ <div class="method-description">
+
+ <p>Returns true if the JVM is loaded with all the libraries loaded on the
+classpath.</p>
+
+
+
+
+ <div class="method-source-code" id="loaded-3F-source">
+ <pre><span class="ruby-comment"># File lib/buildr/java/jruby.rb, line 92</span>
+<span class="ruby-keyword">def</span> <span class="ruby-identifier">loaded?</span>
+ <span class="ruby-ivar">@loaded</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>
+