Module: Buildr::IntellijIdea::ProjectExtension
Instance Method Summary collapse
Methods included from Extension
Instance Method Details
#iml ⇒ Object
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 |
# File 'lib/buildr/ide/idea.rb', line 1514 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
1538 1539 1540 |
# File 'lib/buildr/ide/idea.rb', line 1538 def iml? @has_iml = @has_iml.nil? ? true : @has_iml end |
#ipr ⇒ Object
1502 1503 1504 1505 1506 1507 1508 |
# File 'lib/buildr/ide/idea.rb', line 1502 def ipr if ipr? @ipr ||= IdeaProject.new(self) else raise 'Only the root project has an IPR' end end |
#ipr? ⇒ Boolean
1510 1511 1512 |
# File 'lib/buildr/ide/idea.rb', line 1510 def ipr? !@no_ipr && self.parent.nil? end |
#no_iml ⇒ Object
1534 1535 1536 |
# File 'lib/buildr/ide/idea.rb', line 1534 def no_iml @has_iml = false end |
#no_ipr ⇒ Object
1530 1531 1532 |
# File 'lib/buildr/ide/idea.rb', line 1530 def no_ipr @no_ipr = true end |