commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections build.xml
Date Mon, 03 May 2004 21:04:46 GMT
scolebourne    2004/05/03 14:04:46

  Modified:    collections build.xml
  Log:
  Add targets that could be used to build smaller jars
  
  Revision  Changes    Path
  1.64      +131 -0    jakarta-commons/collections/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/build.xml,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- build.xml	1 May 2004 14:00:41 -0000	1.63
  +++ build.xml	3 May 2004 21:04:46 -0000	1.64
  @@ -151,6 +151,137 @@
     </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"
             description="Compile unit test cases">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message