Remove commented line. Add a last step that remove the target folder after the build and the tests execution.

This commit is contained in:
Romain Gilles
2016-09-01 13:01:07 +02:00
parent 3bb9b839b8
commit afd230af8d

View File

@@ -30,14 +30,15 @@ if [[ "$testdir" != "$thisdir" ]]; then
fi
find ../ -name "*.class" | xargs rm
#find .. -type f -name "*.class" -exec rm {} \;
if [[ -e "${targetdir}" ]]; then
echo "clean target"
rm -fr ${targetdir}
rm -rf ${targetdir}
fi
mkdir ${targetdir}
javac -d ${targetdir} -classpath ${testdir}/../java:${testdir}:${testdir}/namespace_test JavaTest.java
java -classpath ${targetdir} JavaTest
rm -rf ${targetdir}