Where people come together to learn, code, and play. Custom-built HTTP server, site generator, and website from scratch using no external libraries. Goal is to be as minimalistic and fun as possible.
http://projectdivar.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
606 B
17 lines
606 B
#Builds a runnable jar file using ${MAIN_CLASS} as an entry point and then runs the newly generated jar.
|
|
#Java
|
|
source ${LANGUAGE}/scripts/version_info
|
|
rm -Rf bin/*
|
|
javac -d bin *.java
|
|
printf "\n\n\nGenerating Manifest...\n\n"
|
|
touch manifest
|
|
echo "Main-Class: ${MAIN_CLASS}" > manifest
|
|
printf "\n\n\nCreating Jar...\n\n"
|
|
ORIGINAL_LOC=$(pwd)
|
|
cd ${OUT_DIR}
|
|
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest .
|
|
jar uf ${PROJECT_NAME}.jar -C ../lib/bin/ .
|
|
printf "\n\n\nRunning Program...\n\n"
|
|
mv sigPlace.jar ..
|
|
cd ..
|
|
java ${CUSTOM_PARAMS} -Djava.library.path="${LIBRARY_PATH}" -jar ${PROJECT_NAME}.jar "$@"
|
|
|