-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove workarounds in Java casks. (#58510)
- Loading branch information
1 parent
b3e18ae
commit 6ba56f9
Showing
6 changed files
with
24 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,30 +3,10 @@ | |
sha256 'f365750d4be6111be8a62feda24e265d97536712bc51783162982b8ad96a70ee' | ||
|
||
url "https://download.java.net/java/GA/jdk#{version.major}/#{version.after_comma}/GPL/openjdk-#{version.before_comma}_osx-x64_bin.tar.gz" | ||
name 'OpenJDK' | ||
name 'OpenJDK Java Development Kit' | ||
homepage 'https://jdk.java.net/' | ||
|
||
postflight do | ||
system_command '/bin/mv', | ||
args: [ | ||
'-f', '--', | ||
"#{staged_path}/jdk-#{version.before_comma}.jdk", | ||
"/Library/Java/JavaVirtualMachines/openjdk-#{version.before_comma}.jdk" | ||
], | ||
sudo: true | ||
artifact "jdk-#{version.before_comma}.jdk", target: "/Library/Java/JavaVirtualMachines/openjdk-#{version.before_comma}.jdk" | ||
|
||
system_command '/bin/mkdir', | ||
args: ['-p', '--', "/Library/Java/JavaVirtualMachines/openjdk-#{version.before_comma}.jdk/Contents/Home/bundle/Libraries"], | ||
sudo: true | ||
|
||
system_command '/bin/ln', | ||
args: [ | ||
'-nsf', '--', | ||
"/Library/Java/JavaVirtualMachines/openjdk-#{version.before_comma}.jdk/Contents/Home/lib/server/libjvm.dylib", | ||
"/Library/Java/JavaVirtualMachines/openjdk-#{version.before_comma}.jdk/Contents/Home/bundle/Libraries/libserver.dylib" | ||
], | ||
sudo: true | ||
end | ||
|
||
uninstall delete: "/Library/Java/JavaVirtualMachines/openjdk-#{version.before_comma}.jdk" | ||
uninstall rmdir: '/Library/Java/JavaVirtualMachines' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
reitermarkus
Author
Member
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Does that change make sense actually? As different Java versions can be installed, a removal of one of them would remove all Java installations, which is probably not what a user wants right?