[221] | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
---|
| 2 | <project basedir="." default="dist" name="EventBench">
|
---|
[272] | 3 | <!-- General Properties -->
|
---|
[221] | 4 | <property environment="env" />
|
---|
| 5 | <property name="build.location" value="bin" />
|
---|
| 6 | <property name="dist.location" value="dist" />
|
---|
[272] | 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 -->
|
---|
[266] | 13 | <property name="dist.location.main" value="${dist.location}/console" />
|
---|
| 14 | <property name="dist.location.jfcmonitor" value="${dist.location}/jfcmonitor" />
|
---|
[269] | 15 | <property name="dist.location.javadoc" value="${dist.location}/javadoc" />
|
---|
[272] | 16 |
|
---|
| 17 | <!-- EventBenchConsole Properties -->
|
---|
| 18 | <property name="build.location.eventbenchconsole" value="${build.location}/eventbenchconsole" />
|
---|
[221] | 19 | <property name="EventBenchConsole.jarname" value="eventbenchconsole.jar" />
|
---|
| 20 | <property name="EventBenchConsole.location" value="../EventBenchConsole" />
|
---|
[272] | 21 | <path id="EventBenchConsole.classpath">
|
---|
| 22 | <pathelement location="${build.location.eventbenchconsole}" />
|
---|
| 23 | <pathelement location="lib/collections-generic-4.01.jar" />
|
---|
| 24 | <pathelement location="lib/jdom.jar" />
|
---|
[221] | 25 | <pathelement location="lib/colt-1.2.0.jar" />
|
---|
| 26 | <pathelement location="lib/concurrent-1.3.4.jar" />
|
---|
| 27 | <pathelement location="lib/j3d-core-1.3.1.jar" />
|
---|
| 28 | <pathelement location="lib/jung-3d-2.0.1.jar" />
|
---|
| 29 | <pathelement location="lib/jung-3d-demos-2.0.1.jar" />
|
---|
| 30 | <pathelement location="lib/jung-algorithms-2.0.1.jar" />
|
---|
| 31 | <pathelement location="lib/jung-api-2.0.1.jar" />
|
---|
| 32 | <pathelement location="lib/jung-graph-impl-2.0.1.jar" />
|
---|
| 33 | <pathelement location="lib/jung-io-2.0.1.jar" />
|
---|
| 34 | <pathelement location="lib/jung-jai-2.0.1.jar" />
|
---|
| 35 | <pathelement location="lib/jung-jai-samples-2.0.1.jar" />
|
---|
| 36 | <pathelement location="lib/jung-samples-2.0.1.jar" />
|
---|
| 37 | <pathelement location="lib/jung-visualization-2.0.1.jar" />
|
---|
| 38 | <pathelement location="lib/stax-api-1.0.1.jar" />
|
---|
| 39 | <pathelement location="lib/vecmath-1.3.1.jar" />
|
---|
| 40 | <pathelement location="lib/wstx-asl-3.2.6.jar" />
|
---|
| 41 | <pathelement location="lib/commons-codec-1.5.jar" />
|
---|
[272] | 42 | <pathelement location="lib/org.eclipse.core.commands_3.6.0.I20110111-0800.jar" />
|
---|
| 43 | <pathelement location="lib/org.eclipse.equinox.common_3.6.0.v20110523.jar" />
|
---|
| 44 | <pathelement location="lib/org.eclipse.jface_3.7.0.I20110522-1430.jar" />
|
---|
| 45 | <pathelement location="lib/org.eclipse.osgi_3.7.0.v20110613.jar" />
|
---|
| 46 | <pathelement location="lib/org.eclipse.swt.win32.win32.x86_3.7.0.v3735b.jar" />
|
---|
| 47 | <pathelement location="lib/org.eclipse.ui.forms_3.5.100.v20110425.jar" />
|
---|
| 48 | <pathelement location="lib/org.eclipse.ui.workbench_3.7.0.I20110519-0100.jar" />
|
---|
| 49 | <pathelement location="lib/gui-model-core.jar" />
|
---|
| 50 | <pathelement location="lib/log4j-1.2.16.jar" />
|
---|
| 51 | <pathelement location="lib/jopt-simple-3.3.jar" />
|
---|
[221] | 52 | <path refid="JavaHelperLib.classpath" />
|
---|
[272] | 53 | <path refid="EventBenchCore.classpath" />
|
---|
[221] | 54 | </path>
|
---|
[272] | 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" />
|
---|
[221] | 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" />
|
---|
[272] | 80 | <pathelement location="lib/collections-generic-4.01.jar" />
|
---|
[221] | 81 | <path refid="JavaHelperLib.classpath" />
|
---|
| 82 | </path>
|
---|
[272] | 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" />
|
---|
[266] | 96 | <path id="JFCMonitor.classpath" />
|
---|
[272] | 97 |
|
---|
| 98 | <!-- Initialization Targets -->
|
---|
[221] | 99 | <target name="init.build">
|
---|
| 100 | <mkdir dir="bin" />
|
---|
| 101 | </target>
|
---|
| 102 | <target name="init.dist">
|
---|
[266] | 103 | <mkdir dir="${dist.location}" />
|
---|
| 104 | <mkdir dir="${dist.location.main}" />
|
---|
| 105 | <mkdir dir="${dist.location.jfcmonitor}" />
|
---|
[221] | 106 | </target>
|
---|
[272] | 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 -->
|
---|
[221] | 121 | <target name="clean.build">
|
---|
| 122 | <delete dir="${build.location}" />
|
---|
| 123 | </target>
|
---|
| 124 | <target name="clean.dist">
|
---|
| 125 | <delete dir="${dist.location}" />
|
---|
| 126 | </target>
|
---|
| 127 | <target name="clean.javadoc">
|
---|
| 128 | <delete dir="${javadoc.location}" />
|
---|
| 129 | </target>
|
---|
| 130 | <target depends="clean.build,clean.dist,clean.javadoc" name="clean.all" />
|
---|
[272] | 131 |
|
---|
| 132 | <!-- Build Targets -->
|
---|
[221] | 133 | <target
|
---|
[266] | 134 | depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole,build.jfcmonitor"
|
---|
[221] | 135 | name="build" />
|
---|
| 136 | <target depends="init.eventbenchconsole" name="build.eventbenchconsole">
|
---|
| 137 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
| 138 | destdir="${build.location.eventbenchconsole}" source="${source}"
|
---|
| 139 | target="${target}" includeantruntime="false">
|
---|
| 140 | <src path="${EventBenchConsole.location}/src" />
|
---|
| 141 | <classpath refid="EventBenchConsole.classpath" />
|
---|
| 142 | </javac>
|
---|
| 143 | </target>
|
---|
| 144 | <target depends="init.eventbenchcore" name="build.eventbenchcore">
|
---|
| 145 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
| 146 | destdir="${build.location.eventbenchcore}" source="${source}" target="${target}"
|
---|
| 147 | includeantruntime="false">
|
---|
| 148 | <src path="${EventBenchCore.location}/src" />
|
---|
| 149 | <classpath refid="EventBenchCore.classpath" />
|
---|
| 150 | </javac>
|
---|
| 151 | </target>
|
---|
| 152 | <target depends="init.javahelperlib" name="build.javahelperlib">
|
---|
| 153 | <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.javahelperlib}"
|
---|
| 154 | source="${source}" target="${target}" includeantruntime="false">
|
---|
| 155 | <src path="${JavaHelperLib.location}/src" />
|
---|
| 156 | <classpath refid="JavaHelperLib.classpath" />
|
---|
| 157 | </javac>
|
---|
| 158 | </target>
|
---|
[266] | 159 | <target depends="init.jfcmonitor" name="build.jfcmonitor">
|
---|
| 160 | <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.jfcmonitor}"
|
---|
| 161 | source="${source}" target="${target}" includeantruntime="false">
|
---|
| 162 | <src path="${JFCMonitor.location}/src" />
|
---|
| 163 | <classpath refid="JFCMonitor.classpath" />
|
---|
| 164 | </javac>
|
---|
| 165 | </target>
|
---|
[272] | 166 |
|
---|
| 167 | <!-- Distribution Targets -->
|
---|
[221] | 168 | <target depends="build,init.dist,javadoc" name="dist">
|
---|
[266] | 169 | <!-- dist of main components, i.e., the console -->
|
---|
[221] | 170 | <pathconvert property="dist.libs" pathsep=" ">
|
---|
| 171 | <mapper>
|
---|
| 172 | <chainedmapper>
|
---|
| 173 | <flattenmapper />
|
---|
| 174 | <globmapper from="*" to="lib/*" />
|
---|
| 175 | </chainedmapper>
|
---|
| 176 | </mapper>
|
---|
| 177 | <path>
|
---|
| 178 | <fileset dir="lib">
|
---|
| 179 | <include name="**/*.jar" />
|
---|
| 180 | </fileset>
|
---|
| 181 | </path>
|
---|
| 182 | </pathconvert>
|
---|
| 183 | <property name="dist.classpath"
|
---|
| 184 | value="${dist.libs} ${JavaHelperLib.jarname} ${EventBenchCore.jarname}"></property>
|
---|
[266] | 185 | <jar destfile="${dist.location.main}/${EventBenchConsole.jarname}"
|
---|
[221] | 186 | basedir="${build.location.eventbenchconsole}">
|
---|
| 187 | <manifest>
|
---|
| 188 | <attribute name="Built-By" value="${user.name}" />
|
---|
| 189 | <attribute name="Main-Class" value="de.ugoe.cs.eventbench.Runner" />
|
---|
| 190 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
| 191 | </manifest>
|
---|
| 192 | </jar>
|
---|
[266] | 193 | <jar destfile="${dist.location.main}/${EventBenchCore.jarname}"
|
---|
[221] | 194 | basedir="${build.location.eventbenchcore}">
|
---|
| 195 | <manifest>
|
---|
| 196 | <attribute name="Built-By" value="${user.name}" />
|
---|
| 197 | </manifest>
|
---|
| 198 | </jar>
|
---|
[272] | 199 | <jar destfile="${dist.location.main}/${JavaHelperLib.jarname}"
|
---|
| 200 | basedir="${build.location.javahelperlib}">
|
---|
[221] | 201 | <manifest>
|
---|
| 202 | <attribute name="Built-By" value="${user.name}" />
|
---|
| 203 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
| 204 | </manifest>
|
---|
| 205 | </jar>
|
---|
[266] | 206 | <copy includeemptydirs="false" todir="${dist.location.main}/lib">
|
---|
[221] | 207 | <fileset dir="lib" />
|
---|
| 208 | </copy>
|
---|
[266] | 209 | <copy todir="${dist.location.main}/misc">
|
---|
[221] | 210 | <fileset dir="${EventBenchConsole.location}/misc" />
|
---|
| 211 | </copy>
|
---|
[266] | 212 | <copy todir="${dist.location.main}/rules">
|
---|
[221] | 213 | <fileset dir="${EventBenchConsole.location}/rules" />
|
---|
| 214 | </copy>
|
---|
[272] | 215 |
|
---|
[266] | 216 | <!-- dist of JFCMonitor -->
|
---|
[272] | 217 | <jar destfile="${dist.location.jfcmonitor}/${JFCMonitor.jarname}"
|
---|
| 218 | basedir="${build.location.jfcmonitor}">
|
---|
[266] | 219 | <manifest>
|
---|
| 220 | <attribute name="Built-By" value="${user.name}" />
|
---|
| 221 | <attribute name="Main-Class" value="de.ugoe.cs.eventbench.jfcmonitor.Runner" />
|
---|
[269] | 222 | <attribute name="Class-Path" value="${JavaHelperLib.jarname}" />
|
---|
[266] | 223 | </manifest>
|
---|
| 224 | </jar>
|
---|
[272] | 225 |
|
---|
[269] | 226 | <!-- copy Javadoc to dist -->
|
---|
| 227 | <copy includeemptydirs="false" todir="${dist.location.javadoc}">
|
---|
| 228 | <fileset dir="${javadoc.location}" />
|
---|
| 229 | </copy>
|
---|
[221] | 230 | </target>
|
---|
[272] | 231 |
|
---|
| 232 | <!-- Javadoc Targets -->
|
---|
| 233 | <target name="javadoc" description="o Create Javadocs (Requires Javadoc 1.4+)">
|
---|
[221] | 234 | <mkdir dir="${javadoc.location}/javahelperlib" />
|
---|
| 235 | <mkdir dir="${javadoc.location}/eventbenchcore" />
|
---|
| 236 | <mkdir dir="${javadoc.location}/eventbenchconsole" />
|
---|
[269] | 237 | <mkdir dir="${javadoc.location}/jfcmonitor" />
|
---|
[221] | 238 | <javadoc destdir="${javadoc.location}/javahelperlib"
|
---|
| 239 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
| 240 | <classpath refid="JavaHelperLib.classpath" />
|
---|
| 241 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
| 242 | <fileset dir="${JavaHelperLib.location}/src" includes="**/*.java" />
|
---|
| 243 | </javadoc>
|
---|
| 244 | <javadoc destdir="${javadoc.location}/eventbenchcore"
|
---|
| 245 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
| 246 | <classpath refid="EventBenchCore.classpath" />
|
---|
| 247 | <link resolveLink="true" href="${javadoc.location}/javahelperlib/" />
|
---|
| 248 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
| 249 | <fileset dir="${EventBenchCore.location}/src" includes="**/*.java" />
|
---|
| 250 | </javadoc>
|
---|
| 251 | <javadoc destdir="${javadoc.location}/eventbenchconsole"
|
---|
| 252 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
| 253 | <classpath refid="EventBenchConsole.classpath" />
|
---|
| 254 | <link resolveLink="true" href="${javadoc.location}/javahelperlib/" />
|
---|
| 255 | <link resolveLink="true" href="${javadoc.location}/eventbenchcore/" />
|
---|
| 256 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
| 257 | <fileset dir="${EventBenchConsole.location}/src" includes="**/*.java" />
|
---|
| 258 | </javadoc>
|
---|
[269] | 259 | <javadoc destdir="${javadoc.location}/jfcmonitor"
|
---|
| 260 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
| 261 | <classpath refid="JFCMonitor.classpath" />
|
---|
| 262 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
| 263 | <fileset dir="${JFCMonitor.location}/src" includes="**/*.java" />
|
---|
| 264 | </javadoc>
|
---|
[221] | 265 | </target>
|
---|
| 266 | </project>
|
---|