blob: 0273ca2d5ba0b5b8a6715c49a7328ffd46c9b3f2 [file] [log] [blame]
#!/bin/bash
set -e
if [[ -z "${1}" || -z "${2}" || -z "${3}" || -z "${4}" || -z "${5}" ]]; then
# Not sending error to &2 since GWT compiler does not do that either
echo "usage: compileModule moduleName dev.jar user.jar benchmark_src output_dir"
exit 1
fi
MODULE_NAME=${1}
shift
GWT_DEV_JAR=${1}
shift
GWT_USER_JAR=${1}
shift
BENCHMARKS_SRC=${1}
shift
OUTPUT_DIR=${1}
shift
java -Dgwt.persistentunitcache=false -cp ${GWT_DEV_JAR}:${GWT_USER_JAR}:${BENCHMARKS_SRC} \
com.google.gwt.dev.Compiler ${COMPILER_EXTRA_ARGS} -war ${OUTPUT_DIR} ${@} ${MODULE_NAME}