Move to . seperators to not confuse the rest of the scripts

This commit is contained in:
Ethan McCue 2023-05-17 22:38:38 -04:00
parent 132f21cf74
commit ebf8fc7735
11 changed files with 8 additions and 6 deletions

9
packages/java/20.valhalla.20.75/build.sh vendored Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Put instructions to build your package in here
curl "https://download.java.net/java/early_access/valhalla/20/openjdk-20-valhalla+20-75_linux-x64_bin.tar.gz" -o java.tar.gz
tar xzf java.tar.gz --strip-components=1
rm java.tar.gz

View file

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

View file

@ -0,0 +1,5 @@
{
"language": "java",
"version": "20.valhalla.20.75",
"aliases": []
}

7
packages/java/20.valhalla.20.75/run vendored Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
mv $1 $1.java
filename=$1.java
shift
java --enable-preview $filename "$@"

View file

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