fail if api docs are missing from solr (this bit us in 3.4.0)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1171167 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-09-15 16:36:09 +00:00
parent 44386401f6
commit b25b42ae2c
1 changed files with 6 additions and 0 deletions

View File

@ -338,6 +338,12 @@ def verifyUnpacked(project, artifact, unpackPath, version):
raise RuntimeError('%s: file "%s" is missing from artifact %s' % (project, fileName, artifact))
l.remove(fileName)
if project == 'solr':
# Make sure the api jdocs are there (this was missing in 3.4.0):
for path in ('docs', 'docs/api', 'docs/api/solrj', 'docs/api/test-framework'):
if not os.path.exists('%s/index.html' % path):
raise RuntimeError('cannot find api javadocs for "%s"' % path)
if project == 'lucene':
extras = ('lib', 'docs', 'contrib')
if isSrc: