Return-Path: X-Original-To: apmail-lucene-commits-archive@www.apache.org Delivered-To: apmail-lucene-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83AEFDABC for ; Thu, 26 Jul 2012 22:46:20 +0000 (UTC) Received: (qmail 86459 invoked by uid 500); 26 Jul 2012 22:46:20 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 86452 invoked by uid 99); 26 Jul 2012 22:46:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 22:46:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 22:46:17 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9A0682388A3D; Thu, 26 Jul 2012 22:45:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1366220 - in /lucene/dev/trunk: dev-tools/scripts/ lucene/ lucene/facet/src/java/ lucene/facet/src/java/org/apache/lucene/facet/ lucene/facet/src/java/org/apache/lucene/facet/search/results/ solr/core/src/java/org/apache/solr/util/ Date: Thu, 26 Jul 2012 22:45:32 -0000 To: commits@lucene.apache.org From: uschindler@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120726224532.9A0682388A3D@eris.apache.org> Author: uschindler Date: Thu Jul 26 22:45:31 2012 New Revision: 1366220 URL: http://svn.apache.org/viewvc?rev=1366220&view=rev Log: Fix javadocs-linter: Windows support, support for file:-URLs (now needed), fix broken XML-comments in some files Modified: lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py lucene/dev/trunk/lucene/build.xml lucene/dev/trunk/lucene/facet/src/java/org/apache/lucene/facet/package.html lucene/dev/trunk/lucene/facet/src/java/org/apache/lucene/facet/search/results/package.html lucene/dev/trunk/lucene/facet/src/java/overview.html lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/FileUtils.java Modified: lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py URL: http://svn.apache.org/viewvc/lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py?rev=1366220&r1=1366219&r2=1366220&view=diff ============================================================================== --- lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py (original) +++ lucene/dev/trunk/dev-tools/scripts/checkJavadocLinks.py Thu Jul 26 22:45:31 2012 @@ -65,7 +65,7 @@ class FindHyperlinks(HTMLParser): href = href.strip() self.links.append(urlparse.urljoin(self.baseURL, href)) else: - if self.baseURL.endswith(os.path.sep + 'AttributeSource.html'): + if self.baseURL.endswith('/AttributeSource.html'): # LUCENE-4010: AttributeSource's javadocs has an unescaped generics!! Seems to be a javadocs bug... (fixed in Java 7) pass else: @@ -126,7 +126,7 @@ def checkAll(dirName): main not in ('deprecated-list',): # Somehow even w/ java 7 generaged javadocs, # deprecated-list.html can fail to escape generics types - fullPath = os.path.join(root, f) + fullPath = os.path.join(root, f).replace(os.path.sep,'/') #print ' %s' % fullPath allFiles[fullPath] = parse(fullPath, open('%s/%s' % (root, f), encoding='UTF-8').read()) @@ -194,8 +194,13 @@ def checkAll(dirName): # on annotations it seems? pass elif link.startswith('file:'): - # TODO: fix file: paths (need to parse URL, unescape %XX and so on) - pass + filepath = urlparse.unquote(urlparse.urlparse(link).path) + if not (os.path.exists(filepath) or os.path.exists(filepath[1:])): + if not printed: + printed = True + print() + print(fullPath) + print(' BROKEN LINK: %s' % link) elif link not in allFiles: # We only load HTML... so if the link is another resource (eg # SweetSpotSimilarity refs Modified: lucene/dev/trunk/lucene/build.xml URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/build.xml?rev=1366220&r1=1366219&r2=1366220&view=diff ============================================================================== --- lucene/dev/trunk/lucene/build.xml (original) +++ lucene/dev/trunk/lucene/build.xml Thu Jul 26 22:45:31 2012 @@ -239,7 +239,7 @@ - + Modified: lucene/dev/trunk/lucene/facet/src/java/org/apache/lucene/facet/package.html URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/java/org/apache/lucene/facet/package.html?rev=1366220&r1=1366219&r2=1366220&view=diff ============================================================================== --- lucene/dev/trunk/lucene/facet/src/java/org/apache/lucene/facet/package.html (original) +++ lucene/dev/trunk/lucene/facet/src/java/org/apache/lucene/facet/package.html Thu Jul 26 22:45:31 2012 @@ -19,7 +19,6 @@ Faceted Indexing and Search - Provides faceted indexing and search capabilities. The userguide is recommended for a start. Modified: lucene/dev/trunk/lucene/facet/src/java/org/apache/lucene/facet/search/results/package.html URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/java/org/apache/lucene/facet/search/results/package.html?rev=1366220&r1=1366219&r2=1366220&view=diff ============================================================================== --- lucene/dev/trunk/lucene/facet/src/java/org/apache/lucene/facet/search/results/package.html (original) +++ lucene/dev/trunk/lucene/facet/src/java/org/apache/lucene/facet/search/results/package.html Thu Jul 26 22:45:31 2012 @@ -20,15 +20,8 @@

Results of Faceted Search

- \ No newline at end of file Modified: lucene/dev/trunk/lucene/facet/src/java/overview.html URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/java/overview.html?rev=1366220&r1=1366219&r2=1366220&view=diff ============================================================================== --- lucene/dev/trunk/lucene/facet/src/java/overview.html (original) +++ lucene/dev/trunk/lucene/facet/src/java/overview.html Thu Jul 26 22:45:31 2012 @@ -21,7 +21,6 @@ - Provides faceted indexing and search capabilities (checkout the userguide). Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/FileUtils.java URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/FileUtils.java?rev=1366220&r1=1366219&r2=1366220&view=diff ============================================================================== --- lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/FileUtils.java (original) +++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/FileUtils.java Thu Jul 26 22:45:31 2012 @@ -54,7 +54,7 @@ public class FileUtils { } /** - * Copied from Lucene's FSDirectory.fsync(String) + * Copied from Lucene's FSDirectory.fsync(String) * * @param fullFile the File to be synced to disk * @throws IOException if the file could not be synced