Added: dev/buildr/1.5.0/site/rdoc/Buildr/IntellijIdea/IdeaModule.html
==============================================================================
--- dev/buildr/1.5.0/site/rdoc/Buildr/IntellijIdea/IdeaModule.html (added)
+++ dev/buildr/1.5.0/site/rdoc/Buildr/IntellijIdea/IdeaModule.html Sat Sep 17 
06:18:39 2016
@@ -0,0 +1,2046 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta charset="UTF-8">
+
+<title>class Buildr::IntellijIdea::IdeaModule - 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="IdeaFile.html">Buildr::IntellijIdea::IdeaFile</a>
+  
+</div>
+
+    
+    
+    <!-- Method Quickref -->
+<div id="method-list-section" class="nav-section">
+  <h3>Methods</h3>
+
+  <ul class="link-list" role="directory">
+    
+    <li class="calls-super" ><a href="#method-c-new">::new</a>
+    
+    <li ><a href="#method-i-add_ejb_facet">#add_ejb_facet</a>
+    
+    <li ><a href="#method-i-add_facet">#add_facet</a>
+    
+    <li ><a href="#method-i-add_gwt_facet">#add_gwt_facet</a>
+    
+    <li ><a href="#method-i-add_jpa_facet">#add_jpa_facet</a>
+    
+    <li ><a href="#method-i-add_jruby_facet">#add_jruby_facet</a>
+    
+    <li ><a href="#method-i-add_web_facet">#add_web_facet</a>
+    
+    <li ><a href="#method-i-base_document">#base_document</a>
+    
+    <li ><a href="#method-i-buildr_project-3D">#buildr_project=</a>
+    
+    <li ><a href="#method-i-default_components">#default_components</a>
+    
+    <li ><a href="#method-i-excluded_directories">#excluded_directories</a>
+    
+    <li ><a href="#method-i-extension">#extension</a>
+    
+    <li ><a href="#method-i-facet_component">#facet_component</a>
+    
+    <li ><a 
href="#method-i-generate_compile_output">#generate_compile_output</a>
+    
+    <li ><a href="#method-i-generate_content">#generate_content</a>
+    
+    <li ><a 
href="#method-i-generate_initial_order_entries">#generate_initial_order_entries</a>
+    
+    <li ><a href="#method-i-generate_lib">#generate_lib</a>
+    
+    <li ><a href="#method-i-generate_module_lib">#generate_module_lib</a>
+    
+    <li ><a 
href="#method-i-generate_project_dependency">#generate_project_dependency</a>
+    
+    <li ><a href="#method-i-initial_components">#initial_components</a>
+    
+    <li ><a href="#method-i-jar_path">#jar_path</a>
+    
+    <li ><a href="#method-i-jdk_version">#jdk_version</a>
+    
+    <li ><a href="#method-i-main_dependencies">#main_dependencies</a>
+    
+    <li ><a 
href="#method-i-main_dependency_details">#main_dependency_details</a>
+    
+    <li ><a 
href="#method-i-main_generated_resource_directories">#main_generated_resource_directories</a>
+    
+    <li ><a 
href="#method-i-main_generated_source_directories">#main_generated_source_directories</a>
+    
+    <li ><a href="#method-i-main_output_dir">#main_output_dir</a>
+    
+    <li ><a 
href="#method-i-main_resource_directories">#main_resource_directories</a>
+    
+    <li ><a 
href="#method-i-main_source_directories">#main_source_directories</a>
+    
+    <li ><a href="#method-i-module_root_component">#module_root_component</a>
+    
+    <li ><a 
href="#method-i-net_excluded_directories">#net_excluded_directories</a>
+    
+    <li ><a 
href="#method-i-relative_dir_inside_dir-3F">#relative_dir_inside_dir?</a>
+    
+    <li ><a href="#method-i-resolve_path">#resolve_path</a>
+    
+    <li ><a href="#method-i-skip_content-21">#skip_content!</a>
+    
+    <li ><a href="#method-i-skip_content-3F">#skip_content?</a>
+    
+    <li ><a href="#method-i-test_dependencies">#test_dependencies</a>
+    
+    <li ><a 
href="#method-i-test_dependency_details">#test_dependency_details</a>
+    
+    <li ><a 
href="#method-i-test_generated_resource_directories">#test_generated_resource_directories</a>
+    
+    <li ><a 
href="#method-i-test_generated_source_directories">#test_generated_source_directories</a>
+    
+    <li ><a href="#method-i-test_output_dir">#test_output_dir</a>
+    
+    <li ><a 
href="#method-i-test_resource_directories">#test_resource_directories</a>
+    
+    <li ><a 
href="#method-i-test_source_directories">#test_source_directories</a>
+    
+    <li ><a href="#method-i-url_for_path">#url_for_path</a>
+    
+  </ul>
+</div>
+
+  </div>
+</nav>
+
+<main role="main" aria-labelledby="class-Buildr::IntellijIdea::IdeaModule">
+  <h1 id="class-Buildr::IntellijIdea::IdeaModule" class="class">
+    class Buildr::IntellijIdea::IdeaModule
+  </h1>
+
+  <section class="description">
+    
+<p><a href="IdeaModule.html">IdeaModule</a> represents an .iml file</p>
+
+  </section>
+
+  
+  
+  
+  <section id="5Buntitled-5D" class="documentation-section">
+    
+
+    
+
+    
+    <section class="constants-list">
+      <header>
+        <h3>Constants</h3>
+      </header>
+      <dl>
+      
+        <dt id="DEFAULT_TYPE">DEFAULT_TYPE
+        
+        <dd>
+        
+      
+      </dl>
+    </section>
+    
+
+    
+    <section class="attribute-method-details" class="method-section">
+      <header>
+        <h3>Attributes</h3>
+      </header>
+
+      
+      <div id="attribute-i-facets" class="method-detail">
+        <div class="method-heading attribute-method-heading">
+          <span class="method-name">facets</span><span
+            class="attribute-access-type">[R]</span>
+        </div>
+
+        <div class="method-description">
+        
+        
+        
+        </div>
+      </div>
+      
+      <div id="attribute-i-group" class="method-detail">
+        <div class="method-heading attribute-method-heading">
+          <span class="method-name">group</span><span
+            class="attribute-access-type">[RW]</span>
+        </div>
+
+        <div class="method-description">
+        
+        
+        
+        </div>
+      </div>
+      
+      <div id="attribute-i-jdk_version" class="method-detail">
+        <div class="method-heading attribute-method-heading">
+          <span class="method-name">jdk_version</span><span
+            class="attribute-access-type">[W]</span>
+        </div>
+
+        <div class="method-description">
+        
+        
+        
+        </div>
+      </div>
+      
+      <div id="attribute-i-main_output_dir" class="method-detail">
+        <div class="method-heading attribute-method-heading">
+          <span class="method-name">main_output_dir</span><span
+            class="attribute-access-type">[W]</span>
+        </div>
+
+        <div class="method-description">
+        
+        
+        
+        </div>
+      </div>
+      
+      <div id="attribute-i-test_output_dir" class="method-detail">
+        <div class="method-heading attribute-method-heading">
+          <span class="method-name">test_output_dir</span><span
+            class="attribute-access-type">[W]</span>
+        </div>
+
+        <div class="method-description">
+        
+        
+        
+        </div>
+      </div>
+      
+      <div id="attribute-i-type" class="method-detail">
+        <div class="method-heading attribute-method-heading">
+          <span class="method-name">type</span><span
+            class="attribute-access-type">[RW]</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-name">new</span><span
+            class="method-args">()</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+            <div class="method-calls-super">
+              Calls superclass method
+              <a 
href="IdeaFile.html#method-c-new">Buildr::IntellijIdea::IdeaFile.new</a>
+            </div>
+          
+
+          
+          <div class="method-source-code" id="new-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 195</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">initialize</span>
+  <span class="ruby-keyword">super</span>()
+  <span class="ruby-ivar">@type</span> = <span 
class="ruby-constant">DEFAULT_TYPE</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-add_ejb_facet" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">add_ejb_facet</span><span
+            class="method-args">(options = {})</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="add_ejb_facet-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 442</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">add_ejb_facet</span>(<span 
class="ruby-identifier">options</span> = {})
+  <span class="ruby-identifier">name</span> = <span 
class="ruby-identifier">options</span>[<span class="ruby-value">:name</span>] 
<span class="ruby-operator">||</span> <span 
class="ruby-string">&#39;EJB&#39;</span>
+
+  <span class="ruby-identifier">default_ejb_roots</span> = [<span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">iml</span>.<span 
class="ruby-identifier">main_source_directories</span>, <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">compile</span>.<span 
class="ruby-identifier">sources</span>, <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">resources</span>.<span 
class="ruby-identifier">sources</span>].<span 
class="ruby-identifier">flatten</span>.<span 
class="ruby-identifier">compact</span>
+  <span class="ruby-identifier">ejb_roots</span> = <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:ejb_roots</span>] <span class="ruby-operator">||</span> 
<span class="ruby-identifier">default_ejb_roots</span>
+
+  <span class="ruby-identifier">default_deployment_descriptors</span> = []
+  [<span class="ruby-string">&#39;ejb-jar.xml&#39;</span>, <span 
class="ruby-string">&#39;glassfish-ejb-jar.xml&#39;</span>, <span 
class="ruby-string">&#39;ibm-ejb-jar-bnd.xml&#39;</span>, <span 
class="ruby-string">&#39;ibm-ejb-jar-ext-pme.xml&#39;</span>, <span 
class="ruby-string">&#39;ibm-ejb-jar-ext.xml&#39;</span>,
+   <span class="ruby-string">&#39;jboss.xml&#39;</span>, <span 
class="ruby-string">&#39;jbosscmp-jdbc.xml&#39;</span>, <span 
class="ruby-string">&#39;openejb-jar.xml&#39;</span>, <span 
class="ruby-string">&#39;sun-cmp-mapping.xml&#39;</span>, <span 
class="ruby-string">&#39;sun-ejb-jar.xml&#39;</span>,
+   <span class="ruby-string">&#39;weblogic-cmp-rdbms-jar.xml&#39;</span>, 
<span class="ruby-string">&#39;weblogic-ejb-jar.xml&#39;</span>].
+    <span class="ruby-identifier">each</span> <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">descriptor</span><span class="ruby-operator">|</span>
+    <span class="ruby-identifier">ejb_roots</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">d</span> = <span 
class="ruby-node">&quot;#{path}/WEB-INF/#{descriptor}&quot;</span>
+      <span class="ruby-identifier">default_deployment_descriptors</span> 
<span class="ruby-operator">&lt;&lt;</span> <span 
class="ruby-identifier">d</span> <span class="ruby-keyword">if</span> <span 
class="ruby-constant">File</span>.<span 
class="ruby-identifier">exist?</span>(<span class="ruby-identifier">d</span>)
+      <span class="ruby-identifier">d</span> = <span 
class="ruby-node">&quot;#{path}/META-INF/#{descriptor}&quot;</span>
+      <span class="ruby-identifier">default_deployment_descriptors</span> 
<span class="ruby-operator">&lt;&lt;</span> <span 
class="ruby-identifier">d</span> <span class="ruby-keyword">if</span> <span 
class="ruby-constant">File</span>.<span 
class="ruby-identifier">exist?</span>(<span class="ruby-identifier">d</span>)
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span>
+  <span class="ruby-identifier">deployment_descriptors</span> = <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:deployment_descriptors</span>] <span 
class="ruby-operator">||</span> <span 
class="ruby-identifier">default_deployment_descriptors</span>
+
+  <span class="ruby-identifier">add_facet</span>(<span 
class="ruby-identifier">name</span>, <span 
class="ruby-string">&#39;ejb&#39;</span>) <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span 
class="ruby-identifier">facet</span><span class="ruby-operator">|</span>
+    <span class="ruby-identifier">facet</span>.<span 
class="ruby-identifier">configuration</span> <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">c</span><span class="ruby-operator">|</span>
+      <span class="ruby-identifier">c</span>.<span 
class="ruby-identifier">descriptors</span> <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span 
class="ruby-operator">|</span>
+        <span class="ruby-identifier">deployment_descriptors</span>.<span 
class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span 
class="ruby-operator">|</span><span 
class="ruby-identifier">deployment_descriptor</span><span 
class="ruby-operator">|</span>
+          <span class="ruby-identifier">d</span>.<span 
class="ruby-identifier">deploymentDescriptor</span> <span 
class="ruby-value">:name</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-constant">File</span>.<span 
class="ruby-identifier">basename</span>(<span 
class="ruby-identifier">deployment_descriptor</span>), <span 
class="ruby-value">:url</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">file_path</span>(<span 
class="ruby-identifier">deployment_descriptor</span>)
+        <span class="ruby-keyword">end</span>
+      <span class="ruby-keyword">end</span>
+      <span class="ruby-identifier">c</span>.<span 
class="ruby-identifier">ejbRoots</span> <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span 
class="ruby-operator">|</span>
+        <span class="ruby-identifier">ejb_roots</span>.<span 
class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span 
class="ruby-operator">|</span><span 
class="ruby-identifier">ejb_root</span><span class="ruby-operator">|</span>
+          <span class="ruby-identifier">e</span>.<span 
class="ruby-identifier">root</span> <span class="ruby-value">:url</span> =<span 
class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">file_path</span>(<span 
class="ruby-identifier">ejb_root</span>)
+        <span class="ruby-keyword">end</span>
+      <span class="ruby-keyword">end</span>
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-add_facet" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">add_facet</span><span
+            class="method-args">(name, type) { |xml| ... }</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="add_facet-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 277</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">add_facet</span>(<span 
class="ruby-identifier">name</span>, <span class="ruby-identifier">type</span>)
+  <span class="ruby-identifier">add_to_composite_component</span>(<span 
class="ruby-keyword">self</span>.<span class="ruby-identifier">facets</span>) 
<span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">xml</span><span class="ruby-operator">|</span>
+    <span class="ruby-identifier">xml</span>.<span 
class="ruby-identifier">facet</span>(<span class="ruby-value">:name</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">name</span>, <span class="ruby-value">:type</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">type</span>) <span class="ruby-keyword">do</span> <span 
class="ruby-operator">|</span><span class="ruby-identifier">xml</span><span 
class="ruby-operator">|</span>
+      <span class="ruby-keyword">yield</span> <span 
class="ruby-identifier">xml</span> <span class="ruby-keyword">if</span> <span 
class="ruby-identifier">block_given?</span>
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-add_gwt_facet" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">add_gwt_facet</span><span
+            class="method-args">(modules = {}, options = {})</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="add_gwt_facet-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 293</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">add_gwt_facet</span>(<span 
class="ruby-identifier">modules</span> = {}, <span 
class="ruby-identifier">options</span> = {})
+  <span class="ruby-identifier">name</span> = <span 
class="ruby-identifier">options</span>[<span class="ruby-value">:name</span>] 
<span class="ruby-operator">||</span> <span 
class="ruby-string">&#39;GWT&#39;</span>
+  <span class="ruby-identifier">detected_gwt_version</span> = <span 
class="ruby-keyword">nil</span>
+  <span class="ruby-keyword">if</span> <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:gwt_dev_artifact</span>]
+    <span class="ruby-identifier">a</span> = <span 
class="ruby-constant">Buildr</span>.<span 
class="ruby-identifier">artifact</span>(<span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:gwt_dev_artifact</span>])
+    <span class="ruby-identifier">a</span>.<span 
class="ruby-identifier">invoke</span>
+    <span class="ruby-identifier">detected_gwt_version</span> = <span 
class="ruby-identifier">a</span>.<span class="ruby-identifier">to_s</span>
+  <span class="ruby-keyword">end</span>
+
+  <span class="ruby-identifier">settings</span> =
+    {
+      <span class="ruby-value">:webFacet</span> =<span 
class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;Web&#39;</span>,
+      <span class="ruby-value">:compilerMaxHeapSize</span> =<span 
class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;512&#39;</span>,
+      <span class="ruby-value">:compilerParameters</span> =<span 
class="ruby-operator">&gt;</span> <span class="ruby-string">&#39;-draftCompile 
-localWorkers 2 -strict&#39;</span>,
+      <span class="ruby-value">:gwtScriptOutputStyle</span> =<span 
class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;PRETTY&#39;</span>
+    }.<span class="ruby-identifier">merge</span>(<span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:settings</span>] <span class="ruby-operator">||</span> {})
+
+  <span class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">compile</span>.<span 
class="ruby-identifier">dependencies</span>.<span 
class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span 
class="ruby-operator">|</span><span class="ruby-identifier">d</span><span 
class="ruby-operator">|</span>
+    <span class="ruby-keyword">if</span> <span 
class="ruby-identifier">d</span>.<span class="ruby-identifier">to_s</span> 
<span class="ruby-operator">=~</span> <span 
class="ruby-regexp">/\/com\/google\/gwt\/gwt-dev\/(.*)\//</span>
+      <span class="ruby-identifier">detected_gwt_version</span> = <span 
class="ruby-identifier">d</span>.<span class="ruby-identifier">to_s</span>
+      <span class="ruby-keyword">break</span>
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span> <span 
class="ruby-keyword">unless</span> <span 
class="ruby-identifier">detected_gwt_version</span>
+
+  <span class="ruby-keyword">if</span> <span 
class="ruby-identifier">detected_gwt_version</span>
+    <span class="ruby-identifier">settings</span>[<span 
class="ruby-value">:gwtSdkUrl</span>] = <span 
class="ruby-identifier">resolve_path</span>(<span 
class="ruby-constant">File</span>.<span 
class="ruby-identifier">dirname</span>(<span 
class="ruby-identifier">detected_gwt_version</span>))
+    <span class="ruby-identifier">settings</span>[<span 
class="ruby-value">:gwtSdkType</span>] = <span 
class="ruby-string">&#39;maven&#39;</span>
+  <span class="ruby-keyword">else</span>
+    <span class="ruby-identifier">settings</span>[<span 
class="ruby-value">:gwtSdkUrl</span>] = <span 
class="ruby-string">&#39;file://$GWT_TOOLS$&#39;</span>
+  <span class="ruby-keyword">end</span>
+
+  <span class="ruby-identifier">add_facet</span>(<span 
class="ruby-identifier">name</span>, <span 
class="ruby-string">&#39;gwt&#39;</span>) <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span 
class="ruby-operator">|</span>
+    <span class="ruby-identifier">f</span>.<span 
class="ruby-identifier">configuration</span> <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">c</span><span class="ruby-operator">|</span>
+      <span class="ruby-identifier">settings</span>.<span 
class="ruby-identifier">each_pair</span> <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, 
<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
+        <span class="ruby-identifier">c</span>.<span 
class="ruby-identifier">setting</span> <span class="ruby-value">:name</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">k</span>.<span class="ruby-identifier">to_s</span>, 
<span class="ruby-value">:value</span> =<span class="ruby-operator">&gt;</span> 
<span class="ruby-identifier">v</span>.<span class="ruby-identifier">to_s</span>
+      <span class="ruby-keyword">end</span>
+      <span class="ruby-identifier">c</span>.<span 
class="ruby-identifier">packaging</span> <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span 
class="ruby-operator">|</span>
+        <span class="ruby-identifier">modules</span>.<span 
class="ruby-identifier">each_pair</span> <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, 
<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
+          <span class="ruby-identifier">d</span>.<span 
class="ruby-identifier">module</span> <span class="ruby-value">:name</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">k</span>, <span class="ruby-value">:enabled</span> 
=<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">v</span>
+        <span class="ruby-keyword">end</span>
+      <span class="ruby-keyword">end</span>
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-add_jpa_facet" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">add_jpa_facet</span><span
+            class="method-args">(options = {})</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="add_jpa_facet-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 395</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">add_jpa_facet</span>(<span 
class="ruby-identifier">options</span> = {})
+  <span class="ruby-identifier">name</span> = <span 
class="ruby-identifier">options</span>[<span class="ruby-value">:name</span>] 
<span class="ruby-operator">||</span> <span 
class="ruby-string">&#39;JPA&#39;</span>
+
+  <span class="ruby-identifier">source_roots</span> = [<span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">iml</span>.<span 
class="ruby-identifier">main_source_directories</span>, <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">compile</span>.<span 
class="ruby-identifier">sources</span>, <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">resources</span>.<span 
class="ruby-identifier">sources</span>].<span 
class="ruby-identifier">flatten</span>.<span 
class="ruby-identifier">compact</span>
+  <span class="ruby-identifier">default_deployment_descriptors</span> = []
+  [<span class="ruby-string">&#39;orm.xml&#39;</span>, <span 
class="ruby-string">&#39;persistence.xml&#39;</span>].
+    <span class="ruby-identifier">each</span> <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">descriptor</span><span class="ruby-operator">|</span>
+    <span class="ruby-identifier">source_roots</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">d</span> = <span 
class="ruby-node">&quot;#{path}/META-INF/#{descriptor}&quot;</span>
+      <span class="ruby-identifier">default_deployment_descriptors</span> 
<span class="ruby-operator">&lt;&lt;</span> <span 
class="ruby-identifier">d</span> <span class="ruby-keyword">if</span> <span 
class="ruby-constant">File</span>.<span 
class="ruby-identifier">exist?</span>(<span class="ruby-identifier">d</span>)
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span>
+  <span class="ruby-identifier">deployment_descriptors</span> = <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:deployment_descriptors</span>] <span 
class="ruby-operator">||</span> <span 
class="ruby-identifier">default_deployment_descriptors</span>
+
+  <span class="ruby-identifier">factory_entry</span> = <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:factory_entry</span>] <span class="ruby-operator">||</span> 
<span class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>
+  <span class="ruby-identifier">validation_enabled</span> = <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:validation_enabled</span>].<span 
class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span 
class="ruby-keyword">true</span> <span class="ruby-operator">:</span> <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:validation_enabled</span>]
+  <span class="ruby-keyword">if</span> <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:provider_enabled</span>]
+    <span class="ruby-identifier">provider</span> = <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:provider_enabled</span>]
+  <span class="ruby-keyword">else</span>
+    <span class="ruby-identifier">provider</span> = <span 
class="ruby-keyword">nil</span>
+    {<span 
class="ruby-string">&#39;org.hibernate.ejb.HibernatePersistence&#39;</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;Hibernate&#39;</span>,
+     <span 
class="ruby-string">&#39;org.eclipse.persistence.jpa.PersistenceProvider&#39;</span>
 =<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;EclipseLink&#39;</span>}.
+      <span class="ruby-identifier">each_pair</span> <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">match</span>, <span 
class="ruby-identifier">candidate_provider</span><span 
class="ruby-operator">|</span>
+      <span class="ruby-identifier">deployment_descriptors</span>.<span 
class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span 
class="ruby-operator">|</span><span 
class="ruby-identifier">descriptor</span><span class="ruby-operator">|</span>
+        <span class="ruby-keyword">if</span> <span 
class="ruby-constant">File</span>.<span 
class="ruby-identifier">exist?</span>(<span 
class="ruby-identifier">descriptor</span>) <span 
class="ruby-operator">&amp;&amp;</span> <span 
class="ruby-node">/#{Regexp.escape(match)}/</span> <span 
class="ruby-operator">=~</span> <span class="ruby-constant">IO</span>.<span 
class="ruby-identifier">read</span>(<span 
class="ruby-identifier">descriptor</span>)
+          <span class="ruby-identifier">provider</span> = <span 
class="ruby-identifier">candidate_provider</span>
+        <span class="ruby-keyword">end</span>
+      <span class="ruby-keyword">end</span>
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span>
+
+  <span class="ruby-identifier">add_facet</span>(<span 
class="ruby-identifier">name</span>, <span 
class="ruby-string">&#39;jpa&#39;</span>) <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span 
class="ruby-operator">|</span>
+    <span class="ruby-identifier">f</span>.<span 
class="ruby-identifier">configuration</span> <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">c</span><span class="ruby-operator">|</span>
+      <span class="ruby-keyword">if</span> <span 
class="ruby-identifier">provider</span>
+        <span class="ruby-identifier">c</span>.<span 
class="ruby-identifier">setting</span> <span class="ruby-value">:name</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;validation-enabled&#39;</span>, <span 
class="ruby-value">:value</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">validation_enabled</span>
+        <span class="ruby-identifier">c</span>.<span 
class="ruby-identifier">setting</span> <span class="ruby-value">:name</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;provider-name&#39;</span>, <span 
class="ruby-value">:value</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">provider</span>
+      <span class="ruby-keyword">end</span>
+      <span class="ruby-identifier">c</span>.<span 
class="ruby-identifier">tag!</span>(<span 
class="ruby-string">&#39;datasource-mapping&#39;</span>) <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">ds</span><span class="ruby-operator">|</span>
+        <span class="ruby-identifier">ds</span>.<span 
class="ruby-identifier">tag!</span>(<span 
class="ruby-string">&#39;factory-entry&#39;</span>, <span 
class="ruby-value">:name</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">factory_entry</span>)
+      <span class="ruby-keyword">end</span>
+      <span class="ruby-identifier">deployment_descriptors</span>.<span 
class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span 
class="ruby-operator">|</span><span 
class="ruby-identifier">descriptor</span><span class="ruby-operator">|</span>
+        <span class="ruby-identifier">c</span>.<span 
class="ruby-identifier">deploymentDescriptor</span> <span 
class="ruby-value">:name</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-constant">File</span>.<span 
class="ruby-identifier">basename</span>(<span 
class="ruby-identifier">descriptor</span>), <span 
class="ruby-value">:url</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">file_path</span>(<span 
class="ruby-identifier">descriptor</span>)
+      <span class="ruby-keyword">end</span>
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-add_jruby_facet" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">add_jruby_facet</span><span
+            class="method-args">(options = {})</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="add_jruby_facet-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 380</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">add_jruby_facet</span>(<span 
class="ruby-identifier">options</span> = {})
+  <span class="ruby-identifier">name</span> = <span 
class="ruby-identifier">options</span>[<span class="ruby-value">:name</span>] 
<span class="ruby-operator">||</span> <span 
class="ruby-string">&#39;JRuby&#39;</span>
+
+  <span class="ruby-identifier">ruby_version_file</span> = <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">_</span>(<span 
class="ruby-string">&#39;.ruby-version&#39;</span>)
+  <span class="ruby-identifier">default_jruby_version</span> = <span 
class="ruby-constant">File</span>.<span 
class="ruby-identifier">exist?</span>(<span 
class="ruby-identifier">ruby_version_file</span>) <span 
class="ruby-operator">?</span> <span class="ruby-node">&quot;rbenv: 
#{IO.read(ruby_version_file).strip}&quot;</span> <span 
class="ruby-operator">:</span> <span 
class="ruby-string">&#39;jruby-1.6.7.2&#39;</span>
+  <span class="ruby-identifier">jruby_version</span> = <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:jruby_version</span>] <span class="ruby-operator">||</span> 
<span class="ruby-identifier">default_jruby_version</span>
+  <span class="ruby-identifier">add_facet</span>(<span 
class="ruby-identifier">name</span>, <span 
class="ruby-string">&#39;JRUBY&#39;</span>) <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">f</span><span class="ruby-operator">|</span>
+    <span class="ruby-identifier">f</span>.<span 
class="ruby-identifier">configuration</span> <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">c</span><span class="ruby-operator">|</span>
+      <span class="ruby-identifier">c</span>.<span 
class="ruby-constant">JRUBY_FACET_CONFIG_ID</span> <span 
class="ruby-value">:NAME</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;JRUBY_SDK_NAME&#39;</span>, <span 
class="ruby-value">:VALUE</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">jruby_version</span>
+      <span class="ruby-identifier">c</span>.<span 
class="ruby-constant">LOAD_PATH</span> <span class="ruby-value">:number</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;0&#39;</span>
+      <span class="ruby-identifier">c</span>.<span 
class="ruby-constant">I18N_FOLDERS</span> <span 
class="ruby-value">:number</span> =<span class="ruby-operator">&gt;</span> 
<span class="ruby-string">&#39;0&#39;</span>
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-add_web_facet" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">add_web_facet</span><span
+            class="method-args">(options = {})</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="add_web_facet-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 338</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">add_web_facet</span>(<span 
class="ruby-identifier">options</span> = {})
+  <span class="ruby-identifier">name</span> = <span 
class="ruby-identifier">options</span>[<span class="ruby-value">:name</span>] 
<span class="ruby-operator">||</span> <span 
class="ruby-string">&#39;Web&#39;</span>
+  <span class="ruby-identifier">default_webroots</span> = {}
+  <span class="ruby-identifier">default_webroots</span>[<span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">_</span>(<span class="ruby-value">:source</span>, <span 
class="ruby-value">:main</span>, <span class="ruby-value">:webapp</span>)] = 
<span class="ruby-string">&#39;/&#39;</span> <span 
class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span 
class="ruby-identifier">exist?</span>(<span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">_</span>(<span class="ruby-value">:source</span>, <span 
class="ruby-value">:main</span>, <span class="ruby-value">:webapp</span>))
+  <span class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">assets</span>.<span 
class="ruby-identifier">paths</span>.<span class="ruby-identifier">each</span> 
{<span class="ruby-operator">|</span><span 
class="ruby-identifier">p</span><span class="ruby-operator">|</span> <span 
class="ruby-identifier">default_webroots</span>[<span 
class="ruby-identifier">p</span>] = <span 
class="ruby-string">&#39;/&#39;</span> }
+  <span class="ruby-identifier">webroots</span> = <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:webroots</span>] <span class="ruby-operator">||</span> 
<span class="ruby-identifier">default_webroots</span>
+  <span class="ruby-identifier">default_deployment_descriptors</span> = []
+  [<span class="ruby-string">&#39;web.xml&#39;</span>, <span 
class="ruby-string">&#39;sun-web.xml&#39;</span>, <span 
class="ruby-string">&#39;glassfish-web.xml&#39;</span>, <span 
class="ruby-string">&#39;jetty-web.xml&#39;</span>, <span 
class="ruby-string">&#39;geronimo-web.xml&#39;</span>,
+   <span class="ruby-string">&#39;context.xml&#39;</span>, <span 
class="ruby-string">&#39;weblogic.xml&#39;</span>,
+   <span class="ruby-string">&#39;jboss-deployment-structure.xml&#39;</span>, 
<span class="ruby-string">&#39;jboss-web.xml&#39;</span>,
+   <span class="ruby-string">&#39;ibm-web-bnd.xml&#39;</span>, <span 
class="ruby-string">&#39;ibm-web-ext.xml&#39;</span>, <span 
class="ruby-string">&#39;ibm-web-ext-pme.xml&#39;</span>].
+    <span class="ruby-identifier">each</span> <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">descriptor</span><span class="ruby-operator">|</span>
+    <span class="ruby-identifier">webroots</span>.<span 
class="ruby-identifier">each_pair</span> <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">path</span>, 
<span class="ruby-identifier">relative_url</span><span 
class="ruby-operator">|</span>
+      <span class="ruby-keyword">next</span> <span 
class="ruby-keyword">unless</span> <span 
class="ruby-identifier">relative_url</span> <span 
class="ruby-operator">==</span> <span class="ruby-string">&#39;/&#39;</span>
+      <span class="ruby-identifier">d</span> = <span 
class="ruby-node">&quot;#{path}/WEB-INF/#{descriptor}&quot;</span>
+      <span class="ruby-identifier">default_deployment_descriptors</span> 
<span class="ruby-operator">&lt;&lt;</span> <span 
class="ruby-identifier">d</span> <span class="ruby-keyword">if</span> <span 
class="ruby-constant">File</span>.<span 
class="ruby-identifier">exist?</span>(<span class="ruby-identifier">d</span>)
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span>
+  <span class="ruby-identifier">deployment_descriptors</span> = <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:deployment_descriptors</span>] <span 
class="ruby-operator">||</span> <span 
class="ruby-identifier">default_deployment_descriptors</span>
+
+  <span class="ruby-identifier">add_facet</span>(<span 
class="ruby-identifier">name</span>, <span 
class="ruby-string">&#39;web&#39;</span>) <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span 
class="ruby-operator">|</span>
+    <span class="ruby-identifier">f</span>.<span 
class="ruby-identifier">configuration</span> <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">c</span><span class="ruby-operator">|</span>
+      <span class="ruby-identifier">c</span>.<span 
class="ruby-identifier">descriptors</span> <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span 
class="ruby-operator">|</span>
+        <span class="ruby-identifier">deployment_descriptors</span>.<span 
class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span 
class="ruby-operator">|</span><span 
class="ruby-identifier">deployment_descriptor</span><span 
class="ruby-operator">|</span>
+          <span class="ruby-identifier">d</span>.<span 
class="ruby-identifier">deploymentDescriptor</span> <span 
class="ruby-value">:name</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-constant">File</span>.<span 
class="ruby-identifier">basename</span>(<span 
class="ruby-identifier">deployment_descriptor</span>), <span 
class="ruby-value">:url</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">file_path</span>(<span 
class="ruby-identifier">deployment_descriptor</span>)
+        <span class="ruby-keyword">end</span>
+      <span class="ruby-keyword">end</span>
+      <span class="ruby-identifier">c</span>.<span 
class="ruby-identifier">webroots</span> <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span class="ruby-identifier">w</span><span 
class="ruby-operator">|</span>
+        <span class="ruby-identifier">webroots</span>.<span 
class="ruby-identifier">each_pair</span> <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span 
class="ruby-identifier">webroot</span>, <span 
class="ruby-identifier">relative_url</span><span class="ruby-operator">|</span>
+          <span class="ruby-identifier">w</span>.<span 
class="ruby-identifier">root</span> <span class="ruby-value">:url</span> =<span 
class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">file_path</span>(<span 
class="ruby-identifier">webroot</span>), <span 
class="ruby-value">:relative</span> =<span class="ruby-operator">&gt;</span> 
<span class="ruby-identifier">relative_url</span>
+        <span class="ruby-keyword">end</span>
+      <span class="ruby-keyword">end</span>
+    <span class="ruby-keyword">end</span>
+    <span class="ruby-identifier">default_enable_jsf</span> = <span 
class="ruby-identifier">webroots</span>.<span 
class="ruby-identifier">keys</span>.<span 
class="ruby-identifier">any?</span>{<span class="ruby-operator">|</span><span 
class="ruby-identifier">webroot</span><span class="ruby-operator">|</span> 
<span class="ruby-constant">File</span>.<span 
class="ruby-identifier">exist?</span>(<span 
class="ruby-node">&quot;#{webroot}/WEB-INF/faces-config.xml&quot;</span>)}
+    <span class="ruby-identifier">enable_jsf</span> = <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:enable_jsf</span>].<span 
class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span 
class="ruby-identifier">default_enable_jsf</span> <span 
class="ruby-operator">:</span> <span 
class="ruby-identifier">options</span>[<span 
class="ruby-value">:enable_jsf</span>]
+    <span class="ruby-identifier">enable_jsf</span> = <span 
class="ruby-keyword">false</span> <span class="ruby-keyword">if</span> <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">root_project</span>.<span 
class="ruby-identifier">ipr?</span> <span 
class="ruby-operator">&amp;&amp;</span> <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">root_project</span>.<span 
class="ruby-identifier">ipr</span>.<span class="ruby-identifier">version</span> 
<span class="ruby-operator">&gt;=</span> <span 
class="ruby-string">&#39;13&#39;</span>
+    <span class="ruby-identifier">f</span>.<span 
class="ruby-identifier">facet</span>(<span class="ruby-value">:type</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;jsf&#39;</span>, <span class="ruby-value">:name</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;JSF&#39;</span>) <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span 
class="ruby-identifier">jsf</span><span class="ruby-operator">|</span>
+      <span class="ruby-identifier">jsf</span>.<span 
class="ruby-identifier">configuration</span>
+    <span class="ruby-keyword">end</span> <span class="ruby-keyword">if</span> 
<span class="ruby-identifier">enable_jsf</span>
+  <span class="ruby-keyword">end</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-buildr_project-3D" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">buildr_project=</span><span
+            class="method-args">(buildr_project)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="buildr_project-3D-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 200</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">buildr_project=</span>(<span 
class="ruby-identifier">buildr_project</span>)
+  <span class="ruby-ivar">@id</span> = <span class="ruby-keyword">nil</span>
+  <span class="ruby-ivar">@facets</span> = []
+  <span class="ruby-ivar">@skip_content</span> = <span 
class="ruby-keyword">false</span>
+  <span class="ruby-ivar">@buildr_project</span> = <span 
class="ruby-identifier">buildr_project</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-excluded_directories" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">excluded_directories</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="excluded_directories-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 247</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">excluded_directories</span>
+  <span class="ruby-ivar">@excluded_directories</span> <span 
class="ruby-operator">||=</span> [
+    <span class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">resources</span>.<span 
class="ruby-identifier">target</span>,
+    <span class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">test</span>.<span 
class="ruby-identifier">resources</span>.<span 
class="ruby-identifier">target</span>,
+    <span class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">path_to</span>(<span class="ruby-value">:target</span>, 
<span class="ruby-value">:main</span>),
+    <span class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">path_to</span>(<span class="ruby-value">:target</span>, 
<span class="ruby-value">:test</span>),
+    <span class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">path_to</span>(<span class="ruby-value">:reports</span>)
+  ].<span class="ruby-identifier">flatten</span>.<span 
class="ruby-identifier">compact</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-extension" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">extension</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="extension-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 211</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">extension</span>
+  <span class="ruby-string">&#39;iml&#39;</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-jdk_version" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">jdk_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="jdk_version-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 207</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">jdk_version</span>
+  <span class="ruby-ivar">@jdk_version</span> <span 
class="ruby-operator">||</span> <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">compile</span>.<span 
class="ruby-identifier">options</span>.<span 
class="ruby-identifier">source</span> <span class="ruby-operator">||</span> 
<span class="ruby-string">&#39;1.7&#39;</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-main_dependencies" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">main_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="main_dependencies-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 269</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">main_dependencies</span>
+  <span class="ruby-ivar">@main_dependencies</span> <span 
class="ruby-operator">||=</span> <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">compile</span>.<span 
class="ruby-identifier">dependencies</span>.<span 
class="ruby-identifier">dup</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-main_generated_resource_directories" 
class="method-detail ">
+        
+        <div class="method-heading">
+          <span 
class="method-name">main_generated_resource_directories</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="main_generated_resource_directories-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 227</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">main_generated_resource_directories</span>
+  <span class="ruby-ivar">@main_generated_resource_directories</span> <span 
class="ruby-operator">||=</span> []
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-main_generated_source_directories" 
class="method-detail ">
+        
+        <div class="method-heading">
+          <span 
class="method-name">main_generated_source_directories</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="main_generated_source_directories-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 223</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">main_generated_source_directories</span>
+  <span class="ruby-ivar">@main_generated_source_directories</span> <span 
class="ruby-operator">||=</span> []
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-main_output_dir" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">main_output_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="main_output_dir-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 259</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">main_output_dir</span>
+  <span class="ruby-ivar">@main_output_dir</span> <span 
class="ruby-operator">||=</span> <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">_</span>(<span class="ruby-value">:target</span>, <span 
class="ruby-value">:main</span>, <span class="ruby-value">:idea</span>, <span 
class="ruby-value">:classes</span>)
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-main_resource_directories" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">main_resource_directories</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="main_resource_directories-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 219</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">main_resource_directories</span>
+  <span class="ruby-ivar">@main_resource_directories</span> <span 
class="ruby-operator">||=</span> [<span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">resources</span>.<span 
class="ruby-identifier">sources</span>].<span 
class="ruby-identifier">flatten</span>.<span 
class="ruby-identifier">compact</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-main_source_directories" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">main_source_directories</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="main_source_directories-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 215</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">main_source_directories</span>
+  <span class="ruby-ivar">@main_source_directories</span> <span 
class="ruby-operator">||=</span> [<span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">compile</span>.<span 
class="ruby-identifier">sources</span>].<span 
class="ruby-identifier">flatten</span>.<span 
class="ruby-identifier">compact</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-skip_content-21" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">skip_content!</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="skip_content-21-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 289</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">skip_content!</span>
+  <span class="ruby-ivar">@skip_content</span> = <span 
class="ruby-keyword">true</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-skip_content-3F" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">skip_content?</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="skip_content-3F-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 285</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">skip_content?</span>
+  <span class="ruby-operator">!</span><span 
class="ruby-operator">!</span><span class="ruby-ivar">@skip_content</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-test_dependencies" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">test_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="test_dependencies-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 273</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">test_dependencies</span>
+  <span class="ruby-ivar">@test_dependencies</span> <span 
class="ruby-operator">||=</span> <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">test</span>.<span 
class="ruby-identifier">compile</span>.<span 
class="ruby-identifier">dependencies</span>.<span 
class="ruby-identifier">dup</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-test_generated_resource_directories" 
class="method-detail ">
+        
+        <div class="method-heading">
+          <span 
class="method-name">test_generated_resource_directories</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="test_generated_resource_directories-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 243</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">test_generated_resource_directories</span>
+  <span class="ruby-ivar">@test_generated_resource_directories</span> <span 
class="ruby-operator">||=</span> []
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-test_generated_source_directories" 
class="method-detail ">
+        
+        <div class="method-heading">
+          <span 
class="method-name">test_generated_source_directories</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="test_generated_source_directories-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 239</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">test_generated_source_directories</span>
+  <span class="ruby-ivar">@test_generated_source_directories</span> <span 
class="ruby-operator">||=</span> []
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-test_output_dir" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">test_output_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="test_output_dir-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 265</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">test_output_dir</span>
+  <span class="ruby-ivar">@test_output_dir</span> <span 
class="ruby-operator">||=</span> <span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">_</span>(<span class="ruby-value">:target</span>, <span 
class="ruby-value">:test</span>, <span class="ruby-value">:idea</span>, <span 
class="ruby-value">:classes</span>)
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-test_resource_directories" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">test_resource_directories</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="test_resource_directories-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 235</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">test_resource_directories</span>
+  <span class="ruby-ivar">@test_resource_directories</span> <span 
class="ruby-operator">||=</span> [<span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">test</span>.<span 
class="ruby-identifier">resources</span>.<span 
class="ruby-identifier">sources</span>].<span 
class="ruby-identifier">flatten</span>.<span 
class="ruby-identifier">compact</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-test_source_directories" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">test_source_directories</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="test_source_directories-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 231</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">test_source_directories</span>
+  <span class="ruby-ivar">@test_source_directories</span> <span 
class="ruby-operator">||=</span> [<span 
class="ruby-identifier">buildr_project</span>.<span 
class="ruby-identifier">test</span>.<span 
class="ruby-identifier">compile</span>.<span 
class="ruby-identifier">sources</span>].<span 
class="ruby-identifier">flatten</span>.<span 
class="ruby-identifier">compact</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+    </section>
+  
+     <section id="protected-instance-5Buntitled-5D-method-details" 
class="method-section">
+       <header>
+         <h3>Protected Instance Methods</h3>
+       </header>
+
+    
+      <div id="method-i-base_document" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">base_document</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="base_document-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 511</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">base_document</span>
+  <span class="ruby-identifier">target</span> = <span 
class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>
+  <span class="ruby-constant">Builder</span><span 
class="ruby-operator">::</span><span 
class="ruby-constant">XmlMarkup</span>.<span 
class="ruby-identifier">new</span>(<span class="ruby-value">:target</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">target</span>).<span 
class="ruby-identifier">module</span>(<span class="ruby-value">:version</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;4&#39;</span>, <span 
class="ruby-value">:relativePaths</span> =<span 
class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;true&#39;</span>, <span 
class="ruby-value">:type</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-keyword">self</span>.<span class="ruby-identifier">type</span>)
+  <span class="ruby-constant">Buildr</span><span 
class="ruby-operator">::</span><span 
class="ruby-constant">IntellijIdea</span>.<span 
class="ruby-identifier">new_document</span>(<span 
class="ruby-identifier">target</span>.<span 
class="ruby-identifier">string</span>)
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-default_components" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">default_components</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="default_components-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 521</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">default_components</span>
+  [
+    <span class="ruby-identifier">lambda</span> { <span 
class="ruby-identifier">module_root_component</span> },
+    <span class="ruby-identifier">lambda</span> { <span 
class="ruby-identifier">facet_component</span> }
+  ]
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-facet_component" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">facet_component</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="facet_component-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 528</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">facet_component</span>
+  <span class="ruby-identifier">create_composite_component</span>(<span 
class="ruby-string">&#39;FacetManager&#39;</span>, {}, <span 
class="ruby-keyword">self</span>.<span class="ruby-identifier">facets</span>)
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-generate_compile_output" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">generate_compile_output</span><span
+            class="method-args">(xml)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="generate_compile_output-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 587</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">generate_compile_output</span>(<span 
class="ruby-identifier">xml</span>)
+  <span class="ruby-identifier">xml</span>.<span 
class="ruby-identifier">output</span>(<span class="ruby-value">:url</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">file_path</span>(<span 
class="ruby-keyword">self</span>.<span 
class="ruby-identifier">main_output_dir</span>.<span 
class="ruby-identifier">to_s</span>))
+  <span class="ruby-identifier">xml</span>.<span 
class="ruby-identifier">tag!</span>(<span 
class="ruby-string">&#39;output-test&#39;</span>, <span 
class="ruby-value">:url</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">file_path</span>(<span 
class="ruby-keyword">self</span>.<span 
class="ruby-identifier">test_output_dir</span>.<span 
class="ruby-identifier">to_s</span>))
+  <span class="ruby-identifier">xml</span>.<span 
class="ruby-identifier">tag!</span>(<span 
class="ruby-string">&#39;exclude-output&#39;</span>)
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-generate_content" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">generate_content</span><span
+            class="method-args">(xml)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="generate_content-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 593</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">generate_content</span>(<span 
class="ruby-identifier">xml</span>)
+  <span class="ruby-identifier">xml</span>.<span 
class="ruby-identifier">content</span>(<span class="ruby-value">:url</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;file://$MODULE_DIR$&#39;</span>) <span 
class="ruby-keyword">do</span>
+    <span class="ruby-comment"># Source folders</span>
+    [
+      {<span class="ruby-value">:dirs</span> =<span 
class="ruby-operator">&gt;</span> (<span class="ruby-keyword">self</span>.<span 
class="ruby-identifier">main_source_directories</span>.<span 
class="ruby-identifier">dup</span> <span class="ruby-operator">-</span> <span 
class="ruby-keyword">self</span>.<span 
class="ruby-identifier">main_generated_source_directories</span>)},
+      {<span class="ruby-value">:dirs</span> =<span 
class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span 
class="ruby-identifier">main_generated_source_directories</span>, <span 
class="ruby-value">:generated</span> =<span class="ruby-operator">&gt;</span> 
<span class="ruby-keyword">true</span>},
+      {<span class="ruby-value">:type</span> =<span 
class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;resource&#39;</span>, <span 
class="ruby-value">:dirs</span> =<span class="ruby-operator">&gt;</span> (<span 
class="ruby-keyword">self</span>.<span 
class="ruby-identifier">main_resource_directories</span>.<span 
class="ruby-identifier">dup</span> <span class="ruby-operator">-</span> <span 
class="ruby-keyword">self</span>.<span 
class="ruby-identifier">main_generated_resource_directories</span>)},
+      {<span class="ruby-value">:type</span> =<span 
class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;resource&#39;</span>, <span 
class="ruby-value">:dirs</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-keyword">self</span>.<span 
class="ruby-identifier">main_generated_resource_directories</span>, <span 
class="ruby-value">:generated</span> =<span class="ruby-operator">&gt;</span> 
<span class="ruby-keyword">true</span>},
+      {<span class="ruby-value">:test</span> =<span 
class="ruby-operator">&gt;</span> <span class="ruby-keyword">true</span>, <span 
class="ruby-value">:dirs</span> =<span class="ruby-operator">&gt;</span> (<span 
class="ruby-keyword">self</span>.<span 
class="ruby-identifier">test_source_directories</span> <span 
class="ruby-operator">-</span> <span class="ruby-keyword">self</span>.<span 
class="ruby-identifier">test_generated_source_directories</span>)},
+      {<span class="ruby-value">:test</span> =<span 
class="ruby-operator">&gt;</span> <span class="ruby-keyword">true</span>, <span 
class="ruby-value">:dirs</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-keyword">self</span>.<span 
class="ruby-identifier">test_generated_source_directories</span>, <span 
class="ruby-value">:generated</span> =<span class="ruby-operator">&gt;</span> 
<span class="ruby-keyword">true</span>},
+      {<span class="ruby-value">:test</span> =<span 
class="ruby-operator">&gt;</span> <span class="ruby-keyword">true</span>, <span 
class="ruby-value">:type</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;resource&#39;</span>, <span 
class="ruby-value">:dirs</span> =<span class="ruby-operator">&gt;</span> (<span 
class="ruby-keyword">self</span>.<span 
class="ruby-identifier">test_resource_directories</span> <span 
class="ruby-operator">-</span> <span class="ruby-keyword">self</span>.<span 
class="ruby-identifier">test_generated_resource_directories</span>)},
+      {<span class="ruby-value">:test</span> =<span 
class="ruby-operator">&gt;</span> <span class="ruby-keyword">true</span>, <span 
class="ruby-value">:type</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;resource&#39;</span>, <span 
class="ruby-value">:dirs</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-keyword">self</span>.<span 
class="ruby-identifier">test_generated_resource_directories</span>, <span 
class="ruby-value">:generated</span> =<span class="ruby-operator">&gt;</span> 
<span class="ruby-keyword">true</span>},
+    ].<span class="ruby-identifier">each</span> <span 
class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">content</span><span class="ruby-operator">|</span>
+      <span class="ruby-identifier">content</span>[<span 
class="ruby-value">:dirs</span>].<span class="ruby-identifier">map</span> { 
<span class="ruby-operator">|</span><span 
class="ruby-identifier">dir</span><span class="ruby-operator">|</span> <span 
class="ruby-identifier">dir</span>.<span class="ruby-identifier">to_s</span> 
}.<span class="ruby-identifier">compact</span>.<span 
class="ruby-identifier">sort</span>.<span 
class="ruby-identifier">uniq</span>.<span class="ruby-identifier">each</span> 
<span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span 
class="ruby-identifier">dir</span><span class="ruby-operator">|</span>
+        <span class="ruby-identifier">options</span> = {}
+        <span class="ruby-identifier">options</span>[<span 
class="ruby-value">:url</span>] = <span 
class="ruby-identifier">file_path</span>(<span 
class="ruby-identifier">dir</span>)
+        <span class="ruby-identifier">options</span>[<span 
class="ruby-value">:isTestSource</span>] = (<span 
class="ruby-identifier">content</span>[<span class="ruby-value">:test</span>] 
<span class="ruby-operator">?</span> <span 
class="ruby-string">&#39;true&#39;</span> <span class="ruby-operator">:</span> 
<span class="ruby-string">&#39;false&#39;</span>) <span 
class="ruby-keyword">if</span> <span 
class="ruby-identifier">content</span>[<span class="ruby-value">:type</span>] 
<span class="ruby-operator">!=</span> <span 
class="ruby-string">&#39;resource&#39;</span>
+        <span class="ruby-identifier">options</span>[<span 
class="ruby-value">:type</span>] = <span 
class="ruby-string">&#39;java-resource&#39;</span> <span 
class="ruby-keyword">if</span> <span 
class="ruby-identifier">content</span>[<span class="ruby-value">:type</span>] 
<span class="ruby-operator">==</span> <span 
class="ruby-string">&#39;resource&#39;</span> <span 
class="ruby-operator">&amp;&amp;</span> <span 
class="ruby-operator">!</span><span 
class="ruby-identifier">content</span>[<span class="ruby-value">:test</span>]
+        <span class="ruby-identifier">options</span>[<span 
class="ruby-value">:type</span>] = <span 
class="ruby-string">&#39;java-test-resource&#39;</span> <span 
class="ruby-keyword">if</span> <span 
class="ruby-identifier">content</span>[<span class="ruby-value">:type</span>] 
<span class="ruby-operator">==</span> <span 
class="ruby-string">&#39;resource&#39;</span> <span 
class="ruby-operator">&amp;&amp;</span> <span 
class="ruby-identifier">content</span>[<span class="ruby-value">:test</span>]
+        <span class="ruby-identifier">options</span>[<span 
class="ruby-value">:generated</span>] = <span 
class="ruby-string">&#39;true&#39;</span> <span class="ruby-keyword">if</span> 
<span class="ruby-identifier">content</span>[<span 
class="ruby-value">:generated</span>]
+        <span class="ruby-identifier">xml</span>.<span 
class="ruby-identifier">sourceFolder</span> <span 
class="ruby-identifier">options</span>
+      <span class="ruby-keyword">end</span>
+    <span class="ruby-keyword">end</span>
+
+    <span class="ruby-comment"># Exclude target directories</span>
+    <span class="ruby-keyword">self</span>.<span 
class="ruby-identifier">net_excluded_directories</span>.
+      <span class="ruby-identifier">collect</span> { <span 
class="ruby-operator">|</span><span class="ruby-identifier">dir</span><span 
class="ruby-operator">|</span> <span 
class="ruby-identifier">file_path</span>(<span 
class="ruby-identifier">dir</span>) }.
+      <span class="ruby-identifier">select</span> { <span 
class="ruby-operator">|</span><span class="ruby-identifier">dir</span><span 
class="ruby-operator">|</span> <span 
class="ruby-identifier">relative_dir_inside_dir?</span>(<span 
class="ruby-identifier">dir</span>) }.
+      <span class="ruby-identifier">sort</span>.<span 
class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span 
class="ruby-operator">|</span><span class="ruby-identifier">dir</span><span 
class="ruby-operator">|</span>
+      <span class="ruby-identifier">xml</span>.<span 
class="ruby-identifier">excludeFolder</span> <span 
class="ruby-value">:url</span> =<span class="ruby-operator">&gt;</span> <span 
class="ruby-identifier">dir</span>
+    <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">end</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-generate_initial_order_entries" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">generate_initial_order_entries</span><span
+            class="method-args">(xml)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" 
id="generate_initial_order_entries-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 631</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">generate_initial_order_entries</span>(<span 
class="ruby-identifier">xml</span>)
+  <span class="ruby-identifier">xml</span>.<span 
class="ruby-identifier">orderEntry</span> <span class="ruby-value">:type</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;sourceFolder&#39;</span>, <span 
class="ruby-value">:forTests</span> =<span class="ruby-operator">&gt;</span> 
<span class="ruby-string">&#39;false&#39;</span>
+  <span class="ruby-identifier">xml</span>.<span 
class="ruby-identifier">orderEntry</span> <span class="ruby-value">:type</span> 
=<span class="ruby-operator">&gt;</span> <span 
class="ruby-string">&#39;jdk&#39;</span>, <span 
class="ruby-value">:jdkName</span> =<span class="ruby-operator">&gt;</span> 
<span class="ruby-identifier">jdk_version</span>, <span 
class="ruby-value">:jdkType</span> =<span class="ruby-operator">&gt;</span> 
<span class="ruby-string">&#39;JavaSDK&#39;</span>
+<span class="ruby-keyword">end</span></pre>
+          </div>
+          
+        </div>
+
+        
+
+        
+      </div>
+
+    
+      <div id="method-i-generate_lib" class="method-detail ">
+        
+        <div class="method-heading">
+          <span class="method-name">generate_lib</span><span
+            class="method-args">(xml, dependency_path, export, source_path, 
project_dependencies)</span>
+          
+          <span class="method-click-advice">click to toggle source</span>
+          
+        </div>
+        
+
+        <div class="method-description">
+          
+          
+          
+          
+
+          
+          <div class="method-source-code" id="generate_lib-source">
+            <pre><span class="ruby-comment"># File lib/buildr/ide/idea.rb, 
line 554</span>
+<span class="ruby-keyword">def</span> <span 
class="ruby-identifier">generate_lib</span>(<span 
class="ruby-identifier">xml</span>, <span 
class="ruby-identifier">dependency_path</span>, <span 
class="ruby-identifier">export</span>, <span 
class="ruby-identifier">source_path</span>, <span 
class="ruby-identifier">project_dependencies</span>)
+  <span class="ruby-identifier">project_for_dependency</span> = <span 
class="ruby-constant">Buildr</span>.<span 
class="ruby-identifier">projects</span>.<span 
class="ruby-identifier">detect</span> <span class="ruby-keyword">do</span> 
<span class="ruby-operator">|</span><span 
class="ruby-identifier">project</span><span class="ruby-operator">|</span>
+    [<span class="ruby-identifier">project</span>.<span 
class="ruby-identifier">packages</span>, <span 
class="ruby-identifier">project</span>.<span 
class="ruby-identifier">compile</span>.<span 
class="ruby-identifier">target</span>, <span 
class="ruby-identifier">project</span>.<span 
class="ruby-identifier">resources</span>.<span 
class="ruby-identifier">target</span>, <span 
class="ruby-identifier">project</span>.<span 
class="ruby-identifier">test</span>.<span 
class="ruby-identifier">compile</span>.<span 
class="ruby-identifier">target</span>, <span 
class="ruby-identifier">project</span>.<span 
class="ruby-identifier">test</span>.<span 
class="ruby-identifier">resources</span>.<span 
class="ruby-identifier">target</span>].<span 
class="ruby-identifier">flatten</span>.
+      <span class="ruby-identifier">detect</span> { <span 
class="ruby-operator">|</span><span 
class="ruby-identifier">artifact</span><span class="ruby-operator">|</span> 
<span class="ruby-identifier">artifact</span>.<span 
class="ruby-identifier">to_s</span> <span class="ruby-operator">==</span> <span 
class="ruby-identifier">dependency_path</span> }
+  <span class="ruby-keyword">end</span>
+  <span class="ruby-keyword">if</span> <span 
class="ruby-identifier">project_for_dependency</span>
+    <span class="ruby-keyword">if</span> <span 
class="ruby-identifier">project_for_dependency</span>.<span 
class="ruby-identifier">iml?</span> <span 
class="ruby-operator">&amp;&amp;</span>
+      <span class="ruby-operator">!</span><span 
class="ruby-identifier">project_dependencies</span>.<span 
class="ruby-identifier">include?</span>(<span 
class="ruby-identifier">project_for_dependency</span>) <span 
class="ruby-operator">&amp;&amp;</span>
+      <span class="ruby-identifier">project_for_dependency</span> <span 
class="ruby-operator">!=</span> <span class="ruby-keyword">self</span>.<span 
class="ruby-identifier">buildr_project</span>

[... 463 lines stripped ...]


Reply via email to