[221] | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
---|
| 2 | <project basedir="." default="dist" name="EventBench">
|
---|
| 3 | <property environment="env" />
|
---|
| 4 | <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" />
|
---|
[266] | 8 | <property name="build.location.jfcmonitor" value="${build.location}/jfcmonitor" />
|
---|
[221] | 9 | <property name="dist.location" value="dist" />
|
---|
[266] | 10 | <property name="dist.location.main" value="${dist.location}/console" />
|
---|
| 11 | <property name="dist.location.jfcmonitor" value="${dist.location}/jfcmonitor" />
|
---|
[269] | 12 | <property name="dist.location.javadoc" value="${dist.location}/javadoc" />
|
---|
[221] | 13 | <property name="javadoc.location" value="javadoc" />
|
---|
| 14 | <property name="EventBenchConsole.jarname" value="eventbenchconsole.jar" />
|
---|
| 15 | <property name="EventBenchCore.jarname" value="eventbenchcore.jar" />
|
---|
| 16 | <property name="JavaHelperLib.jarname" value="javahelperlib.jar" />
|
---|
[266] | 17 | <property name="JFCMonitor.jarname" value="jfcmonitor.jar" />
|
---|
[221] | 18 | <property name="EventBenchConsole.location" value="../EventBenchConsole" />
|
---|
| 19 | <property name="JavaHelperLib.location" value="../JavaHelperLib" />
|
---|
| 20 | <property name="EventBenchCore.location" value="../EventBenchCore" />
|
---|
[266] | 21 | <property name="JFCMonitor.location" value="../JFCMonitor" />
|
---|
[221] | 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>
|
---|
| 51 | <path id="EventBenchConsole.classpath">
|
---|
| 52 | <pathelement location="${build.location.eventbenchconsole}" />
|
---|
| 53 | <pathelement location="lib/collections-generic-4.01.jar" />
|
---|
| 54 | <pathelement location="lib/jdom.jar" />
|
---|
| 55 | <pathelement location="lib/colt-1.2.0.jar" />
|
---|
| 56 | <pathelement location="lib/concurrent-1.3.4.jar" />
|
---|
| 57 | <pathelement location="lib/j3d-core-1.3.1.jar" />
|
---|
| 58 | <pathelement location="lib/jung-3d-2.0.1.jar" />
|
---|
| 59 | <pathelement location="lib/jung-3d-demos-2.0.1.jar" />
|
---|
| 60 | <pathelement location="lib/jung-algorithms-2.0.1.jar" />
|
---|
| 61 | <pathelement location="lib/jung-api-2.0.1.jar" />
|
---|
| 62 | <pathelement location="lib/jung-graph-impl-2.0.1.jar" />
|
---|
| 63 | <pathelement location="lib/jung-io-2.0.1.jar" />
|
---|
| 64 | <pathelement location="lib/jung-jai-2.0.1.jar" />
|
---|
| 65 | <pathelement location="lib/jung-jai-samples-2.0.1.jar" />
|
---|
| 66 | <pathelement location="lib/jung-samples-2.0.1.jar" />
|
---|
| 67 | <pathelement location="lib/jung-visualization-2.0.1.jar" />
|
---|
| 68 | <pathelement location="lib/stax-api-1.0.1.jar" />
|
---|
| 69 | <pathelement location="lib/vecmath-1.3.1.jar" />
|
---|
| 70 | <pathelement location="lib/wstx-asl-3.2.6.jar" />
|
---|
| 71 | <pathelement location="lib/commons-codec-1.5.jar" />
|
---|
| 72 | <pathelement location="lib/org.eclipse.core.commands_3.6.0.I20110111-0800.jar" />
|
---|
| 73 | <pathelement location="lib/org.eclipse.equinox.common_3.6.0.v20110523.jar" />
|
---|
| 74 | <pathelement location="lib/org.eclipse.jface_3.7.0.I20110522-1430.jar" />
|
---|
| 75 | <pathelement location="lib/org.eclipse.osgi_3.7.0.v20110613.jar" />
|
---|
| 76 | <pathelement location="lib/org.eclipse.swt.win32.win32.x86_3.7.0.v3735b.jar" />
|
---|
| 77 | <pathelement location="lib/org.eclipse.ui.forms_3.5.100.v20110425.jar" />
|
---|
| 78 | <pathelement location="lib/org.eclipse.ui.workbench_3.7.0.I20110519-0100.jar" />
|
---|
| 79 | <pathelement location="lib/gui-model-core.jar" />
|
---|
| 80 | <pathelement location="lib/log4j-1.2.16.jar" />
|
---|
[247] | 81 | <pathelement location="lib/jopt-simple-3.3.jar" />
|
---|
[221] | 82 | <path refid="JavaHelperLib.classpath" />
|
---|
| 83 | <path refid="EventBenchCore.classpath" />
|
---|
| 84 | </path>
|
---|
[266] | 85 | <path id="JFCMonitor.classpath" />
|
---|
[221] | 86 | <target name="init.build">
|
---|
| 87 | <mkdir dir="bin" />
|
---|
| 88 | </target>
|
---|
| 89 | <target name="init.dist">
|
---|
[266] | 90 | <mkdir dir="${dist.location}" />
|
---|
| 91 | <mkdir dir="${dist.location.main}" />
|
---|
| 92 | <mkdir dir="${dist.location.jfcmonitor}" />
|
---|
[221] | 93 | </target>
|
---|
| 94 | <target name="clean.build">
|
---|
| 95 | <delete dir="${build.location}" />
|
---|
| 96 | </target>
|
---|
| 97 | <target name="clean.dist">
|
---|
| 98 | <delete dir="${dist.location}" />
|
---|
| 99 | </target>
|
---|
| 100 | <target name="clean.javadoc">
|
---|
| 101 | <delete dir="${javadoc.location}" />
|
---|
| 102 | </target>
|
---|
| 103 | <target depends="clean.build,clean.dist,clean.javadoc" name="clean.all" />
|
---|
| 104 | <target
|
---|
[266] | 105 | depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole,build.jfcmonitor"
|
---|
[221] | 106 | name="build" />
|
---|
| 107 | <target depends="init.build" name="init.eventbenchconsole">
|
---|
| 108 | <mkdir dir="${build.location.eventbenchconsole}" />
|
---|
| 109 | </target>
|
---|
| 110 | <target depends="init.eventbenchconsole" name="build.eventbenchconsole">
|
---|
| 111 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
| 112 | destdir="${build.location.eventbenchconsole}" source="${source}"
|
---|
| 113 | target="${target}" includeantruntime="false">
|
---|
| 114 | <src path="${EventBenchConsole.location}/src" />
|
---|
| 115 | <classpath refid="EventBenchConsole.classpath" />
|
---|
| 116 | </javac>
|
---|
| 117 | </target>
|
---|
| 118 | <target depends="init.build" name="init.eventbenchcore">
|
---|
| 119 | <mkdir dir="${build.location.eventbenchcore}" />
|
---|
| 120 | </target>
|
---|
| 121 | <target depends="init.eventbenchcore" name="build.eventbenchcore">
|
---|
| 122 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
| 123 | destdir="${build.location.eventbenchcore}" source="${source}" target="${target}"
|
---|
| 124 | includeantruntime="false">
|
---|
| 125 | <src path="${EventBenchCore.location}/src" />
|
---|
| 126 | <classpath refid="EventBenchCore.classpath" />
|
---|
| 127 | </javac>
|
---|
| 128 | </target>
|
---|
| 129 | <target depends="init.build" name="init.javahelperlib">
|
---|
| 130 | <mkdir dir="${build.location.javahelperlib}" />
|
---|
| 131 | </target>
|
---|
| 132 | <target depends="init.javahelperlib" name="build.javahelperlib">
|
---|
| 133 | <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.javahelperlib}"
|
---|
| 134 | source="${source}" target="${target}" includeantruntime="false">
|
---|
| 135 | <src path="${JavaHelperLib.location}/src" />
|
---|
| 136 | <classpath refid="JavaHelperLib.classpath" />
|
---|
| 137 | </javac>
|
---|
| 138 | </target>
|
---|
[266] | 139 | <target depends="init.build" name="init.jfcmonitor">
|
---|
| 140 | <mkdir dir="${build.location.jfcmonitor}" />
|
---|
| 141 | </target>
|
---|
| 142 | <target depends="init.jfcmonitor" name="build.jfcmonitor">
|
---|
| 143 | <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.jfcmonitor}"
|
---|
| 144 | source="${source}" target="${target}" includeantruntime="false">
|
---|
| 145 | <src path="${JFCMonitor.location}/src" />
|
---|
| 146 | <classpath refid="JFCMonitor.classpath" />
|
---|
| 147 | </javac>
|
---|
| 148 | </target>
|
---|
[221] | 149 | <target depends="build,init.dist,javadoc" name="dist">
|
---|
[266] | 150 | <!-- dist of main components, i.e., the console -->
|
---|
[221] | 151 | <pathconvert property="dist.libs" pathsep=" ">
|
---|
| 152 | <mapper>
|
---|
| 153 | <chainedmapper>
|
---|
| 154 | <flattenmapper />
|
---|
| 155 | <globmapper from="*" to="lib/*" />
|
---|
| 156 | </chainedmapper>
|
---|
| 157 | </mapper>
|
---|
| 158 | <path>
|
---|
| 159 | <fileset dir="lib">
|
---|
| 160 | <include name="**/*.jar" />
|
---|
| 161 | </fileset>
|
---|
| 162 | </path>
|
---|
| 163 | </pathconvert>
|
---|
| 164 | <property name="dist.classpath"
|
---|
| 165 | value="${dist.libs} ${JavaHelperLib.jarname} ${EventBenchCore.jarname}"></property>
|
---|
[266] | 166 | <jar destfile="${dist.location.main}/${EventBenchConsole.jarname}"
|
---|
[221] | 167 | basedir="${build.location.eventbenchconsole}">
|
---|
| 168 | <manifest>
|
---|
| 169 | <attribute name="Built-By" value="${user.name}" />
|
---|
| 170 | <attribute name="Main-Class" value="de.ugoe.cs.eventbench.Runner" />
|
---|
| 171 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
| 172 | </manifest>
|
---|
| 173 | </jar>
|
---|
[266] | 174 | <jar destfile="${dist.location.main}/${EventBenchCore.jarname}"
|
---|
[221] | 175 | basedir="${build.location.eventbenchcore}">
|
---|
| 176 | <manifest>
|
---|
| 177 | <attribute name="Built-By" value="${user.name}" />
|
---|
| 178 | </manifest>
|
---|
| 179 | </jar>
|
---|
[266] | 180 | <jar destfile="${dist.location.main}/${JavaHelperLib.jarname}" basedir="${build.location.javahelperlib}">
|
---|
[221] | 181 | <manifest>
|
---|
| 182 | <attribute name="Built-By" value="${user.name}" />
|
---|
| 183 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
| 184 | </manifest>
|
---|
| 185 | </jar>
|
---|
[266] | 186 | <copy includeemptydirs="false" todir="${dist.location.main}/lib">
|
---|
[221] | 187 | <fileset dir="lib" />
|
---|
| 188 | </copy>
|
---|
[266] | 189 | <copy todir="${dist.location.main}/misc">
|
---|
[221] | 190 | <fileset dir="${EventBenchConsole.location}/misc" />
|
---|
| 191 | </copy>
|
---|
[266] | 192 | <copy todir="${dist.location.main}/rules">
|
---|
[221] | 193 | <fileset dir="${EventBenchConsole.location}/rules" />
|
---|
| 194 | </copy>
|
---|
[266] | 195 |
|
---|
| 196 | <!-- dist of JFCMonitor -->
|
---|
| 197 | <jar destfile="${dist.location.jfcmonitor}/${JFCMonitor.jarname}" basedir="${build.location.jfcmonitor}">
|
---|
| 198 | <manifest>
|
---|
| 199 | <attribute name="Built-By" value="${user.name}" />
|
---|
| 200 | <attribute name="Main-Class" value="de.ugoe.cs.eventbench.jfcmonitor.Runner" />
|
---|
[269] | 201 | <attribute name="Class-Path" value="${JavaHelperLib.jarname}" />
|
---|
[266] | 202 | </manifest>
|
---|
| 203 | </jar>
|
---|
[269] | 204 |
|
---|
| 205 | <!-- copy Javadoc to dist -->
|
---|
| 206 | <copy includeemptydirs="false" todir="${dist.location.javadoc}">
|
---|
| 207 | <fileset dir="${javadoc.location}" />
|
---|
| 208 | </copy>
|
---|
[221] | 209 | </target>
|
---|
| 210 | <target name="javadoc"
|
---|
[269] | 211 | description="o Create Javadocs (Requires Javadoc 1.4+)">
|
---|
[221] | 212 | <mkdir dir="${javadoc.location}/javahelperlib" />
|
---|
| 213 | <mkdir dir="${javadoc.location}/eventbenchcore" />
|
---|
| 214 | <mkdir dir="${javadoc.location}/eventbenchconsole" />
|
---|
[269] | 215 | <mkdir dir="${javadoc.location}/jfcmonitor" />
|
---|
[221] | 216 | <javadoc destdir="${javadoc.location}/javahelperlib"
|
---|
| 217 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
| 218 | <classpath refid="JavaHelperLib.classpath" />
|
---|
| 219 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
| 220 | <fileset dir="${JavaHelperLib.location}/src" includes="**/*.java" />
|
---|
| 221 | </javadoc>
|
---|
| 222 | <javadoc destdir="${javadoc.location}/eventbenchcore"
|
---|
| 223 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
| 224 | <classpath refid="EventBenchCore.classpath" />
|
---|
| 225 | <link resolveLink="true" href="${javadoc.location}/javahelperlib/" />
|
---|
| 226 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
| 227 | <fileset dir="${EventBenchCore.location}/src" includes="**/*.java" />
|
---|
| 228 | </javadoc>
|
---|
| 229 | <javadoc destdir="${javadoc.location}/eventbenchconsole"
|
---|
| 230 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
| 231 | <classpath refid="EventBenchConsole.classpath" />
|
---|
| 232 | <link resolveLink="true" href="${javadoc.location}/javahelperlib/" />
|
---|
| 233 | <link resolveLink="true" href="${javadoc.location}/eventbenchcore/" />
|
---|
| 234 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
| 235 | <fileset dir="${EventBenchConsole.location}/src" includes="**/*.java" />
|
---|
| 236 | </javadoc>
|
---|
[269] | 237 | <javadoc destdir="${javadoc.location}/jfcmonitor"
|
---|
| 238 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
| 239 | <classpath refid="JFCMonitor.classpath" />
|
---|
| 240 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
| 241 | <fileset dir="${JFCMonitor.location}/src" includes="**/*.java" />
|
---|
| 242 | </javadoc>
|
---|
[221] | 243 | </target>
|
---|
| 244 | </project>
|
---|