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