Skip to content

Apache Lucene open-source search software

Improve permgen usage and speed up rat-sources by reusing taskdef

Uwe Schindler67b1c87c8641
diff --git a/lucene/build.xml b/lucene/build.xml
index 9d765151e36..613fb236dd0 100644
--- a/lucene/build.xml
+++ b/lucene/build.xml
@@ -299,13 +299,15 @@
failonerror="true"/>
</target>
- <target name="rat-sources">
- <sequential>
- <ant dir="core" target="rat-sources" inheritall="false"/>
- <ant dir="test-framework" target="rat-sources" inheritall="false"/>
- <ant dir="tools" target="rat-sources" inheritall="false"/>
- <modules-crawl target="rat-sources" failonerror="true"/>
- </sequential>
+ <!-- rat-sources-typedef is *not* a useless dependency. do not remove -->
+ <target name="rat-sources" depends="rat-sources-typedef">
+ <subant target="rat-sources" failonerror="true" inheritall="false">
+ <propertyset refid="uptodate.and.compiled.properties"/>
+ <fileset dir="core" includes="build.xml"/>
+ <fileset dir="test-framework" includes="build.xml"/>
+ <fileset dir="tools" includes="build.xml"/>
+ </subant>
+ <modules-crawl target="rat-sources"/>
</target>
<!-- ================================================================== -->
diff --git a/solr/build.xml b/solr/build.xml
index 6a005188b3a..2d9f8520ae3 100644
--- a/solr/build.xml
+++ b/solr/build.xml
@@ -243,13 +243,14 @@
</target>
<!-- rat sources -->
- <target name="rat-sources">
- <sequential>
- <ant dir="core" target="rat-sources" inheritall="false"/>
- <ant dir="solrj" target="rat-sources" inheritall="false"/>
- <ant dir="test-framework" target="rat-sources" inheritall="false"/>
- <contrib-crawl target="rat-sources" failonerror="true"/>
- </sequential>
+ <!-- rat-sources-typedef is *not* a useless dependency. do not remove -->
+ <target name="rat-sources" depends="rat-sources-typedef">
+ <subant target="rat-sources" inheritall="false" >
+ <propertyset refid="uptodate.and.compiled.properties"/>
+ <fileset dir="core" includes="build.xml"/>
+ <fileset dir="solrj" includes="build.xml"/>
+ <fileset dir="test-framework" includes="build.xml"/>
+ </subant>
</target>
<!-- Clean targets -->