aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-25 20:57:00 -0800
committerAdam Vandenberg2012-02-25 20:57:21 -0800
commit0568780cd067cb62ab114884e9eebdb80c1df896 (patch)
treefcfa3693cc2cf58574fc1ec5b28f23d96606c99e /Library
parentf31a3fb75936a454529e48871642ecf57f2189d0 (diff)
downloadhomebrew-0568780cd067cb62ab114884e9eebdb80c1df896.tar.bz2
List offending jar files when installed to lib
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 979cf02e3..e61967bb5 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -250,15 +250,17 @@ class FormulaInstaller
end
def check_jars
- # Check for Jars in lib
return unless File.exist? f.lib
- unless f.lib.children.select{|g| g.to_s =~ /\.jar$/}.empty?
+ jars = f.lib.children.select{|g| g.to_s =~ /\.jar$/}
+ unless jars.empty?
opoo 'JARs were installed to "lib".'
puts "Installing JARs to \"lib\" can cause conflicts between packages."
puts "For Java software, it is typically better for the formula to"
puts "install to \"libexec\" and then symlink or wrap binaries into \"bin\"."
puts "See \"activemq\", \"jruby\", etc. for examples."
+ puts "The offending files are:"
+ puts jars
@show_summary_heading = true
end
end