pkg(java-15.0.2): Add java 15.0.2

This commit is contained in:
Thomas Hobson 2021-03-14 00:14:06 +13:00
parent 4db97b005b
commit 56adb6123c
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
6 changed files with 92 additions and 0 deletions

8
packages/java/15.0.2/build.sh vendored Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Put instructions to build your package in here
curl "https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz" -o java.tar.gz
tar xzf java.tar.gz --strip-components=1
rm java.tar.gz

4
packages/java/15.0.2/environment vendored Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/java/15.0.2/metadata.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"language": "java",
"version": "15.0.2",
"aliases": [],
"author": "Thomas Hobson <git@hexf.me>"
}

4
packages/java/15.0.2/run vendored Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
java $*

5
packages/java/15.0.2/test.java vendored Normal file
View file

@ -0,0 +1,5 @@
public class HelloWorld {
public static void main(String[] args) {
System.out.println("OK");
}
}