added Manifest and new build script

This commit is contained in:
Dorian Zedler 2020-02-25 13:28:10 +01:00
parent 5a136f4c9b
commit cc65762f95
4 changed files with 15 additions and 2 deletions

2
build/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/compiled/
/ConnectFour.jar

1
build/MANIFEST.MF Normal file
View file

@ -0,0 +1 @@
Main-Class: de.itsblue.ConnectFour.ConnectFour

12
build/build.sh Executable file
View file

@ -0,0 +1,12 @@
if [ $1 == 'clean' ]
then
rm -r ./compiled/*
rm ConnectFour.jar
else
mkdir ./compiled
cd ./compiled
find ../../src -name "*.java" > sources.txt
javac -d ./ @sources.txt
find -name "*.class" > compiledSources.txt
jar cvmf ../MANIFEST.MF ../ConnectFour.jar @compiledSources.txt
fi

View file

@ -1,2 +0,0 @@
javac -d ./ ../*.java ../player/*.java