Module: Buildr::IntellijIdea::ProjectExtension
Instance Method Summary collapse
Methods included from Extension
Instance Method Details
#iml ⇒ Object
1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 |
# File 'lib/buildr/ide/idea.rb', line 1765 def iml if iml? unless @iml inheritable_iml_source = self.parent while inheritable_iml_source && !inheritable_iml_source.iml? inheritable_iml_source = inheritable_iml_source.parent; end @iml = inheritable_iml_source ? inheritable_iml_source.iml.clone : IdeaModule.new @iml.buildr_project = self end return @iml else raise "IML generation is disabled for #{self.name}" end end |
#iml? ⇒ Boolean
1789 1790 1791 |
# File 'lib/buildr/ide/idea.rb', line 1789 def iml? @has_iml = @has_iml.nil? ? true : @has_iml end |
#ipr ⇒ Object
1753 1754 1755 1756 1757 1758 1759 |
# File 'lib/buildr/ide/idea.rb', line 1753 def ipr if ipr? @ipr ||= IdeaProject.new(self) else raise 'Only the root project has an IPR' end end |
#ipr? ⇒ Boolean
1761 1762 1763 |
# File 'lib/buildr/ide/idea.rb', line 1761 def ipr? !@no_ipr && self.parent.nil? end |
#no_iml ⇒ Object
1785 1786 1787 |
# File 'lib/buildr/ide/idea.rb', line 1785 def no_iml @has_iml = false end |
#no_ipr ⇒ Object
1781 1782 1783 |
# File 'lib/buildr/ide/idea.rb', line 1781 def no_ipr @no_ipr = true end |