Include arguments for generated jar

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 3 years ago
parent 7630d2a90f
commit cec9b0d75a
  1. 2
      Java/scripts/jar.sh

@ -10,7 +10,7 @@ ORIGINAL_LOC=$(pwd)
cd ${OUT_DIR} cd ${OUT_DIR}
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest sig jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest sig
printf "\n\n\nRunning Program...\n\n" printf "\n\n\nRunning Program...\n\n"
java -jar ${PROJECT_NAME}.jar java -jar ${PROJECT_NAME}.jar "$@"
mv ${PROJECT_NAME}.jar ${ORIGINAL_LOC} mv ${PROJECT_NAME}.jar ${ORIGINAL_LOC}
cd .. cd ..
./scripts/clean.sh ./scripts/clean.sh
Loading…
Cancel
Save