#! /bin/bash

function usage
{
  cat <<EOF
Usage: Gruppenprojekt Programmiermethoden und Werkzeuge
  build
      build the project
  test
      runs the unit tests
  help
      print help and exit

EOF
}

CMD=$1
shift

case $CMD in
  "build" )
    mvn clean install -DskipTests=true
    ;;
  "test" )
    mvn test
    ;;
  "help" )
    usage
    ;;
  * )
    usage
    ;;
esac