lib/java/eclipse.rb in buildr-0.21.0 vs lib/java/eclipse.rb in buildr-0.22.0
- old
+ new
@@ -22,10 +22,10 @@
sources = ($LOADED_FEATURES - Buildr.instance_eval("@loaded_features_to_ignore")).
map { |file| File.expand_path(file) }.select { |file| File.exist?(file) }
sources << File.expand_path(Rake.application.rakefile, root_path) if Rake.application.rakefile
# Only for projects that are Eclipse packagable.
- if project.packages.detect { |pkg| pkg.type =~ /(jar)|(war)|(rar)|(mar)|(aar)/ }
+ if project.packages.detect { |pkg| pkg.type.to_s =~ /(jar)|(war)|(rar)|(mar)|(aar)/ }
eclipse.enhance [ file(project.path_to(".classpath")), file(project.path_to(".project")) ]
# The only thing we need to look for is a change in the Rakefile.
file(project.path_to(".classpath")=>sources) do |task|
puts "Writing #{task.name}" if verbose