Repository to hold all scripts used for building and deploying projects of all required programming languages. Scripts should be self-updating.
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.
|
|
|
#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 -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp src -d bin ${PROJECT_DIR}/${PROJECT_NAME}.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 sig
|
|
|
|
printf "\n\n\nRunning Program...\n\n"
|
|
|
|
java -jar ${PROJECT_NAME}.jar "$@"
|
|
|
|
cd ..
|
|
|
|
./${LANGUAGE}/scripts/clean.sh
|