module Buildr::IntellijIdea::ProjectExtension

Public Instance Methods

iml() click to toggle source
# File lib/buildr/ide/idea.rb, line 1090
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 1114
def iml?
  @has_iml = @has_iml.nil? ? true : @has_iml
end
ipr() click to toggle source
# File lib/buildr/ide/idea.rb, line 1078
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 1086
def ipr?
  !@no_ipr && self.parent.nil?
end
no_iml() click to toggle source
# File lib/buildr/ide/idea.rb, line 1110
def no_iml
  @has_iml = false
end
no_ipr() click to toggle source
# File lib/buildr/ide/idea.rb, line 1106
def no_ipr
  @no_ipr = true
end