parent
769849b11f
commit
8ce19b6377
@ -0,0 +1,17 @@ |
||||
#Builds and runs the project. |
||||
#Java |
||||
source ${LANGUAGE}/scripts/version_info |
||||
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 |
||||
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 |
@ -0,0 +1,4 @@ |
||||
#Cleans up and removes unused files. |
||||
#Java |
||||
find -type f -name *.class -delete |
||||
find -type f -name manifest -delete |
@ -0,0 +1,20 @@ |
||||
#Adds a commit message and pushes project to github repository. |
||||
#Java |
||||
COMMIT_MESSAGE="$*" |
||||
FIRST_LINE=true |
||||
while IFS= read -r line |
||||
do |
||||
if [ "$FIRST_LINE" = true ]; then |
||||
COMMIT_MESSAGE+=" |
||||
|
||||
Co-authored-by: $line" |
||||
FIRST_LINE=false |
||||
else |
||||
COMMIT_MESSAGE+=" |
||||
Co-authored-by: $line" |
||||
fi |
||||
done < utils/.coauthors |
||||
git add -u |
||||
git add * |
||||
git commit -m "$COMMIT_MESSAGE" |
||||
git push |
@ -0,0 +1,17 @@ |
||||
#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 ${CLASS_PATH} -d ${OUT_DIR} ${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 |
||||
jar uf ${PROJECT_NAME}.jar -C ../lib/bin/ . |
||||
printf "\n\n\nRunning Program...\n\n" |
||||
java ${CUSTOM_PARAMS} -cp .:../lib/bin -Djava.library.path="${LIBRARY_PATH}" -jar ${PROJECT_NAME}.jar "$@" |
||||
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh |
||||
cd .. |
@ -0,0 +1 @@ |
||||
404: Not Found |
@ -0,0 +1 @@ |
||||
404: Not Found |
@ -0,0 +1,5 @@ |
||||
build.sh:a833e7598ad65672a9c01306d244b49f - |
||||
clean.sh:96ce35f2d2dcb555421e00a6afda23ca - |
||||
commit.sh:21af1fa6f09d01679c9e11408967264a - |
||||
jar.sh:2ac636f584c43a1124affb9ea6bdc7bf - |
||||
lean.sh:3be7b8b182ccd96e48989b4e57311193 - |
@ -0,0 +1 @@ |
||||
404: Not Found |
@ -0,0 +1,3 @@ |
||||
#Pulls the latest version of the repository. |
||||
# |
||||
git pull |
@ -0,0 +1 @@ |
||||
404: Not Found |
Loading…
Reference in new issue