Apache Lucene open-source search software
LUCENE-1866: enable rat-sources for all lucene/contrib/modules/solr src and tests
Robert Muir0d9559e1b4f7
diff --git a/lucene/build.xml b/lucene/build.xmlindex 4205d3c756d..3fe5b815403 100644--- a/lucene/build.xml+++ b/lucene/build.xml@@ -602,22 +602,6 @@<patch patchfile="${patch.file}" strip="0"/></target>- <target name="rat-sources-typedef">- <typedef resource="org/apache/rat/anttasks/antlib.xml" uri="antlib:rat.anttasks">- <classpath>- <fileset dir="." includes="rat*.jar"/>- </classpath>- </typedef>- </target>-- <target name="rat-sources" depends="rat-sources-typedef"- description="runs the tasks over src/java">- <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">- <fileset dir="src/java">- </fileset>- </rat:report>- </target>-<target name="jar-core-test" depends="compile-test"><!-- load the list of test files into a property named core.test.files --><property file="../dev-tools/testjar/testfiles" />diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex be42d5bd648..86e31dd6382 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -638,6 +638,22 @@<target name="default" depends="jar-core"/>+ <target name="rat-sources-typedef">+ <typedef resource="org/apache/rat/anttasks/antlib.xml" uri="antlib:rat.anttasks">+ <classpath>+ <fileset dir="." includes="rat*.jar"/>+ </classpath>+ </typedef>+ </target>++ <target name="rat-sources" depends="rat-sources-typedef"+ description="runs the tasks over source and test files">+ <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">+ <fileset dir="${src.dir}"/>+ <fileset dir="${tests.src.dir}"/>+ </rat:report>+ </target>+<!--+| M A C R O S+-->diff --git a/solr/build.xml b/solr/build.xmlindex a29cb50ab62..c3ef9682c18 100644--- a/solr/build.xml+++ b/solr/build.xml@@ -963,6 +963,8 @@</fileset><fileset dir="contrib/dataimporthandler/src/main/java"/><fileset dir="contrib/dataimporthandler/src/test/java"/>+ <fileset dir="contrib/dataimporthandler/src/extras/main/java"/>+ <fileset dir="contrib/dataimporthandler/src/extras/test/java"/><fileset dir="contrib/clustering/src/main/java"/><fileset dir="contrib/clustering/src/test/java"/><fileset dir="contrib/extraction/src/main/java"/>