Create proper jar generation project

main
sigonasr2, Sig, Sigo 3 years ago
parent b203727aae
commit f59629cc29
  1. 4
      META-INF/MANIFEST.MF
  2. BIN
      PolygonFill.jar
  3. BIN
      bin/PolygonFill.jar
  4. BIN
      bin/sig/Color.class
  5. BIN
      bin/sig/Edge.class
  6. BIN
      bin/sig/Panel.class
  7. BIN
      bin/sig/Point.class
  8. BIN
      bin/sig/PolygonFill.class
  9. 2
      clean
  10. 15
      run

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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

15
run

@ -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
Loading…
Cancel
Save