class Buildr::Eclipse::Options

Attributes

m2_repo_var[W]
short_names[W]

Public Class Methods

new(project) click to toggle source
# File lib/buildr/ide/eclipse.rb, line 163
def initialize(project)
  @project = project
end

Public Instance Methods

m2_repo_var(*values) click to toggle source

The classpath variable used to point at the local maven2 repository. Example:

eclipse.options.m2_repo_var = 'M2_REPO'
# File lib/buildr/ide/eclipse.rb, line 170
def m2_repo_var(*values)
  fail "m2_repo_var can only accept one value: #{values}" if values.size > 1
  if values.size > 0
    @m2_repo_var = values[0]
  else
    @m2_repo_var || (@project.parent ? @project.parent.eclipse.options.m2_repo_var : 'M2_REPO')
  end
end
short_names() click to toggle source
# File lib/buildr/ide/eclipse.rb, line 179
def short_names
  @short_names || (@project.parent ? @project.parent.eclipse.options.short_names : false)
end