Changeset 266


Ignore:
Timestamp:
12/02/11 11:15:54 (13 years ago)
Author:
sherbold
Message:
  • build script now includes JFCMonitor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaCommons/build.xml

    r247 r266  
    66        <property name="build.location.eventbenchcore" value="${build.location}/eventbenchcore" /> 
    77        <property name="build.location.javahelperlib" value="${build.location}/javahelperlib" /> 
     8        <property name="build.location.jfcmonitor" value="${build.location}/jfcmonitor" /> 
    89        <property name="dist.location" value="dist" /> 
     10        <property name="dist.location.main" value="${dist.location}/console" /> 
     11        <property name="dist.location.jfcmonitor" value="${dist.location}/jfcmonitor" /> 
    912        <property name="javadoc.location" value="javadoc" /> 
    1013        <property name="EventBenchConsole.jarname" value="eventbenchconsole.jar" /> 
    1114        <property name="EventBenchCore.jarname" value="eventbenchcore.jar" /> 
    1215        <property name="JavaHelperLib.jarname" value="javahelperlib.jar" /> 
     16        <property name="JFCMonitor.jarname" value="jfcmonitor.jar" /> 
    1317        <property name="EventBenchConsole.location" value="../EventBenchConsole" /> 
    1418        <property name="JavaHelperLib.location" value="../JavaHelperLib" /> 
    1519        <property name="EventBenchCore.location" value="../EventBenchCore" /> 
     20        <property name="JFCMonitor.location" value="../JFCMonitor" /> 
    1621        <property name="debuglevel" value="source,lines,vars" /> 
    1722        <property name="target" value="1.6" /> 
     
    7782                <path refid="EventBenchCore.classpath" /> 
    7883        </path> 
     84        <path id="JFCMonitor.classpath" /> 
    7985        <target name="init.build"> 
    8086                <mkdir dir="bin" /> 
    8187        </target> 
    8288        <target name="init.dist"> 
    83                 <mkdir dir="dist" /> 
     89                <mkdir dir="${dist.location}" /> 
     90                <mkdir dir="${dist.location.main}" /> 
     91                <mkdir dir="${dist.location.jfcmonitor}" /> 
    8492        </target> 
    8593        <target name="clean.build"> 
     
    94102        <target depends="clean.build,clean.dist,clean.javadoc" name="clean.all" /> 
    95103        <target 
    96                 depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole" 
     104                depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole,build.jfcmonitor" 
    97105                name="build" /> 
    98106        <target depends="init.build" name="init.eventbenchconsole"> 
     
    128136                </javac> 
    129137        </target> 
     138        <target depends="init.build" name="init.jfcmonitor"> 
     139                <mkdir dir="${build.location.jfcmonitor}" /> 
     140        </target> 
     141        <target depends="init.jfcmonitor" name="build.jfcmonitor"> 
     142                <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.jfcmonitor}" 
     143                        source="${source}" target="${target}" includeantruntime="false"> 
     144                        <src path="${JFCMonitor.location}/src" /> 
     145                        <classpath refid="JFCMonitor.classpath" /> 
     146                </javac> 
     147        </target> 
    130148        <target depends="build,init.dist,javadoc" name="dist"> 
     149                <!-- dist of main components, i.e., the console --> 
    131150                <pathconvert property="dist.libs" pathsep=" "> 
    132151                        <mapper> 
     
    144163                <property name="dist.classpath" 
    145164                        value="${dist.libs} ${JavaHelperLib.jarname} ${EventBenchCore.jarname}"></property> 
    146                 <jar destfile="${dist.location}/${EventBenchConsole.jarname}" 
     165                <jar destfile="${dist.location.main}/${EventBenchConsole.jarname}" 
    147166                        basedir="${build.location.eventbenchconsole}"> 
    148167                        <manifest> 
     
    152171                        </manifest> 
    153172                </jar> 
    154                 <jar destfile="${dist.location}/${EventBenchCore.jarname}" 
     173                <jar destfile="${dist.location.main}/${EventBenchCore.jarname}" 
    155174                        basedir="${build.location.eventbenchcore}"> 
    156175                        <manifest> 
     
    158177                        </manifest> 
    159178                </jar> 
    160                 <jar destfile="${dist.location}/${JavaHelperLib.jarname}" basedir="${build.location.javahelperlib}"> 
    161                         <manifest> 
    162                                 <attribute name="Built-By" value="${user.name}" /> 
    163                                 <attribute name="Main-Class" value="de.ugoe.cs.eventbench.Runner" /> 
     179                <jar destfile="${dist.location.main}/${JavaHelperLib.jarname}" basedir="${build.location.javahelperlib}"> 
     180                        <manifest> 
     181                                <attribute name="Built-By" value="${user.name}" /> 
    164182                                <attribute name="Class-Path" value="${dist.classpath}" /> 
    165183                        </manifest> 
    166184                </jar> 
    167                 <copy includeemptydirs="false" todir="dist/lib"> 
     185                <copy includeemptydirs="false" todir="${dist.location.main}/lib"> 
    168186                        <fileset dir="lib" /> 
    169187                </copy> 
    170                 <copy todir="dist/misc"> 
     188                <copy todir="${dist.location.main}/misc"> 
    171189                        <fileset dir="${EventBenchConsole.location}/misc" /> 
    172190                </copy> 
    173                 <copy todir="dist/rules"> 
     191                <copy todir="${dist.location.main}/rules"> 
    174192                        <fileset dir="${EventBenchConsole.location}/rules" /> 
    175193                </copy> 
     194                         
     195                <!-- dist of JFCMonitor --> 
     196                <jar destfile="${dist.location.jfcmonitor}/${JFCMonitor.jarname}" basedir="${build.location.jfcmonitor}"> 
     197                        <manifest> 
     198                                <attribute name="Built-By" value="${user.name}" /> 
     199                                <attribute name="Main-Class" value="de.ugoe.cs.eventbench.jfcmonitor.Runner" /> 
     200                                <attribute name="Class-Path" value="${jfc.classpath}" /> 
     201                        </manifest> 
     202                </jar> 
    176203        </target> 
    177204        <target name="javadoc" 
Note: See TracChangeset for help on using the changeset viewer.