Changeset 612d06b for build.xml


Ignore:
Timestamp:
Nov 28, 2010 3:56:56 AM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9ba86e86
Parents:
a59e52b
Message:
  • Build: Move all dependencies to top-level build.xml,

so each sub-build.xml is only executed once (true DAG)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    ra59e52b r612d06b  
    6363    <target name="buildSmall" depends="builddepSmall, jarSmall, buildWEB" />
    6464    <target name="buildclean" depends="distclean, build" />
    65     <target name="builddep" depends="builddepSmall">
    66         <!-- build *everything* here, but only once -->
     65
     66    <target name="builddep" depends="builddepSmall, buildBOB, buildSAM, buildSusiMail, buildSusiDNS, buildI2PSnark" />
     67
     68    <target name="builddepSmall" depends="buildrouter, buildSystray, buildRouterConsole, buildStreaming, buildI2PTunnel, buildAddressbook" />
     69
     70    <!-- start of buildX, one for each sub-build.xml.
     71         Do not put ant tasks in the sub-build.xmls anymore,
     72         so the build will go faster.
     73      -->
     74
     75    <!-- TODO remove I2PTunnel dependency in BOB -->
     76    <target name="buildBOB" depends="buildStreaming, buildI2PTunnel" >
    6777        <ant dir="apps/BOB/" target="jar" />
     78    </target>
     79
     80    <target name="buildSAM" depends="buildStreaming" >
    6881        <ant dir="apps/sam/java/" target="jar" />
     82    </target>
     83
     84    <target name="buildSusiMail" depends="buildCore, buildJetty" >
    6985        <ant dir="apps/susimail/" target="war" />
     86    </target>
     87
     88    <target name="buildSusiDNS" depends="buildCore, buildJetty" >
    7089        <ant dir="apps/susidns/src" target="all" />
     90    </target>
     91
     92    <target name="buildI2PSnark" depends="buildStreaming, buildJetty" >
    7193        <ant dir="apps/i2psnark/java/" target="war" />
    7294    </target>
    73     <target name="builddepSmall">
     95
     96    <target name="buildAddressbook" depends="buildCore, buildJetty" >
     97        <ant dir="apps/addressbook/" target="war" />
     98    </target>
     99
     100    <target name="buildI2PTunnel" depends="buildStreaming, buildJetty" >
     101        <ant dir="apps/i2ptunnel/java/" target="build" />
     102    </target>
     103
     104    <target name="buildRouterConsole" depends="buildrouter, buildSystray, buildJetty" >
     105        <ant dir="apps/routerconsole/java/" target="jar" />
     106    </target>
     107
     108    <target name="buildJetty" >
     109        <ant dir="apps/jetty" target="build" />
     110    </target>
     111
     112    <target name="buildSystray" depends="buildCore" >
     113        <ant dir="apps/systray/java/" target="jar" />
     114    </target>
     115
     116    <target name="buildStreaming" depends="buildMinistreaming" >
     117        <ant dir="apps/streaming/java/" target="jar" />
     118    </target>
     119
     120    <target name="buildMinistreaming" depends="buildCore" >
     121        <ant dir="apps/ministreaming/java/" target="jar" />
     122    </target>
     123
     124    <target name="buildRouter" depends="buildrouter" />
     125    <target name="buildrouter" depends="buildCore" >
     126        <ant dir="router/java/" target="jar" />
     127        <copy file="router/java/build/router.jar" todir="build/" />
     128    </target>
     129
     130    <target name="buildCore" >
    74131        <ant dir="core/java/" target="jar" />
    75         <ant dir="router/java/" target="jar" />
    76         <ant dir="apps/systray/java/" target="jar" />
    77         <ant dir="apps/routerconsole/java/" target="jar" />
    78         <ant dir="apps/ministreaming/java/" target="jar" />
    79         <ant dir="apps/streaming/java/" target="jar" />
    80         <ant dir="apps/i2ptunnel/java/" target="build" />
    81         <ant dir="apps/addressbook/" target="war" />
    82     </target>
    83     <target name="buildrouter">
    84         <ant dir="core/java/" target="jar" />
    85         <ant dir="router/java/" target="jar" />
    86132        <copy file="core/java/build/i2p.jar" todir="build/" />
    87         <copy file="router/java/build/router.jar" todir="build/" />
    88     </target>
    89     <target name="buildWEB">
    90         <ant dir="apps/jetty" target="ensureJettylib" />
    91         <ant dir="apps/routerconsole/java" target="build" />
     133    </target>
     134
     135    <!-- end of sub-build.xml targets -->
     136
     137    <target name="buildWEB" depends="buildRouterConsole" >
    92138        <copy file="apps/routerconsole/java/build/routerconsole.jar" todir="build/" />
    93139        <copy file="apps/routerconsole/java/build/routerconsole.war" todir="build/" />
     
    99145        <copy file="apps/jetty/jettylib/javax.servlet.jar" todir="build/" />
    100146    </target>
     147
    101148    <target name="buildexe">
    102149        <condition property="noExe">
Note: See TracChangeset for help on using the changeset viewer.