|
@ -9,7 +9,7 @@ class Java7 < Cask |
|
|
homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html' |
|
|
homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html' |
|
|
|
|
|
|
|
|
install 'JDK 7 Update 67.pkg' |
|
|
install 'JDK 7 Update 67.pkg' |
|
|
after_install do |
|
|
postflight do |
|
|
system '/usr/bin/sudo', '-E', '--', |
|
|
system '/usr/bin/sudo', '-E', '--', |
|
|
'/usr/libexec/PlistBuddy', '-c', 'Add :JavaVM:JVMCapabilities: string BundledApp', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Info.plist" |
|
|
'/usr/libexec/PlistBuddy', '-c', 'Add :JavaVM:JVMCapabilities: string BundledApp', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Info.plist" |
|
|
system '/usr/bin/sudo', '-E', '--', |
|
|
system '/usr/bin/sudo', '-E', '--', |
|
|