Class: Buildr::Eclipse::Options
Instance Attribute Summary collapse
-
#m2_repo_var(*values) ⇒ Object
The classpath variable used to point at the local maven2 repository.
- #short_names ⇒ Object
Instance Method Summary collapse
-
#initialize(project) ⇒ Options
constructor
A new instance of Options.
Constructor Details
Instance Attribute Details
#m2_repo_var(*values) ⇒ Object
The classpath variable used to point at the local maven2 repository. Example:
eclipse..m2_repo_var = 'M2_REPO'
175 176 177 178 179 180 181 182 |
# File 'lib/buildr/ide/eclipse.rb', line 175 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..m2_repo_var : 'M2_REPO') end end |
#short_names ⇒ Object
184 185 186 |
# File 'lib/buildr/ide/eclipse.rb', line 184 def short_names @short_names || (@project.parent ? @project.parent.eclipse..short_names : false) end |