source: trunk/JavaCommons/build.xml @ 266

Last change on this file since 266 was 266, checked in by sherbold, 12 years ago
  • build script now includes JFCMonitor
  • Property svn:mime-type set to text/plain
File size: 10.9 KB
Line 
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="build.location.jfcmonitor" value="${build.location}/jfcmonitor" />
9        <property name="dist.location" value="dist" />
10        <property name="dist.location.main" value="${dist.location}/console" />
11        <property name="dist.location.jfcmonitor" value="${dist.location}/jfcmonitor" />
12        <property name="javadoc.location" value="javadoc" />
13        <property name="EventBenchConsole.jarname" value="eventbenchconsole.jar" />
14        <property name="EventBenchCore.jarname" value="eventbenchcore.jar" />
15        <property name="JavaHelperLib.jarname" value="javahelperlib.jar" />
16        <property name="JFCMonitor.jarname" value="jfcmonitor.jar" />
17        <property name="EventBenchConsole.location" value="../EventBenchConsole" />
18        <property name="JavaHelperLib.location" value="../JavaHelperLib" />
19        <property name="EventBenchCore.location" value="../EventBenchCore" />
20        <property name="JFCMonitor.location" value="../JFCMonitor" />
21        <property name="debuglevel" value="source,lines,vars" />
22        <property name="target" value="1.6" />
23        <property name="source" value="1.6" />
24        <path id="JavaHelperLib.classpath">
25                <pathelement location="${build.location.javahelperlib}" />
26        </path>
27        <path id="EventBenchCore.classpath">
28                <pathelement location="${build.location.eventbenchcore}" />
29                <pathelement location="lib/Jama-1.0.2.jar" />
30                <pathelement location="lib/colt-1.2.0.jar" />
31                <pathelement location="lib/concurrent-1.3.4.jar" />
32                <pathelement location="lib/j3d-core-1.3.1.jar" />
33                <pathelement location="lib/jung-3d-2.0.1.jar" />
34                <pathelement location="lib/jung-3d-demos-2.0.1.jar" />
35                <pathelement location="lib/jung-algorithms-2.0.1.jar" />
36                <pathelement location="lib/jung-api-2.0.1.jar" />
37                <pathelement location="lib/jung-graph-impl-2.0.1.jar" />
38                <pathelement location="lib/jung-io-2.0.1.jar" />
39                <pathelement location="lib/jung-jai-2.0.1.jar" />
40                <pathelement location="lib/jung-jai-samples-2.0.1.jar" />
41                <pathelement location="lib/jung-samples-2.0.1.jar" />
42                <pathelement location="lib/jung-visualization-2.0.1.jar" />
43                <pathelement location="lib/stax-api-1.0.1.jar" />
44                <pathelement location="lib/vecmath-1.3.1.jar" />
45                <pathelement location="lib/wstx-asl-3.2.6.jar" />
46                <pathelement location="lib/commons-codec-1.5.jar" />
47                <pathelement location="lib/collections-generic-4.01.jar" />
48                <path refid="JavaHelperLib.classpath" />
49        </path>
50        <path id="EventBenchConsole.classpath">
51                <pathelement location="${build.location.eventbenchconsole}" />
52                <pathelement location="lib/collections-generic-4.01.jar" />
53                <pathelement location="lib/jdom.jar" />
54                <pathelement location="lib/colt-1.2.0.jar" />
55                <pathelement location="lib/concurrent-1.3.4.jar" />
56                <pathelement location="lib/j3d-core-1.3.1.jar" />
57                <pathelement location="lib/jung-3d-2.0.1.jar" />
58                <pathelement location="lib/jung-3d-demos-2.0.1.jar" />
59                <pathelement location="lib/jung-algorithms-2.0.1.jar" />
60                <pathelement location="lib/jung-api-2.0.1.jar" />
61                <pathelement location="lib/jung-graph-impl-2.0.1.jar" />
62                <pathelement location="lib/jung-io-2.0.1.jar" />
63                <pathelement location="lib/jung-jai-2.0.1.jar" />
64                <pathelement location="lib/jung-jai-samples-2.0.1.jar" />
65                <pathelement location="lib/jung-samples-2.0.1.jar" />
66                <pathelement location="lib/jung-visualization-2.0.1.jar" />
67                <pathelement location="lib/stax-api-1.0.1.jar" />
68                <pathelement location="lib/vecmath-1.3.1.jar" />
69                <pathelement location="lib/wstx-asl-3.2.6.jar" />
70                <pathelement location="lib/commons-codec-1.5.jar" />
71                <pathelement location="lib/org.eclipse.core.commands_3.6.0.I20110111-0800.jar" />
72                <pathelement location="lib/org.eclipse.equinox.common_3.6.0.v20110523.jar" />
73                <pathelement location="lib/org.eclipse.jface_3.7.0.I20110522-1430.jar" />
74                <pathelement location="lib/org.eclipse.osgi_3.7.0.v20110613.jar" />
75                <pathelement location="lib/org.eclipse.swt.win32.win32.x86_3.7.0.v3735b.jar" />
76                <pathelement location="lib/org.eclipse.ui.forms_3.5.100.v20110425.jar" />
77                <pathelement location="lib/org.eclipse.ui.workbench_3.7.0.I20110519-0100.jar" />
78                <pathelement location="lib/gui-model-core.jar" />
79                <pathelement location="lib/log4j-1.2.16.jar" />
80                <pathelement location="lib/jopt-simple-3.3.jar" />
81                <path refid="JavaHelperLib.classpath" />
82                <path refid="EventBenchCore.classpath" />
83        </path>
84        <path id="JFCMonitor.classpath" />
85        <target name="init.build">
86                <mkdir dir="bin" />
87        </target>
88        <target name="init.dist">
89                <mkdir dir="${dist.location}" />
90                <mkdir dir="${dist.location.main}" />
91                <mkdir dir="${dist.location.jfcmonitor}" />
92        </target>
93        <target name="clean.build">
94                <delete dir="${build.location}" />
95        </target>
96        <target name="clean.dist">
97                <delete dir="${dist.location}" />
98        </target>
99        <target name="clean.javadoc">
100                <delete dir="${javadoc.location}" />
101        </target>
102        <target depends="clean.build,clean.dist,clean.javadoc" name="clean.all" />
103        <target
104                depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole,build.jfcmonitor"
105                name="build" />
106        <target depends="init.build" name="init.eventbenchconsole">
107                <mkdir dir="${build.location.eventbenchconsole}" />
108        </target>
109        <target depends="init.eventbenchconsole" name="build.eventbenchconsole">
110                <javac debug="true" debuglevel="${debuglevel}"
111                        destdir="${build.location.eventbenchconsole}" source="${source}"
112                        target="${target}" includeantruntime="false">
113                        <src path="${EventBenchConsole.location}/src" />
114                        <classpath refid="EventBenchConsole.classpath" />
115                </javac>
116        </target>
117        <target depends="init.build" name="init.eventbenchcore">
118                <mkdir dir="${build.location.eventbenchcore}" />
119        </target>
120        <target depends="init.eventbenchcore" name="build.eventbenchcore">
121                <javac debug="true" debuglevel="${debuglevel}"
122                        destdir="${build.location.eventbenchcore}" source="${source}" target="${target}"
123                        includeantruntime="false">
124                        <src path="${EventBenchCore.location}/src" />
125                        <classpath refid="EventBenchCore.classpath" />
126                </javac>
127        </target>
128        <target depends="init.build" name="init.javahelperlib">
129                <mkdir dir="${build.location.javahelperlib}" />
130        </target>
131        <target depends="init.javahelperlib" name="build.javahelperlib">
132                <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.javahelperlib}"
133                        source="${source}" target="${target}" includeantruntime="false">
134                        <src path="${JavaHelperLib.location}/src" />
135                        <classpath refid="JavaHelperLib.classpath" />
136                </javac>
137        </target>
138        <target depends="init.build" name="init.jfcmonitor">
139                <mkdir dir="${build.location.jfcmonitor}" />
140        </target>
141        <target depends="init.jfcmonitor" name="build.jfcmonitor">
142                <javac debug="true" debuglevel="${debuglevel}" destdir="${build.location.jfcmonitor}"
143                        source="${source}" target="${target}" includeantruntime="false">
144                        <src path="${JFCMonitor.location}/src" />
145                        <classpath refid="JFCMonitor.classpath" />
146                </javac>
147        </target>
148        <target depends="build,init.dist,javadoc" name="dist">
149                <!-- dist of main components, i.e., the console -->
150                <pathconvert property="dist.libs" pathsep=" ">
151                        <mapper>
152                                <chainedmapper>
153                                        <flattenmapper />
154                                        <globmapper from="*" to="lib/*" />
155                                </chainedmapper>
156                        </mapper>
157                        <path>
158                                <fileset dir="lib">
159                                        <include name="**/*.jar" />
160                                </fileset>
161                        </path>
162                </pathconvert>
163                <property name="dist.classpath"
164                        value="${dist.libs} ${JavaHelperLib.jarname} ${EventBenchCore.jarname}"></property>
165                <jar destfile="${dist.location.main}/${EventBenchConsole.jarname}"
166                        basedir="${build.location.eventbenchconsole}">
167                        <manifest>
168                                <attribute name="Built-By" value="${user.name}" />
169                                <attribute name="Main-Class" value="de.ugoe.cs.eventbench.Runner" />
170                                <attribute name="Class-Path" value="${dist.classpath}" />
171                        </manifest>
172                </jar>
173                <jar destfile="${dist.location.main}/${EventBenchCore.jarname}"
174                        basedir="${build.location.eventbenchcore}">
175                        <manifest>
176                                <attribute name="Built-By" value="${user.name}" />
177                        </manifest>
178                </jar>
179                <jar destfile="${dist.location.main}/${JavaHelperLib.jarname}" basedir="${build.location.javahelperlib}">
180                        <manifest>
181                                <attribute name="Built-By" value="${user.name}" />
182                                <attribute name="Class-Path" value="${dist.classpath}" />
183                        </manifest>
184                </jar>
185                <copy includeemptydirs="false" todir="${dist.location.main}/lib">
186                        <fileset dir="lib" />
187                </copy>
188                <copy todir="${dist.location.main}/misc">
189                        <fileset dir="${EventBenchConsole.location}/misc" />
190                </copy>
191                <copy todir="${dist.location.main}/rules">
192                        <fileset dir="${EventBenchConsole.location}/rules" />
193                </copy>
194                       
195                <!-- dist of JFCMonitor -->
196                <jar destfile="${dist.location.jfcmonitor}/${JFCMonitor.jarname}" basedir="${build.location.jfcmonitor}">
197                        <manifest>
198                                <attribute name="Built-By" value="${user.name}" />
199                                <attribute name="Main-Class" value="de.ugoe.cs.eventbench.jfcmonitor.Runner" />
200                                <attribute name="Class-Path" value="${jfc.classpath}" />
201                        </manifest>
202                </jar>
203        </target>
204        <target name="javadoc"
205                description="o Create Javadocs for the demo (Requires Javadoc 1.4+)">
206                <mkdir dir="${javadoc.location}/javahelperlib" />
207                <mkdir dir="${javadoc.location}/eventbenchcore" />
208                <mkdir dir="${javadoc.location}/eventbenchconsole" />
209                <javadoc destdir="${javadoc.location}/javahelperlib"
210                        additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
211                        <classpath refid="JavaHelperLib.classpath" />
212                        <link href="http://download.oracle.com/javase/6/docs/api/" />
213                        <fileset dir="${JavaHelperLib.location}/src" includes="**/*.java" />
214                </javadoc>
215                <javadoc destdir="${javadoc.location}/eventbenchcore"
216                        additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
217                        <classpath refid="EventBenchCore.classpath" />
218                        <link resolveLink="true" href="${javadoc.location}/javahelperlib/" />
219                        <link href="http://download.oracle.com/javase/6/docs/api/" />
220                        <fileset dir="${EventBenchCore.location}/src" includes="**/*.java" />
221                </javadoc>
222                <javadoc destdir="${javadoc.location}/eventbenchconsole"
223                        additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
224                        <classpath refid="EventBenchConsole.classpath" />
225                        <link resolveLink="true" href="${javadoc.location}/javahelperlib/" />
226                        <link resolveLink="true" href="${javadoc.location}/eventbenchcore/" />
227                        <link href="http://download.oracle.com/javase/6/docs/api/" />
228                        <fileset dir="${EventBenchConsole.location}/src" includes="**/*.java" />
229                </javadoc>
230        </target>
231</project>
Note: See TracBrowser for help on using the repository browser.