From 3bb9b839b8aa5f8476126c9be067ae883f065099 Mon Sep 17 00:00:00 2001 From: Romain Gilles Date: Tue, 30 Aug 2016 10:18:47 +0200 Subject: [PATCH] Add remove of remaining class files before running the build --- tests/JavaTest.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/JavaTest.sh b/tests/JavaTest.sh index 5d4285259..679d5d315 100755 --- a/tests/JavaTest.sh +++ b/tests/JavaTest.sh @@ -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