Permalink
Browse files

Need to enhance :eclipse task itself (not just dependencies) to get a…

…rtifacts set up correctly
  • Loading branch information...
1 parent c57d8b5 commit 81abeabb867d099576e895e5a85511bd6d29e0d8 @aboisvert aboisvert committed Oct 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/buildr/ivy_extension.rb
@@ -564,7 +564,7 @@ def add_ivy_deps_to_java_tasks(project)
project.task :javadoc => "#{project.name}:javadocdeps"
[project.task(:eclipse), project.task(:idea), project.task(:idea7x)].each do |task|
- task.prerequisites.each{|p| p.enhance ["#{project.name}:compiledeps", "#{project.name}:testdeps"]}
+ [task, task.prerequisites].flatten.each{|p| p.enhance ["#{project.name}:compiledeps", "#{project.name}:testdeps"]}
end
end

0 comments on commit 81abeab

Please sign in to comment.