Don't include lib handling yet

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 2 years ago
parent d587009b25
commit 7b29a14e12
  1. 36
      Java/scripts/build.sh
  2. 2
      Java/scripts/md5
  3. 2
      sig

@ -1,27 +1,17 @@
#Builds and runs the project. #Builds and runs the project.
#Java #Java
source ${LANGUAGE}/scripts/version_info 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 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" printf "\n\n\nRunning Program...\n\n"
ORIGINAL_LOC=$(pwd) ORIGINAL_LOC=$(pwd)
cd lib cd $OUT_DIR
rm -Rf bin if java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -XX:+UseZGC -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then
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} "$@"
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh ${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

@ -1,5 +1,5 @@
build2.sh:b1c6b7c6b2eb19ba54be6824bda8805b - build2.sh:b1c6b7c6b2eb19ba54be6824bda8805b -
build.sh:5df470d49036bf7565493739aeebeaa8 - build.sh:b704fa9f7cec17d25c111866528b8165 -
clean.sh:668a2f9b568c55f6a044a509315032f6 - clean.sh:668a2f9b568c55f6a044a509315032f6 -
commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 - commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 -
jar2.sh:7977fc138ee5db798d08c34734f0be93 - jar2.sh:7977fc138ee5db798d08c34734f0be93 -

2
sig

@ -1,5 +1,5 @@
#!/usr/bin/bash #!/usr/bin/bash
export AUTO_UPDATE=false export AUTO_UPDATE=true
source utils/define.sh source utils/define.sh

Loading…
Cancel
Save