#!/bin/bash # # Run JVCL on a spec # # Usage: # # jvcl [-f spec-file] [-t temp-dir] # # If the `-f` option is omitted and no spec-file is provided, then jvcl will try to read # a spec from stdin. # # Every run of JVCL will create a temp directory. You can either specify the name of the directory # with `-t` (it will be created if it does not exist), or let jvcl create a temp directory for you. # # Note: this command will build the jvcl jar file if needed. The first time you run it, it might # take a long time to start up. # SCRIPT="${0}" SCRIPT_DIR="$(cd "$(dirname "${SCRIPT}")" && pwd)" . "${SCRIPT_DIR}"/jvcl_common DEBUG="" if [[ -n "${JVCL_DEBUG}" ]] ; then DEBUG="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005" fi java -cp "${JVCL_JAR}" ${DEBUG} jvcl.main.Jvcl "${@}"