Skip to content
Permalink
Browse files

extracted SINK constant in scripts

  • Loading branch information...
maciejmikosik committed Mar 29, 2015
1 parent 515ab88 commit b03045334e4d71ff5cc658567cf5667e5fac90d4
Showing with 15 additions and 19 deletions.
  1. +1 −0 .gitignore
  2. +0 −2 build/.gitignore
  3. +8 −12 build/build
  4. +6 −5 build/test
@@ -1,2 +1,3 @@
bin
.sink

This file was deleted.

@@ -4,51 +4,47 @@ HERE=`dirname ${0}`
cd "${HERE}"
cd ..
PROJECT=`pwd`
SINK=".sink"

#cleanup
rm \
--recursive \
--force \
./build/sink/building
${SINK}

#compile
mkdir \
--parents \
./build/sink/building
${SINK}
javac \
-classpath "./main/jar/junit-4.12.jar:./main/jar/hamcrest-all-1.3.jar" \
-sourcepath "./main/java" \
-source 1.7 \
-target 1.7 \
-d "./build/sink/building" \
-d "${SINK}" \
./main/java/org/quackery/Build.java

#copy sources
cp \
--recursive \
./main/java/. \
./build/sink/building
${SINK}

#zip jar
cd ./build/sink/building
cd ${SINK}
zip \
--quiet \
--recurse-paths \
./quackery.jar \
./*
cd "${PROJECT}"

#copy quackery.jar
cp \
./build/sink/building/quackery.jar \
./build/sink

echo ""
echo "BUILD SUCCESSFUL"
echo "created ${PROJECT}/build/sink/quackery.jar"
echo "created ${PROJECT}/${SINK}/quackery.jar"

#cleanup
rm \
--recursive \
--force \
./build/sink/building
${SINK}/*/
@@ -4,32 +4,33 @@ HERE=`dirname ${0}`
cd "${HERE}"
cd ..
PROJECT=`pwd`
SINK="./.sink"

#cleanup
rm \
--recursive \
--force \
./build/sink/building
${SINK}

#compile
mkdir \
--parents \
./build/sink/building
${SINK}
javac \
-classpath "./main/jar/junit-4.12.jar:./main/jar/hamcrest-all-1.3.jar" \
-sourcepath "./main/java:./test/java" \
-source 1.7 \
-target 1.7 \
-d "./build/sink/building" \
-d "${SINK}" \
./main/java/org/quackery/Build.java \
./test/java/org/quackery/test_all.java

java \
-classpath "./build/sink/building:./main/jar/junit-4.12.jar:./main/jar/hamcrest-all-1.3.jar" \
-classpath "${SINK}:./main/jar/junit-4.12.jar:./main/jar/hamcrest-all-1.3.jar" \
org.quackery.test_all

#cleanup
rm \
--recursive \
--force \
./build/sink/building
${SINK}

0 comments on commit b030453

Please sign in to comment.
You can’t perform that action at this time.