Index: dev-tools/scripts/checkJavaDocs.py
===================================================================
--- dev-tools/scripts/checkJavaDocs.py	(revision 0)
+++ dev-tools/scripts/checkJavaDocs.py	(working copy)
@@ -0,0 +1,48 @@
+import sys
+import os
+import re
+
+reHREF = re.compile('<a.*?>(.*?)</a>', re.IGNORECASE)
+
+def checkPackageSummaries(root):
+  """
+  Just checks for blank summary lines in package-summary.html; returns
+  True if there are problems.
+  """
+  
+  #for dirPath, dirNames, fileNames in os.walk('%s/lucene/build/docs/api' % root):
+
+  if False:
+    os.chdir(root)
+    print
+    print 'Run "ant javadocs" > javadocs.log...'
+    if os.system('ant javadocs > javadocs.log 2>&1'):
+      print '  FAILED'
+      sys.exit(1)
+    
+  print
+  print 'Check...'
+  anyMissing = False
+  for dirPath, dirNames, fileNames in os.walk(root):
+    if 'package-summary.html' in fileNames:
+      fullPath = '%s/package-summary.html' % dirPath
+      printed = False
+      f = open(fullPath)
+      lastLine = None
+      for line in f.readlines():
+        lineLower = line.strip().lower()
+        if lineLower in ('<td>&nbsp;</td>', '<td></td>'):
+          m = reHREF.search(lastLine)
+          if not printed:
+            print
+            print fullPath
+            printed = True
+          print '  missing: %s' % m.group(1)
+          anyMissing = True
+        lastLine = line
+      f.close()
+
+  return anyMissing
+
+if __name__ == '__main__':
+  checkPackageSummaries(sys.argv[1])

Property changes on: dev-tools/scripts/checkJavaDocs.py
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
Index: dev-tools/scripts/smokeTestRelease.py
===================================================================
--- dev-tools/scripts/smokeTestRelease.py	(revision 1303478)
+++ dev-tools/scripts/smokeTestRelease.py	(working copy)
@@ -26,6 +26,7 @@
 import xml.etree.ElementTree as ET
 import filecmp
 import platform
+import checkJavaDocs
 
 # This tool expects to find /lucene and /solr off the base URL.  You
 # must have a working gpg, tar, unzip in your path.  This has been
@@ -383,6 +384,9 @@
       # test javadocs
       print '    generate javadocs w/ Java 5...'
       run('export JAVA_HOME=%s; ant javadocs' % JAVA5_HOME, '%s/javadocs.log' % unpackPath)
+      if checkJavaDocs.checkPackageSummaries('lucene/build/docs/api'):
+        raise RuntimeError('javadoc summaries failed')
+      
     else:
       print '    run tests w/ Java 6...'
       run('export JAVA_HOME=%s; ant test' % JAVA6_HOME, '%s/test.log' % unpackPath)
