added Manifest and new build script
This commit is contained in:
parent
5a136f4c9b
commit
cc65762f95
4 changed files with 15 additions and 2 deletions
2
build/.gitignore
vendored
Normal file
2
build/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/compiled/
|
||||||
|
/ConnectFour.jar
|
1
build/MANIFEST.MF
Normal file
1
build/MANIFEST.MF
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Main-Class: de.itsblue.ConnectFour.ConnectFour
|
12
build/build.sh
Executable file
12
build/build.sh
Executable 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
|
|
@ -1,2 +0,0 @@
|
||||||
javac -d ./ ../*.java ../player/*.java
|
|
||||||
|
|
Reference in a new issue