module Buildr::IntellijIdea::ProjectExtension

Public Instance Methods

iml() click to toggle source
# File lib/buildr/ide/idea.rb, line 1490
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?() click to toggle source
# File lib/buildr/ide/idea.rb, line 1514
def iml?
  @has_iml = @has_iml.nil? ? true : @has_iml
end
ipr() click to toggle source
# File lib/buildr/ide/idea.rb, line 1478
def ipr
  if ipr?
    @ipr ||= IdeaProject.new(self)
  else
    raise 'Only the root project has an IPR'
  end
end
ipr?() click to toggle source
# File lib/buildr/ide/idea.rb, line 1486
def ipr?
  !@no_ipr && self.parent.nil?
end
no_iml() click to toggle source
# File lib/buildr/ide/idea.rb, line 1510
def no_iml
  @has_iml = false
end
no_ipr() click to toggle source
# File lib/buildr/ide/idea.rb, line 1506
def no_ipr
  @no_ipr = true
end