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