Changeset 272


Ignore:
Timestamp:
12/05/11 15:03:02 (13 years ago)
Author:
sherbold
Message:
  • build script maintenance
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaCommons/build.xml

    r269 r272  
    11<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
    22<project basedir="." default="dist" name="EventBench"> 
     3        <!-- General Properties --> 
    34        <property environment="env" /> 
    45        <property name="build.location" value="bin" /> 
    5         <property name="build.location.eventbenchconsole" value="${build.location}/eventbenchconsole" /> 
    6         <property name="build.location.eventbenchcore" value="${build.location}/eventbenchcore" /> 
    7         <property name="build.location.javahelperlib" value="${build.location}/javahelperlib" /> 
    8         <property name="build.location.jfcmonitor" value="${build.location}/jfcmonitor" /> 
    96        <property name="dist.location" value="dist" /> 
     7        <property name="javadoc.location" value="javadoc" /> 
     8        <property name="debuglevel" value="source,lines,vars" /> 
     9        <property name="target" value="1.6" /> 
     10        <property name="source" value="1.6" /> 
     11 
     12        <!-- Distribution Properties --> 
    1013        <property name="dist.location.main" value="${dist.location}/console" /> 
    1114        <property name="dist.location.jfcmonitor" value="${dist.location}/jfcmonitor" /> 
    1215        <property name="dist.location.javadoc" value="${dist.location}/javadoc" /> 
    13         <property name="javadoc.location" value="javadoc" /> 
     16 
     17        <!-- EventBenchConsole Properties --> 
     18        <property name="build.location.eventbenchconsole" value="${build.location}/eventbenchconsole" /> 
    1419        <property name="EventBenchConsole.jarname" value="eventbenchconsole.jar" /> 
    15         <property name="EventBenchCore.jarname" value="eventbenchcore.jar" /> 
    16         <property name="JavaHelperLib.jarname" value="javahelperlib.jar" /> 
    17         <property name="JFCMonitor.jarname" value="jfcmonitor.jar" /> 
    1820        <property name="EventBenchConsole.location" value="../EventBenchConsole" /> 
    19         <property name="JavaHelperLib.location" value="../JavaHelperLib" /> 
    20         <property name="EventBenchCore.location" value="../EventBenchCore" /> 
    21         <property name="JFCMonitor.location" value="../JFCMonitor" /> 
    22         <property name="debuglevel" value="source,lines,vars" /> 
    23         <property name="target" value="1.6" /> 
    24         <property name="source" value="1.6" /> 
    25         <path id="JavaHelperLib.classpath"> 
    26                 <pathelement location="${build.location.javahelperlib}" /> 
    27         </path> 
    28         <path id="EventBenchCore.classpath"> 
    29                 <pathelement location="${build.location.eventbenchcore}" /> 
    30                 <pathelement location="lib/Jama-1.0.2.jar" /> 
    31                 <pathelement location="lib/colt-1.2.0.jar" /> 
    32                 <pathelement location="lib/concurrent-1.3.4.jar" /> 
    33                 <pathelement location="lib/j3d-core-1.3.1.jar" /> 
    34                 <pathelement location="lib/jung-3d-2.0.1.jar" /> 
    35                 <pathelement location="lib/jung-3d-demos-2.0.1.jar" /> 
    36                 <pathelement location="lib/jung-algorithms-2.0.1.jar" /> 
    37                 <pathelement location="lib/jung-api-2.0.1.jar" /> 
    38                 <pathelement location="lib/jung-graph-impl-2.0.1.jar" /> 
    39                 <pathelement location="lib/jung-io-2.0.1.jar" /> 
    40                 <pathelement location="lib/jung-jai-2.0.1.jar" /> 
    41                 <pathelement location="lib/jung-jai-samples-2.0.1.jar" /> 
    42                 <pathelement location="lib/jung-samples-2.0.1.jar" /> 
    43                 <pathelement location="lib/jung-visualization-2.0.1.jar" /> 
    44                 <pathelement location="lib/stax-api-1.0.1.jar" /> 
    45                 <pathelement location="lib/vecmath-1.3.1.jar" /> 
    46                 <pathelement location="lib/wstx-asl-3.2.6.jar" /> 
    47                 <pathelement location="lib/commons-codec-1.5.jar" /> 
    48                 <pathelement location="lib/collections-generic-4.01.jar" /> 
    49                 <path refid="JavaHelperLib.classpath" /> 
    50         </path> 
    5121        <path id="EventBenchConsole.classpath"> 
    5222                <pathelement location="${build.location.eventbenchconsole}" /> 
     
    8353                <path refid="EventBenchCore.classpath" /> 
    8454        </path> 
     55 
     56        <!-- EventBenchCore Properties --> 
     57        <property name="build.location.eventbenchcore" value="${build.location}/eventbenchcore" /> 
     58        <property name="EventBenchCore.jarname" value="eventbenchcore.jar" /> 
     59        <property name="EventBenchCore.location" value="../EventBenchCore" /> 
     60        <path id="EventBenchCore.classpath"> 
     61                <pathelement location="${build.location.eventbenchcore}" /> 
     62                <pathelement location="lib/Jama-1.0.2.jar" /> 
     63                <pathelement location="lib/colt-1.2.0.jar" /> 
     64                <pathelement location="lib/concurrent-1.3.4.jar" /> 
     65                <pathelement location="lib/j3d-core-1.3.1.jar" /> 
     66                <pathelement location="lib/jung-3d-2.0.1.jar" /> 
     67                <pathelement location="lib/jung-3d-demos-2.0.1.jar" /> 
     68                <pathelement location="lib/jung-algorithms-2.0.1.jar" /> 
     69                <pathelement location="lib/jung-api-2.0.1.jar" /> 
     70                <pathelement location="lib/jung-graph-impl-2.0.1.jar" /> 
     71                <pathelement location="lib/jung-io-2.0.1.jar" /> 
     72                <pathelement location="lib/jung-jai-2.0.1.jar" /> 
     73                <pathelement location="lib/jung-jai-samples-2.0.1.jar" /> 
     74                <pathelement location="lib/jung-samples-2.0.1.jar" /> 
     75                <pathelement location="lib/jung-visualization-2.0.1.jar" /> 
     76                <pathelement location="lib/stax-api-1.0.1.jar" /> 
     77                <pathelement location="lib/vecmath-1.3.1.jar" /> 
     78                <pathelement location="lib/wstx-asl-3.2.6.jar" /> 
     79                <pathelement location="lib/commons-codec-1.5.jar" /> 
     80                <pathelement location="lib/collections-generic-4.01.jar" /> 
     81                <path refid="JavaHelperLib.classpath" /> 
     82        </path> 
     83 
     84        <!-- JavaHelperLib Properties --> 
     85        <property name="build.location.javahelperlib" value="${build.location}/javahelperlib" /> 
     86        <property name="JavaHelperLib.jarname" value="javahelperlib.jar" /> 
     87        <property name="JavaHelperLib.location" value="../JavaHelperLib" /> 
     88        <path id="JavaHelperLib.classpath"> 
     89                <pathelement location="${build.location.javahelperlib}" /> 
     90        </path> 
     91 
     92        <!-- JFCMonitor Properties --> 
     93        <property name="build.location.jfcmonitor" value="${build.location}/jfcmonitor" /> 
     94        <property name="JFCMonitor.jarname" value="jfcmonitor.jar" /> 
     95        <property name="JFCMonitor.location" value="../JFCMonitor" /> 
    8596        <path id="JFCMonitor.classpath" /> 
     97 
     98        <!-- Initialization Targets --> 
    8699        <target name="init.build"> 
    87100                <mkdir dir="bin" /> 
     
    92105                <mkdir dir="${dist.location.jfcmonitor}" /> 
    93106        </target> 
     107        <target depends="init.build" name="init.eventbenchconsole"> 
     108                <mkdir dir="${build.location.eventbenchconsole}" /> 
     109        </target> 
     110        <target depends="init.build" name="init.eventbenchcore"> 
     111                <mkdir dir="${build.location.eventbenchcore}" /> 
     112        </target> 
     113        <target depends="init.build" name="init.javahelperlib"> 
     114                <mkdir dir="${build.location.javahelperlib}" /> 
     115        </target> 
     116        <target depends="init.build" name="init.jfcmonitor"> 
     117                <mkdir dir="${build.location.jfcmonitor}" /> 
     118        </target> 
     119 
     120        <!-- Clean-up Targets --> 
    94121        <target name="clean.build"> 
    95122                <delete dir="${build.location}" /> 
     
    102129        </target> 
    103130        <target depends="clean.build,clean.dist,clean.javadoc" name="clean.all" /> 
     131 
     132        <!-- Build Targets --> 
    104133        <target 
    105134                depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole,build.jfcmonitor" 
    106135                name="build" /> 
    107         <target depends="init.build" name="init.eventbenchconsole"> 
    108                 <mkdir dir="${build.location.eventbenchconsole}" /> 
    109         </target> 
    110136        <target depends="init.eventbenchconsole" name="build.eventbenchconsole"> 
    111137                <javac debug="true" debuglevel="${debuglevel}" 
     
    116142                </javac> 
    117143        </target> 
    118         <target depends="init.build" name="init.eventbenchcore"> 
    119                 <mkdir dir="${build.location.eventbenchcore}" /> 
    120         </target> 
    121144        <target depends="init.eventbenchcore" name="build.eventbenchcore"> 
    122145                <javac debug="true" debuglevel="${debuglevel}" 
     
    127150                </javac> 
    128151        </target> 
    129         <target depends="init.build" name="init.javahelperlib"> 
    130                 <mkdir dir="${build.location.javahelperlib}" /> 
    131         </target> 
    132152        <target depends="init.javahelperlib" name="build.javahelperlib"> 
    133153                <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.javahelperlib}" 
     
    137157                </javac> 
    138158        </target> 
    139         <target depends="init.build" name="init.jfcmonitor"> 
    140                 <mkdir dir="${build.location.jfcmonitor}" /> 
    141         </target> 
    142159        <target depends="init.jfcmonitor" name="build.jfcmonitor"> 
    143160                <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.jfcmonitor}" 
     
    147164                </javac> 
    148165        </target> 
     166         
     167        <!-- Distribution Targets --> 
    149168        <target depends="build,init.dist,javadoc" name="dist"> 
    150169                <!-- dist of main components, i.e., the console --> 
     
    178197                        </manifest> 
    179198                </jar> 
    180                 <jar destfile="${dist.location.main}/${JavaHelperLib.jarname}" basedir="${build.location.javahelperlib}"> 
     199                <jar destfile="${dist.location.main}/${JavaHelperLib.jarname}" 
     200                        basedir="${build.location.javahelperlib}"> 
    181201                        <manifest> 
    182202                                <attribute name="Built-By" value="${user.name}" /> 
     
    193213                        <fileset dir="${EventBenchConsole.location}/rules" /> 
    194214                </copy> 
    195                          
     215 
    196216                <!-- dist of JFCMonitor --> 
    197                 <jar destfile="${dist.location.jfcmonitor}/${JFCMonitor.jarname}" basedir="${build.location.jfcmonitor}"> 
     217                <jar destfile="${dist.location.jfcmonitor}/${JFCMonitor.jarname}" 
     218                        basedir="${build.location.jfcmonitor}"> 
    198219                        <manifest> 
    199220                                <attribute name="Built-By" value="${user.name}" /> 
     
    202223                        </manifest> 
    203224                </jar> 
    204                  
     225 
    205226                <!-- copy Javadoc to dist --> 
    206227                <copy includeemptydirs="false" todir="${dist.location.javadoc}"> 
     
    208229                </copy> 
    209230        </target> 
    210         <target name="javadoc" 
    211                 description="o Create Javadocs (Requires Javadoc 1.4+)"> 
     231         
     232        <!-- Javadoc Targets --> 
     233        <target name="javadoc" description="o Create Javadocs (Requires Javadoc 1.4+)"> 
    212234                <mkdir dir="${javadoc.location}/javahelperlib" /> 
    213235                <mkdir dir="${javadoc.location}/eventbenchcore" /> 
Note: See TracChangeset for help on using the changeset viewer.