|
@ -34,15 +34,6 @@ cask 'java8' do |
|
|
system_command '/bin/ln', |
|
|
system_command '/bin/ln', |
|
|
args: ['-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents/Home/jre/lib/server/libjvm.dylib", "/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents/Home/bundle/Libraries/libserver.dylib"], |
|
|
args: ['-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents/Home/jre/lib/server/libjvm.dylib", "/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents/Home/bundle/Libraries/libserver.dylib"], |
|
|
sudo: true |
|
|
sudo: true |
|
|
|
|
|
|
|
|
if MacOS.version <= :mavericks |
|
|
|
|
|
system_command '/bin/rm', |
|
|
|
|
|
args: ['-rf', '--', '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'], |
|
|
|
|
|
sudo: true |
|
|
|
|
|
system_command '/bin/ln', |
|
|
|
|
|
args: ['-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents", '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'], |
|
|
|
|
|
sudo: true |
|
|
|
|
|
end |
|
|
|
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
uninstall pkgutil: [ |
|
|
uninstall pkgutil: [ |
|
@ -62,13 +53,7 @@ cask 'java8' do |
|
|
"/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents", |
|
|
"/Library/Java/JavaVirtualMachines/jdk#{version.split('-')[0]}.jdk/Contents", |
|
|
'/Library/PreferencePanes/JavaControlPanel.prefPane', |
|
|
'/Library/PreferencePanes/JavaControlPanel.prefPane', |
|
|
'/Library/Java/Home', |
|
|
'/Library/Java/Home', |
|
|
if MacOS.version <= :mavericks |
|
|
] |
|
|
[ |
|
|
|
|
|
'/usr/lib/java/libjdns_sd.jnilib', |
|
|
|
|
|
'/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK', |
|
|
|
|
|
] |
|
|
|
|
|
end, |
|
|
|
|
|
].keep_if { |v| !v.nil? } |
|
|
|
|
|
|
|
|
|
|
|
zap trash: [ |
|
|
zap trash: [ |
|
|
'~/Library/Application Support/Java/', |
|
|
'~/Library/Application Support/Java/', |
|
|