Changeset 6198739 for build.xml


Ignore:
Timestamp:
Jan 16, 2012 2:10:32 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ba01451
Parents:
23de1e6 (diff), 4045785 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

propagate from branch 'i2p.i2p' (head 899a1923586f3d7d622bd02e03c87717566617c4)

to branch 'i2p.i2p.zzz.jetty6' (head cb3e33be282b6002f6790609f4a3eef7f42069d3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r23de1e6 r6198739  
    3737        <echo message="  updater200WithJavadoc: updater including the javadocs, for display in the console (creates i2pupdate200.zip)" />
    3838        <echo message="  updaterWithJetty: Updater including Jetty" />
     39        <echo message="  updater200withJetty: Updater including Jetty" />
    3940        <echo message="  updaterWithJettyFixes: updater including local jetty patches" />
    4041        <echo message="  updaterWithGeoIP: updater including GeoIP Files" />
     
    5152        <echo message="  slackpkg:  generate Slackware packages in ./Slackware/i2p and ./Slackware/i2p-base" />
    5253        <echo message="  debianhowto: instructions on building Debian packages" />
    53         <echo message="  debian: generate Debian packages in ../" />
    54         <echo message="          run &quot;ant debianhowto&quot; for instructions" />
    55         <echo message="  debian-clean: rollback debian specific patches and run the &quot;distclean&quot; target (done automatically at the end of the &quot;debian&quot; target)" />
    56         <!-- <echo message="  debianrepo: build a Debian repository (reprepro required)" /> -->
     54        <echo message="  debian: generate Debian packages in ../" />
     55        <echo message="          run &quot;ant debianhowto&quot; for instructions" />
     56        <echo message="  debian-clean: rollback debian specific patches and run the &quot;distclean&quot; target (done automatically at the end of the &quot;debian&quot; target)" />
     57        <!-- <echo message="  debianrepo: build a Debian repository (reprepro required)" /> -->
    5758        <echo message="  poupdate: update the .po files for translators" />
    5859        <echo message="  pkg-portable-win32:  build a minimum portable version for win32" />
    5960   </target>
    6061    <target name="debianhowto">
    61             <echo message="To build debian packages, you must make sure that you have" />
    62             <echo message="the necessary build-dependencies installed." />
    63             <echo message="The packages required to build can be found in the file "/>
    64             <echo message="&quot;debian/control&quot; in both the Build-Depends and Build-Depends-Indep fields."/>
    65             <echo message="In addition to those packages, be sure to install &quot;fakeroot&quot;,"/>
    66             <echo message="&quot;quilt&quot; and &quot;build-essential&quot;!" />
    67             <echo message="" />
    68             <echo message="The following command will install all dependencies for you:" />
    69             <echo message="apt-get install debhelper ant debconf default-jdk gettext libgmp3-dev po-debconf fakeroot build-essential quilt" />
    70             <echo message=" " />
    71             <echo message="Once the dependencies are installed, run &quot;ant debian&quot;"/>
    72             <echo message="to patch the source and build the packages." />
     62            <echo message="To build debian packages, you must make sure that you have" />
     63            <echo message="the necessary build-dependencies installed." />
     64            <echo message="The packages required to build can be found in the file "/>
     65            <echo message="&quot;debian/control&quot; in the &quot;Build-Depends&quot; field."/>
     66            <echo message="In addition to those packages, be sure to install &quot;fakeroot&quot;,"/>
     67            <echo message="&quot;quilt&quot; and &quot;build-essential&quot;!" />
     68            <echo message="" />
     69            <echo message="The following command will install all of the dependencies for you:" />
     70            <echo message=" " />
     71            <echo message="apt-get install debhelper ant debconf default-jdk gettext libgmp3-dev po-debconf fakeroot build-essential \" />
     72            <echo message="                   quilt libcommons-el-java libcommons-logging-java libjetty-extra-java libjetty-java" />
     73            <echo message=" " />
     74            <echo message="Once the dependencies are installed, run &quot;ant debian&quot;"/>
     75            <echo message="to patch the source and build the packages." />
    7376    </target>
    7477    <target name="dist" depends="pkg, javadoc">
     
    133136    </target>
    134137
    135     <target name="buildJetty" depends="buildProperties" >
     138    <target name="buildJetty" depends="buildCore" >
    136139        <ant dir="apps/jetty" target="build" />
    137140    </target>
     
    198201        <copy file="apps/routerconsole/java/build/routerconsole.jar" todir="build/" />
    199202        <copy file="apps/routerconsole/java/build/routerconsole.war" todir="build/" />
    200         <copy file="apps/jetty/jettylib/org.mortbay.jetty.jar" todir="build/" />
    201         <copy file="apps/jetty/jettylib/jasper-compiler.jar" todir="build/" />
    202         <copy file="apps/jetty/jettylib/jasper-runtime.jar" todir="build/" />
    203         <copy file="apps/jetty/jettylib/commons-logging.jar" todir="build/" />
    204         <copy file="apps/jetty/jettylib/commons-el.jar" todir="build/" />
    205         <copy file="apps/jetty/jettylib/javax.servlet.jar" todir="build/" />
     203        <copy todir="build/" >
     204            <fileset dir="apps/jetty/jettylib" excludes="ant.jar" />
     205        </copy>
    206206    </target>
    207207
     
    403403            <group title="I2PSnark Application" packages="org.klomp.snark:org.klomp.snark.*" />
    404404            <group title="I2PTunnel Application" packages="net.i2p.i2ptunnel:net.i2p.i2ptunnel.*" />
     405            <group title="Jetty Logging" packages="net.i2p.jetty" />
    405406            <group title="SAM Bridge" packages="net.i2p.sam:net.i2p.sam.client" />
    406407            <group title="SusiDNS Application" packages="i2p.susi.dns" />
    407             <group title="SusiMail Application" packages="i2p.susi.webmail:i2p.susi.webmail.*:i2p.susi.debug:i2p.susi.util" />
     408            <group title="SusiMail Application" packages="i2p.susi.webmail:i2p.susi.webmail.*:i2p.susi.debug:i2p.susi.util:org.mortbay.servlet:org.mortbay.util" />
    408409            <group title="Systray Application" packages="net.i2p.apps.systray" />
    409410            <sourcepath>
     
    424425                <pathelement location="apps/susidns/src/java/src" />
    425426                <pathelement location="apps/susimail/src/src" />
     427                <pathelement location="apps/jetty/java/src" />
    426428            </sourcepath>
    427429            <classpath>
    428430                <pathelement location="apps/jetty/jettylib/org.mortbay.jetty.jar" />
    429431                <pathelement location="apps/jetty/jettylib/javax.servlet.jar" />
     432                <pathelement location="apps/jetty/jettylib/jetty-sslengine.jar" />
     433                <pathelement location="apps/jetty/jettylib/jetty-start.jar" />
     434                <pathelement location="apps/jetty/jettylib/jetty-java5-threadpool.jar" />
     435                <pathelement location="apps/jetty/jettylib/jetty-util.jar" />
     436                <pathelement location="apps/jetty/jettylib/jsp-api.jar" />
    430437                <pathelement location="apps/systray/java/lib/systray4j.jar" />
    431438                <pathelement location="apps/jrobin/jrobin-1.5.9.1.jar" />
     
    572579    </target>
    573580
     581    <target name="webappDistclean">
     582        <ant dir="apps/i2ptunnel/java/" target="distclean" />
     583        <ant dir="apps/routerconsole/java/" target="distclean" />
     584        <ant dir="apps/addressbook/" target="distclean" />
     585        <ant dir="apps/susimail/" target="distclean" />
     586        <ant dir="apps/susidns/src/" target="distclean" />
     587        <ant dir="apps/i2psnark/java/" target="distclean" />
     588    </target>
     589
    574590    <target name="pkg" depends="distclean, updater, preppkg, installer" />
    575591
     
    691707        <copy file="build/i2p.jar" todir="pkg-temp/lib/" />
    692708        <copy file="build/i2ptunnel.jar" todir="pkg-temp/lib/" />
    693         <copy file="build/jasper-compiler.jar" todir="pkg-temp/lib/" />
    694         <copy file="build/jasper-runtime.jar" todir="pkg-temp/lib/" />
    695         <copy file="build/commons-logging.jar" todir="pkg-temp/lib/" />
    696         <copy file="build/commons-el.jar" todir="pkg-temp/lib/" />
    697         <copy file="build/javax.servlet.jar" todir="pkg-temp/lib/" />
     709        <!-- all jetty stuff -->
     710        <copy todir="pkg-temp/lib" >
     711            <fileset dir="build" includes="commons*.jar jasper*.jar javax*.jar jetty*.jar jsp*.jar org.mortbay.*.jar" />
     712        </copy>
    698713        <copy file="build/mstreaming.jar" todir="pkg-temp/lib/" />
    699714        <copy file="build/streaming.jar" todir="pkg-temp/lib/" />
    700         <copy file="build/org.mortbay.jetty.jar" todir="pkg-temp/lib/" />
    701715        <copy file="build/router.jar" todir="pkg-temp/lib/" />
    702716        <copy file="build/desktopgui.jar" todir="pkg-temp/lib/" />
     
    745759        <!-- Eepsite stuff here -->
    746760        <mkdir dir="pkg-temp/eepsite" />
    747         <mkdir dir="pkg-temp/eepsite/webapps" />
    748         <mkdir dir="pkg-temp/eepsite/logs" />
    749         <mkdir dir="pkg-temp/eepsite/cgi-bin" />
    750         <mkdir dir="pkg-temp/eepsite/docroot" />
    751         <mkdir dir="pkg-temp/eepsite/docroot/help" />
    752         <mkdir dir="pkg-temp/eepsite/docroot/help/lib" />
    753         <copy todir="pkg-temp/eepsite/docroot/" >
    754             <fileset dir="installer/resources/eepsite.help/" />
     761        <copy todir="pkg-temp/eepsite/" >
     762            <fileset dir="installer/resources/eepsite/" />
    755763        </copy>
    756764        <copy todir="pkg-temp/eepsite/docroot/help/lib/" >
     
    758766        </copy>
    759767        <copy file="installer/resources/themes/console/images/favicon.ico" tofile="pkg-temp/eepsite/docroot/favicon.ico" />
    760         <copy file="installer/resources/jetty.xml" tofile="pkg-temp/eepsite/jetty.xml" />
    761768    </target>
    762769
     
    772779         -->
    773780        <copy file="installer/lib/launch4j/head/LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-Launch4j.txt" />
     781        <copy file="apps/jetty/apache-tomcat-deployer/NOTICE" tofile="pkg-temp/licenses/NOTICE-Tomcat.txt" />
    774782        <!--  Not sure if these are used or should be included -->
    775783        <copy file="installer/lib/launch4j/lib/foxtrot.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-Foxtrot.txt" />
     
    838846    <target name="updaterWithGeoIP" depends="prepupdate, prepgeoupdate, preplicenses, zipit" />
    839847    <target name="updaterWithJetty" depends="prepjupdate, preplicenses, zipit" />
     848    <target name="updater200WithJetty" depends="prepjupdate, preplicenses, pack200, zipit200" />
    840849    <target name="updaterWithJettyFixes" depends="prepjupdatefixes, preplicenses, zipit" />
    841850    <target name="updaterWithJettyFixesAndJbigi" depends="prepjupdatefixes, prepjbigiupdate, preplicenses, zipit" />
     
    954963    </target>
    955964
     965    <!-- All jetty jars required for update.
     966         We don't need commons-el or commons-logging, they haven't changed.
     967         TODO do we need to bother updating jasper?
     968         TODO where is JMX? We don't need it I hope.
     969      -->
    956970    <target name="prepjupdate" depends="prepupdate, buildWEB">
    957         <copy file="build/jasper-compiler.jar" todir="pkg-temp/lib/" />
    958         <copy file="build/jasper-runtime.jar" todir="pkg-temp/lib/" />
    959         <copy file="build/commons-logging.jar" todir="pkg-temp/lib/" />
    960         <copy file="build/commons-el.jar" todir="pkg-temp/lib/" />
    961         <copy file="build/javax.servlet.jar" todir="pkg-temp/lib/" />
    962         <copy file="build/org.mortbay.jetty.jar" todir="pkg-temp/lib/" />
    963     </target>
     971        <copy todir="pkg-temp/lib" >
     972            <fileset dir="build" includes="commons*.jar jasper*.jar javax*.jar jetty*.jar jsp*.jar org.mortbay.*.jar" />
     973        </copy>
     974        <!--  We have to package the new eepsite files for MigrateJetty.java, but we
     975              can't overwrite an existing eepsite dir in a non-split configuration.
     976          -->
     977        <copy todir="pkg-temp/eepsite-jetty6" >
     978            <fileset dir="installer/resources/eepsite" includes="*.xml contexts/* etc/*" />
     979        </copy>
     980    </target>
     981
     982    <!-- Jetty 6 I2P logging addons, not really fixes -->
    964983    <target name="prepjupdatefixes" depends="prepupdate, buildWEB">
    965         <copy file="build/org.mortbay.jetty.jar" todir="pkg-temp/lib/" />
     984        <copy file="build/jetty-i2p.jar" todir="pkg-temp/lib/" />
    966985    </target>
    967986
     
    13951414    <target name="debian-binary" >
    13961415        <echo message="Did you update the version using dch -i?" />
    1397         <echo message=" " />
    1398         <echo message="If the changelog was not updated with dch -i, press" />
    1399         <echo message="press CTRL+C to abort building this Debian package." />
    1400         <echo message="" />
    1401         <echo message="Pausing build for ten seconds to give enough time to read this notice." />
    1402         <exec executable="sleep" failonerror="true">
    1403                 <arg value="10" />
    1404         </exec>
     1416        <echo message=" " />
     1417        <echo message="If the changelog was not updated with dch -i, press" />
     1418        <echo message="press CTRL+C to abort building this Debian package." />
     1419        <echo message="" />
     1420        <echo message="Pausing build for ten seconds to give enough time to read this notice." />
     1421        <exec executable="sleep" failonerror="true">
     1422                <arg value="10" />
     1423        </exec>
    14051424        <echo message="====================" />
    1406         <!-- bundle the jetty 5 lib since there isn't a deb for it -->
    1407         <ant dir="apps/jetty" target="ensureJettylib" />
    1408        
    1409         <exec executable="fakeroot" failonerror="true">
    1410             <arg value="debian/rules" />
    1411             <arg value="patch" />
    1412             <arg value="binary" />
    1413             <arg value="clean" />
    1414         </exec>
    1415         <delete dir=".pc" />
    1416     </target>
     1425
     1426        <exec executable="fakeroot" failonerror="true">
     1427            <arg value="debian/rules" />
     1428            <arg value="patch" />
     1429            <arg value="binary" />
     1430            <arg value="clean" />
     1431        </exec>
     1432        <delete dir=".pc" />
     1433    </target>
     1434
    14171435    <target name="debian-clean" depends="buildProperties" >
    14181436        <exec executable="fakeroot" failonerror="true">
    1419             <arg value="debian/rules" />
    1420             <arg value="clean" />
    1421         </exec>
    1422         <delete dir="./.pc" />
    1423     </target>
     1437            <arg value="debian/rules" />
     1438            <arg value="clean" />
     1439        </exec>
     1440        <delete dir="./.pc" />
     1441    </target>
     1442
    14241443    <target name="debian-patch" depends="buildProperties" >
    14251444        <exec executable="quilt" failonerror="true">
     
    14311450    <target name="debian-unpatch" depends="buildProperties">
    14321451        <exec executable="quilt" failonerror="false">
    1433             <arg value="-a" />
    1434             <arg value="pop" />
     1452            <arg value="-a" />
     1453            <arg value="pop" />
    14351454        </exec>
    14361455    </target>
Note: See TracChangeset for help on using the changeset viewer.