Create proper jar generation project

This commit is contained in:
sigonasr2, Sig, Sigo 2022-05-16 17:29:04 +00:00
parent b203727aae
commit f59629cc29
10 changed files with 21 additions and 0 deletions

4
META-INF/MANIFEST.MF Normal file
View File

@ -0,0 +1,4 @@
Manifest-Version: 1.0
Main-Class: sig.PolygonFill
Created-By: 11.0.13 (Azul Systems, Inc.)

BIN
PolygonFill.jar Normal file

Binary file not shown.

BIN
bin/PolygonFill.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

2
clean Executable file
View File

@ -0,0 +1,2 @@
find . -type f -name "*.class" -delete
rm manifest

15
run Executable file
View File

@ -0,0 +1,15 @@
PROGRAM_NAME="PolygonFill"
MAIN_CLASS="sig.PolygonFill"
rm -Rf bin/*
javac -Xlint:unchecked -cp src -d bin src/sig/${PROGRAM_NAME}.java
printf "\n\n\nGenerating Manifest...\n\n"
touch manifest
echo "Main-Class: ${MAIN_CLASS}" >> manifest
printf "\n\n\nCreating Jar...\n\n"
cd bin
jar cfm ${PROGRAM_NAME}.jar ../manifest sig
printf "\n\n\nRunning Program...\n\n"
java -jar ${PROGRAM_NAME}.jar
cd ..
./clean