Commit afd230af authored by Romain Gilles's avatar Romain Gilles

Remove commented line. Add a last step that remove the target folder after the…

Remove commented line. Add a last step that remove the target folder after the build and the tests execution.
parent 3bb9b839
...@@ -30,14 +30,15 @@ if [[ "$testdir" != "$thisdir" ]]; then ...@@ -30,14 +30,15 @@ if [[ "$testdir" != "$thisdir" ]]; then
fi fi
find ../ -name "*.class" | xargs rm find ../ -name "*.class" | xargs rm
#find .. -type f -name "*.class" -exec rm {} \;
if [[ -e "${targetdir}" ]]; then if [[ -e "${targetdir}" ]]; then
echo "clean target" echo "clean target"
rm -fr ${targetdir} rm -rf ${targetdir}
fi fi
mkdir ${targetdir} mkdir ${targetdir}
javac -d ${targetdir} -classpath ${testdir}/../java:${testdir}:${testdir}/namespace_test JavaTest.java javac -d ${targetdir} -classpath ${testdir}/../java:${testdir}:${testdir}/namespace_test JavaTest.java
java -classpath ${targetdir} JavaTest java -classpath ${targetdir} JavaTest
rm -rf ${targetdir}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment