Skip to content

Instantly share code, notes, and snippets.

@maxandersen
Forked from tivrfoa/a#a.java
Created October 14, 2020 07:15
Show Gist options
  • Save maxandersen/00db676cc6ebc677074b98f460764142 to your computer and use it in GitHub Desktop.
Save maxandersen/00db676cc6ebc677074b98f460764142 to your computer and use it in GitHub Desktop.
Tests for JBang - Multiple Files
class file4 {
public static void main(String[] args) {
System.out.println("I'm file 4");
}
}
class file5 {
public static void main(String[] args) {
System.out.println("I'm file 5");
System.out.println("dash-test");
}
}
///usr/bin/env jbang "$0" "$@" ; exit $?
class file1 {
public static void main(String[] args) {
System.out.println("I'm file 1");
}
}
///usr/bin/env jbang "$0" "$@" ; exit $?
class file2 {
public static void main(String[] args) {
System.out.println("I'm file 2");
}
}
System.out.println("Test jsh extension");
System.out.println("I'm file 3");
System.out.println("I have a dash in filename.");
System.out.println("I'm java shell script");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment