nixos: gen 64 @ lilac — 2026-09-20 02:34 26.05.20260918.cf9d2fb (Yarara) -----
This commit is contained in:
+3
-3
@@ -116,14 +116,14 @@ in
|
||||
|
||||
(pkgs.writeShellScriptBin "jrun" ''
|
||||
set -euo pipefail
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "usage: jrun <package.MainClass> [args...]" >&2
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "usage: jrun <folder> <package> <MainClass> [args...]" >&2
|
||||
exit 1
|
||||
fi
|
||||
ROOT="$(jroot)"
|
||||
cd "$ROOT"
|
||||
jbuild $1
|
||||
MAIN="$1"; shift
|
||||
MAIN="./bin/$2/$3"; shift
|
||||
java -cp "bin:lib/*" "$MAIN" "$@"
|
||||
'')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user