You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@yetus.apache.org by aw...@apache.org on 2022/05/04 17:15:47 UTC

[yetus] 12/24: fix patch process to log a more coherent message when the eclipse jars are not right

This is an automated email from the ASF dual-hosted git repository.

aw pushed a commit to tag prehistory
in repository https://gitbox.apache.org/repos/asf/yetus.git

commit a8e1b95fb07f1453993c0a531390061c6eb51f15
Author: Nigel Daley <ni...@apache.org>
AuthorDate: Wed Aug 27 06:08:36 2008 +0000

    fix patch process to log a more coherent message when the eclipse jars are not right
    
    git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@689363 13f79535-47bb-0310-9956-ffa450edef68
---
 src/test/bin/test-patch.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/test/bin/test-patch.sh b/src/test/bin/test-patch.sh
index c4ca7fec..7e121e56 100755
--- a/src/test/bin/test-patch.sh
+++ b/src/test/bin/test-patch.sh
@@ -488,11 +488,15 @@ runContribTestOnEclipseFiles () {
   export ECLIPSE_DECLARED_SRC=$(sed -n 's@.*kind="src".*path="\(.*\)".*@\1@p' < .eclipse.templates/.classpath |sort)
 
   if [ "${DECLARED_JARS}" != "${PRESENT_JARS}" ]; then
-    echo "Some jars are not declared in the Eclipse project."
+    echo "
+FAILED. Some jars are not declared in the Eclipse project.
+  Declared jars: ${DECLARED_JARS}
+  Present jars:  ${PRESENT_JARS}"
     return 1
   fi
   for dir in $ECLIPSE_DECLARED_SRC; do
-    [ '!' -d $dir ] && echo "$dir is referenced in the Eclipse project although it doesn't exists anymore." && return 1
+    [ '!' -d $dir ] && echo "
+FAILED: $dir is referenced in the Eclipse project although it doesn't exists anymore." && return 1
   done
   return 0
 }