|
|
@ -20,6 +20,10 @@ class Java7 < Cask |
|
|
|
'/bin/rm', '-rf', '--', '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK' |
|
|
|
system '/usr/bin/sudo', '-E', '--', |
|
|
|
'/bin/ln', '-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents", '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK' |
|
|
|
system '/usr/bin/sudo', '-E', '--', |
|
|
|
'/bin/mkdir', '-p', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Home/bundle/Libraries" |
|
|
|
system '/usr/bin/sudo', '-E', '--', |
|
|
|
'/bin/ln', '-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Home/jre/lib/server/libjvm.dylib", "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Home/bundle/Libraries/libserver.dylib" |
|
|
|
end |
|
|
|
uninstall :pkgutil => 'com.oracle.jdk7u60', |
|
|
|
:files => '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK' |
|
|
|