Return-Path: X-Original-To: apmail-yetus-commits-archive@minotaur.apache.org Delivered-To: apmail-yetus-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D6A4175A1 for ; Sat, 10 Oct 2015 16:00:31 +0000 (UTC) Received: (qmail 30395 invoked by uid 500); 10 Oct 2015 16:00:31 -0000 Delivered-To: apmail-yetus-commits-archive@yetus.apache.org Received: (qmail 30372 invoked by uid 500); 10 Oct 2015 16:00:31 -0000 Mailing-List: contact commits-help@yetus.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@yetus.apache.org Delivered-To: mailing list commits@yetus.apache.org Received: (qmail 30359 invoked by uid 99); 10 Oct 2015 16:00:31 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Oct 2015 16:00:31 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E4FBCE0060; Sat, 10 Oct 2015 16:00:30 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aw@apache.org To: commits@yetus.apache.org Date: Sat, 10 Oct 2015 16:00:30 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] yetus git commit: YETUS-67. XML plugin raises a false alarm against a removed file Repository: yetus Updated Branches: refs/heads/master 82b4d0a54 -> c44fd145c YETUS-67. XML plugin raises a false alarm against a removed file Signed-off-by: Allen Wittenauer Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/0cd32604 Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/0cd32604 Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/0cd32604 Branch: refs/heads/master Commit: 0cd326049c7b91daa63f88c90e37e2208a733c43 Parents: 82b4d0a Author: Kengo Seki Authored: Sun Oct 11 00:10:10 2015 +0900 Committer: Allen Wittenauer Committed: Sat Oct 10 08:57:49 2015 -0700 ---------------------------------------------------------------------- dev-support/test-patch.d/xml.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/0cd32604/dev-support/test-patch.d/xml.sh ---------------------------------------------------------------------- diff --git a/dev-support/test-patch.d/xml.sh b/dev-support/test-patch.d/xml.sh index b59df5c..29df165 100755 --- a/dev-support/test-patch.d/xml.sh +++ b/dev-support/test-patch.d/xml.sh @@ -53,12 +53,11 @@ function xml_postcompile pushd "${BASEDIR}" >/dev/null for i in ${CHANGED_FILES}; do - if [[ ! ${i} =~ \.xml$ ]]; then - continue - fi - ${js} -e "XMLDocument(arguments[0])" "${i}" >> "${PATCH_DIR}/xml.txt" 2>&1 - if [[ $? != 0 ]]; then - ((count=count+1)) + if [[ ${i} =~ \.xml$ && -f ${i} ]]; then + ${js} -e "XMLDocument(arguments[0])" "${i}" >> "${PATCH_DIR}/xml.txt" 2>&1 + if [[ $? != 0 ]]; then + ((count=count+1)) + fi fi done