forked from cybersonic/LuCLI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-lucli.sh
More file actions
executable file
·24 lines (21 loc) · 818 Bytes
/
Copy pathdev-lucli.sh
File metadata and controls
executable file
·24 lines (21 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Try to load SDKMAN! and apply .sdkmanrc, but don't hard-fail if missing
if [ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]; then
# shellcheck source=/dev/null
source "$HOME/.sdkman/bin/sdkman-init.sh"
if command -v sdk >/dev/null 2>&1; then
echo "Using SDKMAN! environment from .sdkmanrc (if present)..."
sdk env || echo "Warning: 'sdk env' failed; continuing with current Java"
else
echo "Warning: SDKMAN! init script sourced but 'sdk' not available; continuing"
fi
else
echo "Warning: SDKMAN! not found at \$HOME/.sdkman; using current Java:"
java -version 2>&1 | head -n 1
fi
# Pass through any CLI arguments to LuCLI
mvn exec:java --quiet \
-Dexec.mainClass="org.lucee.lucli.LuCLI" \
-Dexec.args="$*"
# mvn clean package --activate-profiles binary --quiet
# ./target/lucli