From cc65762f95bb0b1c96b143ba3a122f850f36ba0d Mon Sep 17 00:00:00 2001 From: dorian Date: Tue, 25 Feb 2020 13:28:10 +0100 Subject: [PATCH] added Manifest and new build script --- build/.gitignore | 2 ++ build/MANIFEST.MF | 1 + build/build.sh | 12 ++++++++++++ src/de/itsblue/ConnectFour/build/build.sh | 2 -- 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 build/.gitignore create mode 100644 build/MANIFEST.MF create mode 100755 build/build.sh delete mode 100755 src/de/itsblue/ConnectFour/build/build.sh diff --git a/build/.gitignore b/build/.gitignore new file mode 100644 index 0000000..b069cd1 --- /dev/null +++ b/build/.gitignore @@ -0,0 +1,2 @@ +/compiled/ +/ConnectFour.jar diff --git a/build/MANIFEST.MF b/build/MANIFEST.MF new file mode 100644 index 0000000..c7523de --- /dev/null +++ b/build/MANIFEST.MF @@ -0,0 +1 @@ +Main-Class: de.itsblue.ConnectFour.ConnectFour diff --git a/build/build.sh b/build/build.sh new file mode 100755 index 0000000..52162d2 --- /dev/null +++ b/build/build.sh @@ -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 diff --git a/src/de/itsblue/ConnectFour/build/build.sh b/src/de/itsblue/ConnectFour/build/build.sh deleted file mode 100755 index 5d8872b..0000000 --- a/src/de/itsblue/ConnectFour/build/build.sh +++ /dev/null @@ -1,2 +0,0 @@ -javac -d ./ ../*.java ../player/*.java -