Browse Source

pre/postflight stanza in java7

master
Roland Walker 10 years ago
parent
commit
9b074312cf
  1. 2
      Casks/java7.rb

2
Casks/java7.rb

@ -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', '--',

Loading…
Cancel
Save