From 1146eec3bfc41aa8719711cc73a2f3357c154803 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 21 Aug 2010 14:11:55 -0700 Subject: [PATCH] Only check for Jars if lib exists. --- Library/Homebrew/install.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index d4b42fe93e..91d1f0861a 100755 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -158,12 +158,14 @@ def install f end # Check for Jars in lib - unless f.lib.children.select{|g| g.to_s =~ /\.jar$/}.empty? - opoo 'JARs where 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." + if File.exist?(f.lib) + unless f.lib.children.select{|g| g.to_s =~ /\.jar$/}.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." + end end # link from Cellar to Prefix