8 lines
305 B
Bash
Executable File
8 lines
305 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run one of the demo classes ad hoc, e.g.: ./scripts/run.sh NullHandlingDemo
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
mvn -q -B compile
|
|
GUAVA_JAR="$(find "$HOME/.m2" -name 'guava-*.jar' ! -name '*sources*' | head -1)"
|
|
java -cp "target/classes:${GUAVA_JAR}" "com.ankurm.immutable.$1"
|