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" />
|
---|
75 | <path refid="JavaHelperLib.classpath" />
|
---|
76 | <path refid="EventBenchCore.classpath" />
|
---|
77 | </path>
|
---|
78 | <target name="init.build">
|
---|
79 | <mkdir dir="bin" />
|
---|
80 | </target>
|
---|
81 | <target name="init.dist">
|
---|
82 | <mkdir dir="dist" />
|
---|
83 | </target>
|
---|
84 | <target name="clean.build">
|
---|
85 | <delete dir="${build.location}" />
|
---|
86 | </target>
|
---|
87 | <target name="clean.dist">
|
---|
88 | <delete dir="${dist.location}" />
|
---|
89 | </target>
|
---|
90 | <target name="clean.javadoc">
|
---|
91 | <delete dir="${javadoc.location}" />
|
---|
92 | </target>
|
---|
93 | <target depends="clean.build,clean.dist,clean.javadoc" name="clean.all" />
|
---|
94 | <target
|
---|
95 | depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole"
|
---|
96 | name="build" />
|
---|
97 | <target depends="init.build" name="init.eventbenchconsole">
|
---|
98 | <mkdir dir="${build.location.eventbenchconsole}" />
|
---|
99 | </target>
|
---|
100 | <target depends="init.eventbenchconsole" name="build.eventbenchconsole">
|
---|
101 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
102 | destdir="${build.location.eventbenchconsole}" source="${source}"
|
---|
103 | target="${target}" includeantruntime="false">
|
---|
104 | <src path="${EventBenchConsole.location}/src" />
|
---|
105 | <classpath refid="EventBenchConsole.classpath" />
|
---|
106 | </javac>
|
---|
107 | </target>
|
---|
108 | <target depends="init.build" name="init.eventbenchcore">
|
---|
109 | <mkdir dir="${build.location.eventbenchcore}" />
|
---|
110 | </target>
|
---|
111 | <target depends="init.eventbenchcore" name="build.eventbenchcore">
|
---|
112 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
113 | destdir="${build.location.eventbenchcore}" source="${source}" target="${target}"
|
---|
114 | includeantruntime="false">
|
---|
115 | <src path="${EventBenchCore.location}/src" />
|
---|
116 | <classpath refid="EventBenchCore.classpath" />
|
---|
117 | </javac>
|
---|
118 | </target>
|
---|
119 | <target depends="init.build" name="init.javahelperlib">
|
---|
120 | <mkdir dir="${build.location.javahelperlib}" />
|
---|
121 | </target>
|
---|
122 | <target depends="init.javahelperlib" name="build.javahelperlib">
|
---|
123 | <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.javahelperlib}"
|
---|
124 | source="${source}" target="${target}" includeantruntime="false">
|
---|
125 | <src path="${JavaHelperLib.location}/src" />
|
---|
126 | <classpath refid="JavaHelperLib.classpath" />
|
---|
127 | </javac>
|
---|
128 | </target>
|
---|
129 | <target depends="build,init.dist,javadoc" name="dist">
|
---|
130 | <pathconvert property="dist.libs" pathsep=" ">
|
---|
131 | <mapper>
|
---|
132 | <chainedmapper>
|
---|
133 | <flattenmapper />
|
---|
134 | <globmapper from="*" to="lib/*" />
|
---|
135 | </chainedmapper>
|
---|
136 | </mapper>
|
---|
137 | <path>
|
---|
138 | <fileset dir="lib">
|
---|
139 | <include name="**/*.jar" />
|
---|
140 | </fileset>
|
---|
141 | </path>
|
---|
142 | </pathconvert>
|
---|
143 | <property name="dist.classpath"
|
---|
144 | value="${dist.libs} ${JavaHelperLib.jarname} ${EventBenchCore.jarname}"></property>
|
---|
145 | <jar destfile="${dist.location}/${EventBenchConsole.jarname}"
|
---|
146 | basedir="${build.location.eventbenchconsole}">
|
---|
147 | <manifest>
|
---|
148 | <attribute name="Built-By" value="${user.name}" />
|
---|
149 | <attribute name="Main-Class" value="de.ugoe.cs.eventbench.Runner" />
|
---|
150 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
151 | </manifest>
|
---|
152 | </jar>
|
---|
153 | <jar destfile="${dist.location}/${EventBenchCore.jarname}"
|
---|
154 | basedir="${build.location.eventbenchcore}">
|
---|
155 | <manifest>
|
---|
156 | <attribute name="Built-By" value="${user.name}" />
|
---|
157 | </manifest>
|
---|
158 | </jar>
|
---|
159 | <jar destfile="${dist.location}/${JavaHelperLib.jarname}" basedir="${build.location.javahelperlib}">
|
---|
160 | <manifest>
|
---|
161 | <attribute name="Built-By" value="${user.name}" />
|
---|
162 | <attribute name="Main-Class" value="de.ugoe.cs.eventbench.Runner" />
|
---|
163 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
164 | </manifest>
|
---|
165 | </jar>
|
---|
166 | <copy includeemptydirs="false" todir="dist/lib">
|
---|
167 | <fileset dir="lib" />
|
---|
168 | </copy>
|
---|
169 | <copy todir="dist/misc">
|
---|
170 | <fileset dir="${EventBenchConsole.location}/misc" />
|
---|
171 | </copy>
|
---|
172 | <copy todir="dist/rules">
|
---|
173 | <fileset dir="${EventBenchConsole.location}/rules" />
|
---|
174 | </copy>
|
---|
175 | </target>
|
---|
176 | <target name="javadoc"
|
---|
177 | description="o Create Javadocs for the demo (Requires Javadoc 1.4+)">
|
---|
178 | <mkdir dir="${javadoc.location}/javahelperlib" />
|
---|
179 | <mkdir dir="${javadoc.location}/eventbenchcore" />
|
---|
180 | <mkdir dir="${javadoc.location}/eventbenchconsole" />
|
---|
181 | <javadoc destdir="${javadoc.location}/javahelperlib"
|
---|
182 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
183 | <classpath refid="JavaHelperLib.classpath" />
|
---|
184 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
185 | <fileset dir="${JavaHelperLib.location}/src" includes="**/*.java" />
|
---|
186 | </javadoc>
|
---|
187 | <javadoc destdir="${javadoc.location}/eventbenchcore"
|
---|
188 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
189 | <classpath refid="EventBenchCore.classpath" />
|
---|
190 | <link resolveLink="true" href="${javadoc.location}/javahelperlib/" />
|
---|
191 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
192 | <fileset dir="${EventBenchCore.location}/src" includes="**/*.java" />
|
---|
193 | </javadoc>
|
---|
194 | <javadoc destdir="${javadoc.location}/eventbenchconsole"
|
---|
195 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
196 | <classpath refid="EventBenchConsole.classpath" />
|
---|
197 | <link resolveLink="true" href="${javadoc.location}/javahelperlib/" />
|
---|
198 | <link resolveLink="true" href="${javadoc.location}/eventbenchcore/" />
|
---|
199 | <link href="http://download.oracle.com/javase/6/docs/api/" />
|
---|
200 | <fileset dir="${EventBenchConsole.location}/src" includes="**/*.java" />
|
---|
201 | </javadoc>
|
---|
202 | </target>
|
---|
203 | </project>
|
---|