Changeset ccb8483 for build.xml


Ignore:
Timestamp:
Sep 15, 2012 1:12:00 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ee66747
Parents:
b317eca
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    rb317eca rccb8483  
    982982    <target name="pack200">
    983983        <!-- pack200 will only pack to a .pack file, and only from a .jar file, so we put another .jar on the end -->
     984        <!-- can't pack an empty jar or one without classes, it will fail to unpack on Java 5;
     985          -  see http://bugs.sun.com/view_bug.do?bug_id=6712743
     986          -->
    984987        <!-- *nix here -->
    985988        <exec executable="sh" osfamily="unix" failonerror="true">
    986989            <arg value="-c" />
    987             <arg value="for i in pkg-temp/lib/*.jar pkg-temp/webapps/*war; do echo pack200 $i; mv $i $i.jar; pack200 -g $i.pack $i.jar; rm -f $i.jar; done" />
     990            <arg value="for i in pkg-temp/lib/*.jar pkg-temp/webapps/*war; do if [ $i = pkg-temp/lib/jasper-compiler.jar -o $i = pkg-temp/lib/jbigi.jar ]; then continue; fi; echo pack200 $i; mv $i $i.jar; pack200 -g $i.pack $i.jar; rm -f $i.jar; done" />
    988991        </exec>
    989992        <exec executable="sh" osfamily="mac" failonerror="true">
    990993            <arg value="-c" />
    991             <arg value="for i in pkg-temp/lib/*.jar pkg-temp/webapps/*war; do echo pack200 $i; mv $i $i.jar; pack200 -g $i.pack $i.jar; rm -f $i.jar; done" />
     994            <arg value="for i in pkg-temp/lib/*.jar pkg-temp/webapps/*war; do if [ $i = pkg-temp/lib/jasper-compiler.jar -o $i = pkg-temp/lib/jbigi.jar ]; then continue; fi; echo pack200 $i; mv $i $i.jar; pack200 -g $i.pack $i.jar; rm -f $i.jar; done" />
    992995        </exec>
    993996        <!-- windoz here : i admit, i hate escaped symbols in xml, indeed = =! -->
    994997        <exec executable="cmd" osfamily="windows" failonerror="true">
    995998            <arg value="/c" />
     999            <!-- TODO implement fix above -->
    9961000            <arg value="for %i in (pkg-temp\webapps\*.war) do move %i %i.jar &amp;&amp; pack200 -g pkg-temp\webapps\%~ni.war.pack %i.jar &amp;&amp; del %i.jar" />
    9971001        </exec>
Note: See TracChangeset for help on using the changeset viewer.