Changeset 221499c for build.xml


Ignore:
Timestamp:
Jan 22, 2012 6:30:41 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
061f96a
Parents:
c3bf470a (diff), ba01451 (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 156f8e6137be3c25aa70176fe0a78218b898a684)

to branch 'i2p.i2p.zzz.jetty6' (head 960f416b20e26662b1b5b30468a85dbb25f09ffd)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    rc3bf470a r221499c  
    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" />
     
    604611    </target>
    605612
     613    <target name="webappDistclean">
     614        <ant dir="apps/i2ptunnel/java/" target="distclean" />
     615        <ant dir="apps/routerconsole/java/" target="distclean" />
     616        <ant dir="apps/addressbook/" target="distclean" />
     617        <ant dir="apps/susimail/" target="distclean" />
     618        <ant dir="apps/susidns/src/" target="distclean" />
     619        <ant dir="apps/i2psnark/java/" target="distclean" />
     620    </target>
     621
    606622    <target name="pkg" depends="distclean, updater, preppkg, installer" />
    607623
     
    723739        <copy file="build/i2p.jar" todir="pkg-temp/lib/" />
    724740        <copy file="build/i2ptunnel.jar" todir="pkg-temp/lib/" />
    725         <copy file="build/jasper-compiler.jar" todir="pkg-temp/lib/" />
    726         <copy file="build/jasper-runtime.jar" todir="pkg-temp/lib/" />
    727         <copy file="build/commons-logging.jar" todir="pkg-temp/lib/" />
    728         <copy file="build/commons-el.jar" todir="pkg-temp/lib/" />
    729         <copy file="build/javax.servlet.jar" todir="pkg-temp/lib/" />
     741        <!-- all jetty stuff -->
     742        <copy todir="pkg-temp/lib" >
     743            <fileset dir="build" includes="commons*.jar jasper*.jar javax*.jar jetty*.jar jsp*.jar org.mortbay.*.jar" />
     744        </copy>
    730745        <copy file="build/mstreaming.jar" todir="pkg-temp/lib/" />
    731746        <copy file="build/streaming.jar" todir="pkg-temp/lib/" />
    732         <copy file="build/org.mortbay.jetty.jar" todir="pkg-temp/lib/" />
    733747        <copy file="build/router.jar" todir="pkg-temp/lib/" />
    734748        <copy file="build/desktopgui.jar" todir="pkg-temp/lib/" />
     
    777791        <!-- Eepsite stuff here -->
    778792        <mkdir dir="pkg-temp/eepsite" />
    779         <mkdir dir="pkg-temp/eepsite/webapps" />
    780         <mkdir dir="pkg-temp/eepsite/logs" />
    781         <mkdir dir="pkg-temp/eepsite/cgi-bin" />
    782         <mkdir dir="pkg-temp/eepsite/docroot" />
    783         <mkdir dir="pkg-temp/eepsite/docroot/help" />
    784         <mkdir dir="pkg-temp/eepsite/docroot/help/lib" />
    785         <copy todir="pkg-temp/eepsite/docroot/" >
    786             <fileset dir="installer/resources/eepsite.help/" />
     793        <copy todir="pkg-temp/eepsite/" >
     794            <fileset dir="installer/resources/eepsite/" />
    787795        </copy>
    788796        <copy todir="pkg-temp/eepsite/docroot/help/lib/" >
     
    790798        </copy>
    791799        <copy file="installer/resources/themes/console/images/favicon.ico" tofile="pkg-temp/eepsite/docroot/favicon.ico" />
    792         <copy file="installer/resources/jetty.xml" tofile="pkg-temp/eepsite/jetty.xml" />
    793800    </target>
    794801
     
    804811         -->
    805812        <copy file="installer/lib/launch4j/head/LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-Launch4j.txt" />
     813        <copy file="apps/jetty/apache-tomcat-deployer/NOTICE" tofile="pkg-temp/licenses/NOTICE-Tomcat.txt" />
    806814        <!--  Not sure if these are used or should be included -->
    807815        <copy file="installer/lib/launch4j/lib/foxtrot.LICENSE.txt" tofile="pkg-temp/licenses/LICENSE-Foxtrot.txt" />
     
    870878    <target name="updaterWithGeoIP" depends="prepupdate, prepgeoupdate, preplicenses, zipit" />
    871879    <target name="updaterWithJetty" depends="prepjupdate, preplicenses, zipit" />
     880    <target name="updater200WithJetty" depends="prepjupdate, preplicenses, pack200, zipit200" />
    872881    <target name="updaterWithJettyFixes" depends="prepjupdatefixes, preplicenses, zipit" />
    873882    <target name="updaterWithJettyFixesAndJbigi" depends="prepjupdatefixes, prepjbigiupdate, preplicenses, zipit" />
     
    986995    </target>
    987996
     997    <!-- All jetty jars required for update.
     998         We don't need commons-el or commons-logging, they haven't changed.
     999         TODO do we need to bother updating jasper?
     1000         TODO where is JMX? We don't need it I hope.
     1001      -->
    9881002    <target name="prepjupdate" depends="prepupdate, buildWEB">
    989         <copy file="build/jasper-compiler.jar" todir="pkg-temp/lib/" />
    990         <copy file="build/jasper-runtime.jar" todir="pkg-temp/lib/" />
    991         <copy file="build/commons-logging.jar" todir="pkg-temp/lib/" />
    992         <copy file="build/commons-el.jar" todir="pkg-temp/lib/" />
    993         <copy file="build/javax.servlet.jar" todir="pkg-temp/lib/" />
    994         <copy file="build/org.mortbay.jetty.jar" todir="pkg-temp/lib/" />
    995     </target>
     1003        <copy todir="pkg-temp/lib" >
     1004            <fileset dir="build" includes="commons*.jar jasper*.jar javax*.jar jetty*.jar jsp*.jar org.mortbay.*.jar" />
     1005        </copy>
     1006        <!--  We have to package the new eepsite files for MigrateJetty.java, but we
     1007              can't overwrite an existing eepsite dir in a non-split configuration.
     1008          -->
     1009        <copy todir="pkg-temp/eepsite-jetty6" >
     1010            <fileset dir="installer/resources/eepsite" includes="*.xml contexts/* etc/*" />
     1011        </copy>
     1012    </target>
     1013
     1014    <!-- Jetty 6 I2P logging addons, not really fixes -->
    9961015    <target name="prepjupdatefixes" depends="prepupdate, buildWEB">
    997         <copy file="build/org.mortbay.jetty.jar" todir="pkg-temp/lib/" />
     1016        <copy file="build/jetty-i2p.jar" todir="pkg-temp/lib/" />
    9981017    </target>
    9991018
     
    14271446    <target name="debian-binary" >
    14281447        <echo message="Did you update the version using dch -i?" />
    1429         <echo message=" " />
    1430         <echo message="If the changelog was not updated with dch -i, press" />
    1431         <echo message="press CTRL+C to abort building this Debian package." />
    1432         <echo message="" />
    1433         <echo message="Pausing build for ten seconds to give enough time to read this notice." />
    1434         <exec executable="sleep" failonerror="true">
    1435                 <arg value="10" />
    1436         </exec>
     1448        <echo message=" " />
     1449        <echo message="If the changelog was not updated with dch -i, press" />
     1450        <echo message="press CTRL+C to abort building this Debian package." />
     1451        <echo message="" />
     1452        <echo message="Pausing build for ten seconds to give enough time to read this notice." />
     1453        <exec executable="sleep" failonerror="true">
     1454                <arg value="10" />
     1455        </exec>
    14371456        <echo message="====================" />
    1438         <!-- bundle the jetty 5 lib since there isn't a deb for it -->
    1439         <ant dir="apps/jetty" target="ensureJettylib" />
    1440        
    1441         <exec executable="fakeroot" failonerror="true">
    1442             <arg value="debian/rules" />
    1443             <arg value="patch" />
    1444             <arg value="binary" />
    1445             <arg value="clean" />
    1446         </exec>
    1447         <delete dir=".pc" />
    1448     </target>
     1457
     1458        <exec executable="fakeroot" failonerror="true">
     1459            <arg value="debian/rules" />
     1460            <arg value="patch" />
     1461            <arg value="binary" />
     1462            <arg value="clean" />
     1463        </exec>
     1464        <delete dir=".pc" />
     1465    </target>
     1466
    14491467    <target name="debian-clean" depends="buildProperties" >
    14501468        <exec executable="fakeroot" failonerror="true">
    1451             <arg value="debian/rules" />
    1452             <arg value="clean" />
    1453         </exec>
    1454         <delete dir="./.pc" />
    1455     </target>
     1469            <arg value="debian/rules" />
     1470            <arg value="clean" />
     1471        </exec>
     1472        <delete dir="./.pc" />
     1473    </target>
     1474
    14561475    <target name="debian-patch" depends="buildProperties" >
    14571476        <exec executable="quilt" failonerror="true">
     
    14631482    <target name="debian-unpatch" depends="buildProperties">
    14641483        <exec executable="quilt" failonerror="false">
    1465             <arg value="-a" />
    1466             <arg value="pop" />
     1484            <arg value="-a" />
     1485            <arg value="pop" />
    14671486        </exec>
    14681487    </target>
Note: See TracChangeset for help on using the changeset viewer.