maven: install jars in libexec to avoid conflicts

Signed-off-by: David Höppner <0xffea@gmail.com>
master
David Gageot 2010-09-01 16:51:57 +02:00 committed by David Höppner
parent 1b1f19ce1f
commit 4da1978886
1 changed files with 11 additions and 1 deletions

View File

@ -12,7 +12,17 @@ class Maven <Formula
end
def install
# Remove windows files
rm_f Dir["bin/*.bat"]
prefix.install %w[bin conf boot lib]
# Install jars in libexec to avoid conflicts
prefix.install %w{ NOTICE.txt LICENSE.txt README.txt }
libexec.install Dir['*']
# Symlink binaries
bin.mkpath
Dir["#{libexec}/bin/*"].each do |f|
ln_s f, bin+File.basename(f)
end
end
end