source: trunk/JavaCommons/build.xml @ 269

Last change on this file since 269 was 269, checked in by sherbold, 12 years ago
  • added Javadoc documentation to distribution
  • Property svn:mime-type set to text/plain
File size: 11.5 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="dist.location.javadoc" value="${dist.location}/javadoc" />
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" />
17        <property name="JFCMonitor.jarname" value="jfcmonitor.jar" />
18        <property name="EventBenchConsole.location" value="../EventBenchConsole" />
19        <property name="JavaHelperLib.location" value="../JavaHelperLib" />
20        <property name="EventBenchCore.location" value="../EventBenchCore" />
21        <property name="JFCMonitor.location" value="../JFCMonitor" />
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" />
81                <pathelement location="lib/jopt-simple-3.3.jar" />
82                <path refid="JavaHelperLib.classpath" />
83                <path refid="EventBenchCore.classpath" />
84        </path>
85        <path id="JFCMonitor.classpath" />
86        <target name="init.build">
87                <mkdir dir="bin" />
88        </target>
89        <target name="init.dist">
90                <mkdir dir="${dist.location}" />
91                <mkdir dir="${dist.location.main}" />
92                <mkdir dir="${dist.location.jfcmonitor}" />
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
105                depends="build.javahelperlib,build.eventbenchcore,build.eventbenchconsole,build.jfcmonitor"
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>
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>
149        <target depends="build,init.dist,javadoc" name="dist">
150                <!-- dist of main components, i.e., the console -->
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>
166                <jar destfile="${dist.location.main}/${EventBenchConsole.jarname}"
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>
174                <jar destfile="${dist.location.main}/${EventBenchCore.jarname}"
175                        basedir="${build.location.eventbenchcore}">
176                        <manifest>
177                                <attribute name="Built-By" value="${user.name}" />
178                        </manifest>
179                </jar>
180                <jar destfile="${dist.location.main}/${JavaHelperLib.jarname}" basedir="${build.location.javahelperlib}">
181                        <manifest>
182                                <attribute name="Built-By" value="${user.name}" />
183                                <attribute name="Class-Path" value="${dist.classpath}" />
184                        </manifest>
185                </jar>
186                <copy includeemptydirs="false" todir="${dist.location.main}/lib">
187                        <fileset dir="lib" />
188                </copy>
189                <copy todir="${dist.location.main}/misc">
190                        <fileset dir="${EventBenchConsole.location}/misc" />
191                </copy>
192                <copy todir="${dist.location.main}/rules">
193                        <fileset dir="${EventBenchConsole.location}/rules" />
194                </copy>
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" />
201                                <attribute name="Class-Path" value="${JavaHelperLib.jarname}" />
202                        </manifest>
203                </jar>
204               
205                <!-- copy Javadoc to dist -->
206                <copy includeemptydirs="false" todir="${dist.location.javadoc}">
207                        <fileset dir="${javadoc.location}" />
208                </copy>
209        </target>
210        <target name="javadoc"
211                description="o Create Javadocs (Requires Javadoc 1.4+)">
212                <mkdir dir="${javadoc.location}/javahelperlib" />
213                <mkdir dir="${javadoc.location}/eventbenchcore" />
214                <mkdir dir="${javadoc.location}/eventbenchconsole" />
215                <mkdir dir="${javadoc.location}/jfcmonitor" />
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>
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>
243        </target>
244</project>
Note: See TracBrowser for help on using the repository browser.