source: trunk/JavaCommons/build.xml @ 272

Last change on this file since 272 was 272, checked in by sherbold, 12 years ago
  • build script maintenance
  • Property svn:mime-type set to text/plain
File size: 11.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<project basedir="." default="dist" name="EventBench">
3        <!-- General Properties -->
4        <property environment="env" />
5        <property name="build.location" value="bin" />
6        <property name="dist.location" value="dist" />
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 -->
13        <property name="dist.location.main" value="${dist.location}/console" />
14        <property name="dist.location.jfcmonitor" value="${dist.location}/jfcmonitor" />
15        <property name="dist.location.javadoc" value="${dist.location}/javadoc" />
16
17        <!-- EventBenchConsole Properties -->
18        <property name="build.location.eventbenchconsole" value="${build.location}/eventbenchconsole" />
19        <property name="EventBenchConsole.jarname" value="eventbenchconsole.jar" />
20        <property name="EventBenchConsole.location" value="../EventBenchConsole" />
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" />
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/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" />
52                <path refid="JavaHelperLib.classpath" />
53                <path refid="EventBenchCore.classpath" />
54        </path>
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" />
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" />
80                <pathelement location="lib/collections-generic-4.01.jar" />
81                <path refid="JavaHelperLib.classpath" />
82        </path>
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" />
96        <path id="JFCMonitor.classpath" />
97
98        <!-- Initialization Targets -->
99        <target name="init.build">
100                <mkdir dir="bin" />
101        </target>
102        <target name="init.dist">
103                <mkdir dir="${dist.location}" />
104                <mkdir dir="${dist.location.main}" />
105                <mkdir dir="${dist.location.jfcmonitor}" />
106        </target>
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 -->
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" />
131
132        <!-- Build Targets -->
133        <target
134                depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole,build.jfcmonitor"
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>
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>
166       
167        <!-- Distribution Targets -->
168        <target depends="build,init.dist,javadoc" name="dist">
169                <!-- dist of main components, i.e., the console -->
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>
185                <jar destfile="${dist.location.main}/${EventBenchConsole.jarname}"
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>
193                <jar destfile="${dist.location.main}/${EventBenchCore.jarname}"
194                        basedir="${build.location.eventbenchcore}">
195                        <manifest>
196                                <attribute name="Built-By" value="${user.name}" />
197                        </manifest>
198                </jar>
199                <jar destfile="${dist.location.main}/${JavaHelperLib.jarname}"
200                        basedir="${build.location.javahelperlib}">
201                        <manifest>
202                                <attribute name="Built-By" value="${user.name}" />
203                                <attribute name="Class-Path" value="${dist.classpath}" />
204                        </manifest>
205                </jar>
206                <copy includeemptydirs="false" todir="${dist.location.main}/lib">
207                        <fileset dir="lib" />
208                </copy>
209                <copy todir="${dist.location.main}/misc">
210                        <fileset dir="${EventBenchConsole.location}/misc" />
211                </copy>
212                <copy todir="${dist.location.main}/rules">
213                        <fileset dir="${EventBenchConsole.location}/rules" />
214                </copy>
215
216                <!-- dist of JFCMonitor -->
217                <jar destfile="${dist.location.jfcmonitor}/${JFCMonitor.jarname}"
218                        basedir="${build.location.jfcmonitor}">
219                        <manifest>
220                                <attribute name="Built-By" value="${user.name}" />
221                                <attribute name="Main-Class" value="de.ugoe.cs.eventbench.jfcmonitor.Runner" />
222                                <attribute name="Class-Path" value="${JavaHelperLib.jarname}" />
223                        </manifest>
224                </jar>
225
226                <!-- copy Javadoc to dist -->
227                <copy includeemptydirs="false" todir="${dist.location.javadoc}">
228                        <fileset dir="${javadoc.location}" />
229                </copy>
230        </target>
231       
232        <!-- Javadoc Targets -->
233        <target name="javadoc" description="o Create Javadocs (Requires Javadoc 1.4+)">
234                <mkdir dir="${javadoc.location}/javahelperlib" />
235                <mkdir dir="${javadoc.location}/eventbenchcore" />
236                <mkdir dir="${javadoc.location}/eventbenchconsole" />
237                <mkdir dir="${javadoc.location}/jfcmonitor" />
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>
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>
265        </target>
266</project>
Note: See TracBrowser for help on using the repository browser.