2023-03-29 21:17:09 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-03-29 21:25:00 -04:00
|
|
|
set -o errexit
|
|
|
|
set -o nounset
|
|
|
|
|
|
|
|
show_usage() {
|
|
|
|
echo "Usage: ./run_spectra.sh [FILENAME]"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
# Check argument count
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
|
|
show_usage
|
|
|
|
fi
|
|
|
|
|
2023-03-29 22:18:35 -04:00
|
|
|
if ! command -v mvn > /dev/null; then
|
2023-03-29 21:47:43 -04:00
|
|
|
echo "Maven (mvn) is not found in the path"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-03-29 21:17:09 -04:00
|
|
|
|
2023-10-27 10:57:15 -04:00
|
|
|
mvn -q exec:java -Dexec.mainClass="org.rairlab.planner.utils.Runner" -Dexec.args="$1"
|
2023-03-29 21:17:09 -04:00
|
|
|
|
2023-10-27 10:57:15 -04:00
|
|
|
#mvn exec:java -Dexec.mainClass="org.rairlab.planner.utils.Runner" -Dexec.args="$PWD/src/main/resources/com/naveensundarg/planner/problems/ai2thor/FloorPlan28.clj"
|
2023-03-29 21:17:09 -04:00
|
|
|
|