|
- #!/bin/bash
- #
- # Run JVC on a spec
- #
- # Usage:
- #
- # jvc [-t temp-dir] [-n|--no-exec] spec-file
- #
- # spec-file : the JVC to run. If omitted, read a spec from stdin
- #
- # -t temp-dir : where to write generated assets. If omitted, jvc will
- # create a new temporary directory
- #
- # -n or --no-exec : print commands that would have been run, but don't
- # actually run anything
- #
- # Note: If the JVC jar does not exist, it will be built from source.
- # The first time you run it, it might take a long time to start up.
- #
- SCRIPT="${0}"
- SCRIPT_DIR="$(cd "$(dirname "${SCRIPT}")" && pwd)"
- JVC_SKIP_ENV_VAR_HELP=1
- . "${SCRIPT_DIR}"/jvc_common
-
- DEBUG=""
- if [[ -n "${JVC_DEBUG}" ]] ; then
- DEBUG="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005"
- fi
-
- java -cp "${JVC_JAR}" ${DEBUG} jvc.main.Jvc ${_JVC_NO_EXEC} "${@}"
|