You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2012/04/07 00:35:56 UTC

svn commit: r1310623 - /lucene/dev/nightly/hudson-settings.sh

Author: sarowe
Date: Fri Apr  6 22:35:56 2012
New Revision: 1310623

URL: http://svn.apache.org/viewvc?rev=1310623&view=rev
Log:
LUCENE-3959: fail the build if @author tags are found in .java files

Modified:
    lucene/dev/nightly/hudson-settings.sh

Modified: lucene/dev/nightly/hudson-settings.sh
URL: http://svn.apache.org/viewvc/lucene/dev/nightly/hudson-settings.sh?rev=1310623&r1=1310622&r2=1310623&view=diff
==============================================================================
--- lucene/dev/nightly/hudson-settings.sh (original)
+++ lucene/dev/nightly/hudson-settings.sh Fri Apr  6 22:35:56 2012
@@ -51,6 +51,15 @@ if [ -n "$NOCOMMITS" ]; then
     exit 1
   fi
 fi
+AUTHOR_TAGS=`find . -name '*.java' | grep -v '/backwards/' | xargs egrep -li -e '@author'`
+cd $WORKSPACE
+if [ -n "$AUTHOR_TAGS" ]; then
+  echo "Found the following @author tags:"
+  echo "$AUTHOR_TAGS"
+  if [ -z "$IGNORE_AUTHOR_TAGS" ]; then
+    exit 1
+  fi
+fi
 set -e
 set -x