generated from sigonasr2/JavaProjectTemplate
parent
d587009b25
commit
7b29a14e12
@ -1,27 +1,17 @@ |
||||
#Builds and runs the project. |
||||
#Java |
||||
source ${LANGUAGE}/scripts/version_info |
||||
if javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp ${CLASS_PATH} -d ${OUT_DIR} ${PROJECT_DIR}/*.java; then |
||||
printf "\n\n\nRunning Program...\n\n" |
||||
ORIGINAL_LOC=$(pwd) |
||||
cd lib |
||||
rm -Rf bin |
||||
mkdir bin |
||||
jar -xvf gluegen-rt-natives-linux-amd64.jar |
||||
jar -xvf gluegen-rt.jar |
||||
jar -xvf jogl-all.jar |
||||
jar -xvf jogl-all-natives-linux-amd64.jar |
||||
mv $(find . -type d -not -path "." -not -path "./bin" -not -name "lib") bin |
||||
cd .. |
||||
cd $OUT_DIR |
||||
if java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -XX:+UseZGC -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then |
||||
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh |
||||
exit |
||||
fi |
||||
if java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then |
||||
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh |
||||
exit |
||||
fi |
||||
java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -XX:+PrintCommandLineFlags -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@" |
||||
javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp ${CLASS_PATH} -d ${OUT_DIR} ${PROJECT_DIR}/*.java |
||||
printf "\n\n\nRunning Program...\n\n" |
||||
ORIGINAL_LOC=$(pwd) |
||||
cd $OUT_DIR |
||||
if java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -XX:+UseZGC -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then |
||||
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh |
||||
fi |
||||
exit |
||||
fi |
||||
if java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then |
||||
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh |
||||
exit |
||||
fi |
||||
java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -XX:+PrintCommandLineFlags -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@" |
||||
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh |
Loading…
Reference in new issue