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

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1385178 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2012-09-15 21:08:18 +00:00
parent 6b54b1a712
commit 67b1c87c86
2 changed files with 17 additions and 14 deletions

View File

@ -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>
<!-- ================================================================== -->

View File

@ -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 -->