Add remove of remaining class files before running the build

This commit is contained in:
Romain Gilles 2016-08-30 10:18:47 +02:00
parent 5e7bfd0461
commit 3bb9b839b8
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# Copyright 2014 Google Inc. All rights reserved.
#
@ -29,7 +29,10 @@ if [[ "$testdir" != "$thisdir" ]]; then
exit 1
fi
if [ -e "${targetdir}" ]; then
find ../ -name "*.class" | xargs rm
#find .. -type f -name "*.class" -exec rm {} \;
if [[ -e "${targetdir}" ]]; then
echo "clean target"
rm -fr ${targetdir}
fi