Apache Solr open-source search software
LUCENE-4409: implement javadocs linting with eclipse ecj compiler
Robert Muir798fd49a763d
diff --git a/lucene/analysis/build.xml b/lucene/analysis/build.xmlindex 2636bd22f9d..27a600934fc 100644--- a/lucene/analysis/build.xml+++ b/lucene/analysis/build.xml@@ -126,5 +126,9 @@<target name="rat-sources"><forall-analyzers target="rat-sources"/></target>++ <target name="-ecj-javadoc-lint">+ <forall-analyzers target="-ecj-javadoc-lint"/>+ </target></project>diff --git a/lucene/build.xml b/lucene/build.xmlindex f1db31e8562..ecf40e58966 100644--- a/lucene/build.xml+++ b/lucene/build.xml@@ -225,9 +225,16 @@<target name="javadocs" description="Generate javadoc" depends="javadocs-lucene-core, javadocs-modules, javadocs-test-framework"/><!-- we check for broken links across all documentation -->- <target name="documentation-lint" depends="documentation">+ <target name="documentation-lint" depends="compile-test-framework,documentation"><sequential>+ <subant target="-ecj-javadoc-lint" failonerror="true" inheritall="false">+ <fileset dir="core" includes="build.xml"/>+ <fileset dir="test-framework" includes="build.xml"/>+ </subant>+ <modules-crawl target="-ecj-javadoc-lint"/>+ <echo message="Checking for broken links..."/><check-broken-links dir="build/docs"/>+ <echo message="Checking for missing docs..."/><!-- TODO: change this level=method --><check-missing-javadocs dir="build/docs" level="class"/><!-- too many classes to fix overall to just enablediff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex b457a26ee9a..dec17b05734 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -169,6 +169,7 @@<property name="src.dir" location="src/java"/><property name="tests.src.dir" location="src/test"/>+ <available property="module.has.tests" type="dir" file="${tests.src.dir}"/><property name="build.dir" location="build"/><!-- Needed in case a module needs the original build, also for compile-tools to be called from a module --><property name="common.build.dir" location="${common.dir}/build"/>@@ -1475,6 +1476,49 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites</sequential></macrodef>+ <target name="-ecj-javadoc-lint" depends="-ecj-javadoc-lint-src,-ecj-javadoc-lint-tests"/>++ <target name="-ecj-javadoc-lint-src">+ <ecj-macro srcdir="${src.dir}" configuration="${common.dir}/tools/javadoc/ecj.javadocs.prefs">+ <classpath refid="classpath"/>+ </ecj-macro>+ </target>++ <target name="-ecj-javadoc-lint-tests" if="module.has.tests">+ <ecj-macro srcdir="${tests.src.dir}" configuration="${common.dir}/tools/javadoc/ecj.javadocs.prefs">+ <classpath refid="test.classpath"/>+ </ecj-macro>+ </target>++ <macrodef name="ecj-macro">+ <attribute name="srcdir"/>+ <attribute name="javac.source" default="${javac.source}"/>+ <attribute name="includeantruntime" default="${javac.includeAntRuntime}" />+ <attribute name="configuration"/>++ <element name="nested" implicit="yes" optional="yes"/>++ <sequential>+ <ivy:cachepath+ organisation="org.eclipse.jdt.core.compiler" module="ecj"+ revision="3.7.2" inline="true" conf="master" type="jar"+ pathid="ecj.classpath" log="download-only" />+ <javac+ compiler="org.eclipse.jdt.core.JDTCompilerAdapter"+ includeAntRuntime="@{includeantruntime}"+ encoding="${build.encoding}"+ srcdir="@{srcdir}"+ source="@{javac.source}"+ target="@{javac.source}">+ <nested/>+ <compilerclasspath>+ <path refid="ecj.classpath"/>+ </compilerclasspath>+ <compilerarg line="-d none -enableJavadoc -properties @{configuration}"/>+ </javac>+ </sequential>+ </macrodef>+<property name="failonjavadocwarning" value="true"/><macrodef name="invoke-javadoc"><element name="sources" optional="yes"/>diff --git a/lucene/module-build.xml b/lucene/module-build.xmlindex f10f8b847d0..4d4246b2729 100644--- a/lucene/module-build.xml+++ b/lucene/module-build.xml@@ -28,8 +28,6 @@<import file="common-build.xml"/>- <available property="module.has.tests" type="dir" file="src/test" />-<!-- if you extend the classpath refid in one contrib's build.xml (add JARs), use this as basis: --><path id="base.classpath"><pathelement location="${common.dir}/build/core/classes/java"/>diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/package-info.java b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/package-info.javadeleted file mode 100644index d67148b2f13..00000000000--- a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/package-info.java+++ /dev/null@@ -1,24 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Bounding Box Spatial Strategy- *- * Index a shape extent using 4 numeric fields and a flag to say if it crosses the dateline- */-package org.apache.lucene.spatial.bbox;-diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/package.html b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/package.htmlnew file mode 100644index 00000000000..7e34e71f319--- /dev/null+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/bbox/package.html@@ -0,0 +1,23 @@+<!--+ Licensed to the Apache Software Foundation (ASF) under one or more+ contributor license agreements. See the NOTICE file distributed with+ this work for additional information regarding copyright ownership.+ The ASF licenses this file to You under the Apache License, Version 2.0+ (the "License"); you may not use this file except in compliance with+ the License. You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.+-->+<html>+<body>+Bounding Box Spatial Strategy+<p>+Index a shape extent using 4 numeric fields and a flag to say if it crosses the dateline+</body>+</html>diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/package-info.java b/lucene/spatial/src/java/org/apache/lucene/spatial/package-info.javadeleted file mode 100644index 618e5af1134..00000000000--- a/lucene/spatial/src/java/org/apache/lucene/spatial/package-info.java+++ /dev/null@@ -1,26 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */---/**- * Lucene spatial search- *- * Check:- * http://blog.notdot.net/2009/11/Damn-Cool-Algorithms-Spatial-indexing-with-Quadtrees-and-Hilbert-Curves- */-package org.apache.lucene.spatial;-diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/package.html b/lucene/spatial/src/java/org/apache/lucene/spatial/package.htmlnew file mode 100644index 00000000000..1099216c1a9--- /dev/null+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/package.html@@ -0,0 +1,24 @@+<!--+ Licensed to the Apache Software Foundation (ASF) under one or more+ contributor license agreements. See the NOTICE file distributed with+ this work for additional information regarding copyright ownership.+ The ASF licenses this file to You under the Apache License, Version 2.0+ (the "License"); you may not use this file except in compliance with+ the License. You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.+-->+<html>+<body>+Lucene spatial search+<p>+Check:+http://blog.notdot.net/2009/11/Damn-Cool-Algorithms-Spatial-indexing-with-Quadtrees-and-Hilbert-Curves+</body>+</html>diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/package-info.java b/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/package-info.javadeleted file mode 100644index e4ea3bc7fc5..00000000000--- a/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/package-info.java+++ /dev/null@@ -1,22 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Prefix Tree Strategy- */-package org.apache.lucene.spatial.prefix;-diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/package.html b/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/package.htmlnew file mode 100644index 00000000000..fe4cc69e1d6--- /dev/null+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/package.html@@ -0,0 +1,21 @@+<!--+ Licensed to the Apache Software Foundation (ASF) under one or more+ contributor license agreements. See the NOTICE file distributed with+ this work for additional information regarding copyright ownership.+ The ASF licenses this file to You under the Apache License, Version 2.0+ (the "License"); you may not use this file except in compliance with+ the License. You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.+-->+<html>+<body>+Prefix Tree Strategy+</body>+</html>diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/package-info.java b/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/package-info.javadeleted file mode 100644index 563501814b4..00000000000--- a/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/package-info.java+++ /dev/null@@ -1,28 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * The Spatial Prefix package supports spatial indexing by index-time tokens- * where adding characters to a string gives greater resolution.- *- * Potential Implementations include:- * * http://en.wikipedia.org/wiki/Quadtree- * * http://en.wikipedia.org/wiki/Geohash- * * http://healpix.jpl.nasa.gov/- */-package org.apache.lucene.spatial.prefix.tree;-diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/package.html b/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/package.htmlnew file mode 100644index 00000000000..4d0df22d518--- /dev/null+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/prefix/tree/package.html@@ -0,0 +1,29 @@+<!--+ Licensed to the Apache Software Foundation (ASF) under one or more+ contributor license agreements. See the NOTICE file distributed with+ this work for additional information regarding copyright ownership.+ The ASF licenses this file to You under the Apache License, Version 2.0+ (the "License"); you may not use this file except in compliance with+ the License. You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.+-->+<html>+<body>+The Spatial Prefix package supports spatial indexing by index-time tokens+where adding characters to a string gives greater resolution.+<p>+Potential Implementations include:+<ul>+<li>http://en.wikipedia.org/wiki/Quadtree+<li>http://en.wikipedia.org/wiki/Geohash+<li>http://healpix.jpl.nasa.gov/+</ul>+</body>+</html>diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/query/package-info.java b/lucene/spatial/src/java/org/apache/lucene/spatial/query/package-info.javadeleted file mode 100644index 120004d3265..00000000000--- a/lucene/spatial/src/java/org/apache/lucene/spatial/query/package-info.java+++ /dev/null@@ -1,25 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */--/**- * Spatial Query options- * <ul>- * <li>useful for client side requests</li>- * </ul>- */-package org.apache.lucene.spatial.query;-diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/query/package.html b/lucene/spatial/src/java/org/apache/lucene/spatial/query/package.htmlnew file mode 100644index 00000000000..1a71061b744--- /dev/null+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/query/package.html@@ -0,0 +1,21 @@+<!--+ Licensed to the Apache Software Foundation (ASF) under one or more+ contributor license agreements. See the NOTICE file distributed with+ this work for additional information regarding copyright ownership.+ The ASF licenses this file to You under the Apache License, Version 2.0+ (the "License"); you may not use this file except in compliance with+ the License. You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.+-->+<html>+<body>+Spatial Query options useful for client side requests+</body>+</html>diff --git a/lucene/tools/javadoc/ecj.javadocs.prefs b/lucene/tools/javadoc/ecj.javadocs.prefsnew file mode 100644index 00000000000..c4952058f69--- /dev/null+++ b/lucene/tools/javadoc/ecj.javadocs.prefs@@ -0,0 +1,91 @@+#Sun Sep 23 20:55:03 EDT 2012+eclipse.preferences.version=1+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6+org.eclipse.jdt.core.compiler.compliance=1.6+org.eclipse.jdt.core.compiler.doc.comment.support=enabled+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=ignore+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore+org.eclipse.jdt.core.compiler.problem.comparingIdentical=ignore+org.eclipse.jdt.core.compiler.problem.deadCode=ignore+org.eclipse.jdt.core.compiler.problem.deprecation=ignore+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled+org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore+org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=ignore+org.eclipse.jdt.core.compiler.problem.forbiddenReference=ignore+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=ignore+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=ignore+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=error+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=ignore+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public+org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=all_standard_tags+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=ignore+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=ignore+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore+org.eclipse.jdt.core.compiler.problem.nullReference=ignore+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=ignore+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore+org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore+org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore+org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore+org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore+org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=ignore+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=ignore+org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=ignore+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled+org.eclipse.jdt.core.compiler.problem.unusedImport=ignore+org.eclipse.jdt.core.compiler.problem.unusedLabel=ignore+org.eclipse.jdt.core.compiler.problem.unusedLocal=ignore+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=ignore+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=ignore+org.eclipse.jdt.core.compiler.source=1.6diff --git a/solr/build.xml b/solr/build.xmlindex 938bbfb4213..197cbe75b8c 100644--- a/solr/build.xml+++ b/solr/build.xml@@ -522,8 +522,16 @@<!-- TODO: does solr have any other docs we should check? --><!-- TODO: also integrate checkJavaDocs.py, which does more checks -->- <target name="documentation-lint" depends="documentation">+ <target name="documentation-lint" depends="compile-solr-test-framework,documentation">+ <subant target="-ecj-javadoc-lint" failonerror="true" inheritall="false">+ <fileset dir="core" includes="build.xml"/>+ <fileset dir="solrj" includes="build.xml"/>+ <fileset dir="test-framework" includes="build.xml"/>+ </subant>+ <contrib-crawl target="-ecj-javadoc-lint"/>+ <echo message="Checking for broken links..."/><check-broken-links dir="${javadoc.dir}"/>+ <echo message="Checking for malformed docs..."/><!-- TODO: add missing package.htmls and bump this to level=package --><check-missing-javadocs dir="${javadoc.dir}" level="none"/></target>diff --git a/solr/contrib/dataimporthandler-extras/build.xml b/solr/contrib/dataimporthandler-extras/build.xmlindex 9ba37a5d281..b2fb410d4b0 100644--- a/solr/contrib/dataimporthandler-extras/build.xml+++ b/solr/contrib/dataimporthandler-extras/build.xml@@ -89,6 +89,8 @@</ant></target>+ <target name="-ecj-javadoc-lint-tests" depends="compile-solr-dataimporthandler-tests,common.-ecj-javadoc-lint-tests"/>+<target name="compile-core" depends="compile-solr-dataimporthandler,resolve-extraction-libs,solr-contrib-build.compile-core"/><target name="compile-test" depends="compile-solr-dataimporthandler-tests, common-solr.compile-test"/></project>diff --git a/solr/solrj/build.xml b/solr/solrj/build.xmlindex 429f4032348..758734a7f50 100644--- a/solr/solrj/build.xml+++ b/solr/solrj/build.xml@@ -46,6 +46,20 @@</sequential></target>+ <!-- Specialized to use lucene's classpath too, because it refs e.g. qp syntax+ (even though it doesnt compile with it)+ TODO: would be nice to fix this up better, but its hard because of+ the different ways solr links to lucene javadocs -->+ <target name="-ecj-javadoc-lint-src">+ <ecj-macro srcdir="${src.dir}" configuration="${common.dir}/tools/javadoc/ecj.javadocs.prefs">+ <classpath>+ <path refid="classpath"/>+ <path refid="solr.lucene.libs"/>+ </classpath>+ </ecj-macro>+ </target>++<target name="dist" depends="common-solr.dist"><mkdir dir="${dist}/solrj-lib" /><copy todir="${dist}/solrj-lib">