Skip to content

Instantly share code, notes, and snippets.

@axelmagn
Created May 21, 2014 20:31
Show Gist options
  • Save axelmagn/bab74aed115cd93e7eb2 to your computer and use it in GitHub Desktop.
Save axelmagn/bab74aed115cd93e7eb2 to your computer and use it in GitHub Desktop.
Java Runscript Template
#!/bin/bash
PROJECT_DIR="$( cd "$( dirname "$(readlink -f "$0")" )" && pwd )"
# or to get one directory up (if runscript is on a bin/ folder)
# PROJECT_DIR="$( cd "$( dirname "$(readlink -f "$0")" )/.." && pwd )"
java -jar $PROJECT_DIR/target/XXXX.jar "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment