Add targets that could be used to build smaller jars
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131698 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
45f6b5b217
commit
07a0f5c777
131
build.xml
131
build.xml
|
@ -150,6 +150,137 @@
|
|||
manifest="${build.conf}/MANIFEST.MF"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Targets you might use to get smaller jar files - not recommended -->
|
||||
|
||||
<target name="splitjar" depends="jar"
|
||||
description="Create split jar">
|
||||
<jar jarfile="${build.home}/${component.name}-bag-${component.version}.jar"
|
||||
basedir="${build.classes}"
|
||||
manifest="${build.conf}/MANIFEST.MF">
|
||||
<include name="**/META-INF/*"/>
|
||||
<include name="**/BagUtils*.class"/>
|
||||
<include name="**/bag/*.class"/>
|
||||
</jar>
|
||||
<jar jarfile="${build.home}/${component.name}-bidimap-${component.version}.jar"
|
||||
basedir="${build.classes}"
|
||||
manifest="${build.conf}/MANIFEST.MF">
|
||||
<include name="**/META-INF/*"/>
|
||||
<include name="**/bidimap/*.class"/>
|
||||
</jar>
|
||||
<jar jarfile="${build.home}/${component.name}-buffer-${component.version}.jar"
|
||||
basedir="${build.classes}"
|
||||
manifest="${build.conf}/MANIFEST.MF">
|
||||
<include name="**/META-INF/*"/>
|
||||
<include name="**/BufferUtils*.class"/>
|
||||
<include name="**/buffer/*.class"/>
|
||||
</jar>
|
||||
<jar jarfile="${build.home}/${component.name}-comparators-${component.version}.jar"
|
||||
basedir="${build.classes}"
|
||||
manifest="${build.conf}/MANIFEST.MF">
|
||||
<include name="**/META-INF/*"/>
|
||||
<include name="**/ComparatorUtils*.class"/>
|
||||
<include name="**/comparators/*.class"/>
|
||||
</jar>
|
||||
<jar jarfile="${build.home}/${component.name}-functors-${component.version}.jar"
|
||||
basedir="${build.classes}"
|
||||
manifest="${build.conf}/MANIFEST.MF">
|
||||
<include name="**/META-INF/*"/>
|
||||
<include name="**/ClosureUtils*.class"/>
|
||||
<include name="**/FactoryUtils*.class"/>
|
||||
<include name="**/PredicateUtils*.class"/>
|
||||
<include name="**/TransformerUtils*.class"/>
|
||||
<include name="**/functors/*.class"/>
|
||||
</jar>
|
||||
<jar jarfile="${build.home}/${component.name}-main-${component.version}.jar"
|
||||
basedir="${build.classes}"
|
||||
manifest="${build.conf}/MANIFEST.MF">
|
||||
<include name="**/META-INF/*"/>
|
||||
<include name="**/*"/>
|
||||
<exclude name="**/BagUtils*.class"/>
|
||||
<exclude name="**/BufferUtils*.class"/>
|
||||
<exclude name="**/ComparatorUtils*.class"/>
|
||||
<exclude name="**/ClosureUtils*.class"/>
|
||||
<exclude name="**/FactoryUtils*.class"/>
|
||||
<exclude name="**/PredicateUtils*.class"/>
|
||||
<exclude name="**/TransformerUtils*.class"/>
|
||||
<exclude name="**/bag/*.class"/>
|
||||
<exclude name="**/bidimap/*.class"/>
|
||||
<exclude name="**/buffer/*.class"/>
|
||||
<exclude name="**/comparators/*.class"/>
|
||||
<exclude name="**/functors/*.class"/>
|
||||
<exclude name="**/iterators/ProxyIterator*.class"/>
|
||||
<exclude name="**/iterators/ProxyListIterator*.class"/>
|
||||
<exclude name="org/apache/commons/collections/BinaryHeap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/BoundedFifoBuffer*.class"/>
|
||||
<exclude name="org/apache/commons/collections/CursorableLinkedList*.class"/>
|
||||
<exclude name="org/apache/commons/collections/CursorableSubList*.class"/>
|
||||
<exclude name="org/apache/commons/collections/DefaultMapBag*.class"/>
|
||||
<exclude name="org/apache/commons/collections/DefaultMapEntry*.class"/>
|
||||
<exclude name="org/apache/commons/collections/DoubleOrderedMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/HashBag*.class"/>
|
||||
<exclude name="org/apache/commons/collections/LRUMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/PriorityQueue*.class"/>
|
||||
<exclude name="org/apache/commons/collections/ProxyMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/ReferenceMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/SequencedHashMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/StaticBucketMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/SynchronizedPriorityQueue*.class"/>
|
||||
<exclude name="org/apache/commons/collections/TreeBag*.class"/>
|
||||
<exclude name="org/apache/commons/collections/UnboundedFifoBuffer*.class"/>
|
||||
</jar>
|
||||
<jar jarfile="${build.home}/${component.name}-deprecated-${component.version}.jar"
|
||||
basedir="${build.classes}"
|
||||
manifest="${build.conf}/MANIFEST.MF">
|
||||
<include name="**/META-INF/*"/>
|
||||
<include name="**/iterators/ProxyIterator*.class"/>
|
||||
<include name="**/iterators/ProxyListIterator*.class"/>
|
||||
<include name="org/apache/commons/collections/BinaryHeap*.class"/>
|
||||
<include name="org/apache/commons/collections/BoundedFifoBuffer*.class"/>
|
||||
<include name="org/apache/commons/collections/CursorableLinkedList*.class"/>
|
||||
<include name="org/apache/commons/collections/CursorableSubList*.class"/>
|
||||
<include name="org/apache/commons/collections/DefaultMapBag*.class"/>
|
||||
<include name="org/apache/commons/collections/DefaultMapEntry*.class"/>
|
||||
<include name="org/apache/commons/collections/DoubleOrderedMap*.class"/>
|
||||
<include name="org/apache/commons/collections/HashBag*.class"/>
|
||||
<include name="org/apache/commons/collections/LRUMap*.class"/>
|
||||
<include name="org/apache/commons/collections/PriorityQueue*.class"/>
|
||||
<include name="org/apache/commons/collections/ProxyMap*.class"/>
|
||||
<include name="org/apache/commons/collections/ReferenceMap*.class"/>
|
||||
<include name="org/apache/commons/collections/SequencedHashMap*.class"/>
|
||||
<include name="org/apache/commons/collections/StaticBucketMap*.class"/>
|
||||
<include name="org/apache/commons/collections/SynchronizedPriorityQueue*.class"/>
|
||||
<include name="org/apache/commons/collections/TreeBag*.class"/>
|
||||
<include name="org/apache/commons/collections/UnboundedFifoBuffer*.class"/>
|
||||
</jar>
|
||||
|
||||
<!--jar jarfile="${build.home}/${component.name}-nodeprecated-${component.version}.jar"
|
||||
basedir="${build.classes}"
|
||||
manifest="${build.conf}/MANIFEST.MF">
|
||||
<include name="**/META-INF/*"/>
|
||||
<include name="**/*"/>
|
||||
<exclude name="**/iterators/ProxyIterator*.class"/>
|
||||
<exclude name="**/iterators/ProxyListIterator*.class"/>
|
||||
<exclude name="org/apache/commons/collections/BinaryHeap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/BoundedFifoBuffer*.class"/>
|
||||
<exclude name="org/apache/commons/collections/CursorableLinkedList*.class"/>
|
||||
<exclude name="org/apache/commons/collections/CursorableSubList*.class"/>
|
||||
<exclude name="org/apache/commons/collections/DefaultMapBag*.class"/>
|
||||
<exclude name="org/apache/commons/collections/DefaultMapEntry*.class"/>
|
||||
<exclude name="org/apache/commons/collections/DoubleOrderedMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/HashBag*.class"/>
|
||||
<exclude name="org/apache/commons/collections/LRUMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/PriorityQueue*.class"/>
|
||||
<exclude name="org/apache/commons/collections/ProxyMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/ReferenceMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/SequencedHashMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/StaticBucketMap*.class"/>
|
||||
<exclude name="org/apache/commons/collections/SynchronizedPriorityQueue*.class"/>
|
||||
<exclude name="org/apache/commons/collections/TreeBag*.class"/>
|
||||
<exclude name="org/apache/commons/collections/UnboundedFifoBuffer*.class"/>
|
||||
</jar>
|
||||
</target-->
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile.tests" depends="compile"
|
||||
|
|
Loading…
Reference in New Issue