jefft       02/04/24 06:24:33

  Modified:    .        build.xml
  Log:
  Add a hack to work around what looks like a <jlink> size limit bug. Ie, when
  the number of classes to be jlinked together gets too large, some are silently
  dropped.
  
  Revision  Changes    Path
  1.161     +26 -3     jakarta-avalon-excalibur/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/build.xml,v
  retrieving revision 1.160
  retrieving revision 1.161
  diff -u -r1.160 -r1.161
  --- build.xml 24 Apr 2002 07:46:29 -0000      1.160
  +++ build.xml 24 Apr 2002 13:24:33 -0000      1.161
  @@ -161,7 +161,14 @@
           <ant dir="instrument" target="jar"/>
           <ant dir="instrument-manager" target="jar"/>
           <ant dir="instrument-client" target="jar"/>
  -        <jlink compress="false" outfile="avalon-excalibur-tmp.jar">
  +
  +        <!-- Jump through hoops to avoid jlink size bug.  -->
  +
  +        <property name="tmpjarA" value="avalon-excalibur-tmpA.jar"/>
  +        <property name="tmpjarB" value="avalon-excalibur-tmpB.jar"/>
  +        <property name="tmpjarAB" value="avalon-excalibur-tmpAB.jar"/>
  +
  +        <jlink compress="false" outfile="${tmpjarA}">
               <mergefiles>
                   <fileset dir=".">
                       <include name="datasource/build/lib/*.jar"/>
  @@ -173,6 +180,12 @@
                       <include name="i18n/build/lib/*.jar"/>
                       <include name="io/build/lib/*.jar"/>
                       <include name="naming/build/lib/*.jar"/>
  +                </fileset>
  +            </mergefiles>
  +        </jlink>
  +        <jlink compress="false" outfile="${tmpjarB}">
  +            <mergefiles>
  +                <fileset dir=".">
                       <include name="logger/build/lib/*.jar"/>
                       <include name="pool/build/lib/*.jar"/>
                       <include name="testcase/build/lib/*.jar"/>
  @@ -186,10 +199,20 @@
                   </fileset>
               </mergefiles>
           </jlink>
  +        <jlink compress="false" outfile="${tmpjarAB}">
  +          <mergefiles>
  +              <fileset dir=".">
  +                  <include name="${tmpjarA}"/>
  +                  <include name="${tmpjarB}"/>
  +                </fileset>
  +            </mergefiles>
  +        </jlink>
           <jar jarfile="avalon-excalibur.jar" compress="true">
  -            <zipfileset src="avalon-excalibur-tmp.jar" />
  +            <zipfileset src="${tmpjarAB}" />
           </jar>
  -        <delete file="avalon-excalibur-tmp.jar"/>
  +        <delete file="${tmpjarA}"/>
  +        <delete file="${tmpjarB}"/>
  +        <delete file="${tmpjarAB}"/>
   
       </target>
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to