-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.xml
executable file
·354 lines (335 loc) · 14.6 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<?xml version="1.0"?>
<!-- ======================================================================
Mar 26, 2005 10:29:39 AM
GraphTea
The ant build file of GraphTea Project.
Logs:
- Version 0.0.1 2005/03/26 10:29 Reza Mohammadi.
First Creation.
- Version 0.0.2 2005/03/27 17:27 Reza Mohammadi.
Core Plugin Removed!
sh File Removed!
graphtea-core.jar is executable now!
- Version 0.0.3 2005/03/28 12:41 Reza Mohammadi.
Clean Target Added.
- Version 0.0.4 2005/03/30 00:49 Reza Mohammadi.
UI Plugin Removed!
- Version 0.0.5 2005/03/31 15:24 Reza Mohammadi.
Core Plugin Added!
- Version 0.0.6 2005/04/09 13:21 Reza Mohammadi.
ZoomSideBar Plugin Added!
- Version 0.0.7 2005/05/15 07:50 Reza Mohammadi.
Library is now involved + some other plugins!
- Version 0.9.1 2005/12/05 10:50 Reza Mohammadi.
List of plugins:
main
manageplugins
visualization
graphgenerator
metrics
algorithmanimator
developplugin
====================================================================== -->
<project name="GraphTea" default="make binary">
<description>
The ant build file of GraphTea Project.
</description>
<target name="test">
</target>
<!-- - - - - - - - - - - - - - - - - -
target: depends
- - - - - - - - - - - - - - - - - -->
<target name="depends">
<path id="zdir">
<pathelement location="${basedir}"/>
</path>
<pathconvert property="xdir" refid="zdir" targetos="unix"/>
<property name="scripts.dir" value="${xdir}/src/scripts"/>
<property name="build.dir" value="${xdir}/build"/>
<property name="dist.dir" value="${xdir}/binary"/>
<property name="src.dir" value="${xdir}/src"/>
<path id="project.lib">
<fileset dir="${scripts.dir}/lib" includes="**/*.*"/>
</path>
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${dist.dir}/lib"/>
<mkdir dir="${dist.dir}/plugins"/>
<mkdir dir="${dist.dir}/extensions"/>
</target>
<!-- =================================
target: compile
================================= -->
<target name="compile" depends="depends" description="--> The ant build file of GraphTea Project.">
<javac srcdir="${src.dir}" destdir="${build.dir}">
<classpath>
<path refid="project.lib"/>
</classpath>
<include name="graphtea/**/*.java"/>
<!--<exclude name="graphtea/gui/plugins/developplugin/content/**"/>-->
</javac>
<copy todir="${build.dir}">
<fileset dir="${src.dir}">
<include name="graphtea/**/*.*"/>
<exclude name="**/*.java"/>
<exclude name="**/*.~*"/>
<exclude name="**/.*"/>
<!--<exclude name="graphtea/platform/GraphTeaDebugger.class"/>-->
</fileset>
</copy>
</target>
<!-- =================================
target: dist
================================= -->
<target name="make binary" depends="compile" description="Make jar files">
<!--copies extensions -->
<copy todir="${dist.dir}/extensions">
<fileset dir="${build.dir}">
<include name="graphtea/extensions/**/*.*"/>
</fileset>
</copy>
<jar destfile="${dist.dir}/graphtea-main.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="graphtea.platform.Application"/>
<attribute name="version" value="20060104"/>
<attribute name="SplashScreen-Image" value="icon.PNG"/>
</manifest>
<fileset dir="${build.dir}">
<exclude name="**/*.psd"/>
<include name="graphtea/platform/**/*.*"/>
</fileset>
</jar>
<jar destfile="${dist.dir}/plugins/main.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="plugin-name" value="main"/>
<attribute name="plugin-version" value="20060104"/>
<attribute name="plugin-depends" value=""/>
</manifest>
<fileset dir="${build.dir}">
<!--<include name="graphtea/platform/core/**/*.*"/>-->
<include name="graphtea/plugins/main/**/*.*"/>
</fileset>
</jar>
<jar destfile="${dist.dir}/plugins/visualization.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="plugin-name" value="visualization"/>
<attribute name="plugin-version" value="20060104"/>
<attribute name="plugin-depends" value="main 20060104"/>
</manifest>
<fileset dir="${build.dir}">
<include name="graphtea/plugins/visualization/**/*.*"/>
</fileset>
</jar>
<jar destfile="${dist.dir}/plugins/graphgenerator.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="plugin-name" value="graphgenerator"/>
<attribute name="plugin-version" value="20060104"/>
<attribute name="plugin-depends" value="main 20060104"/>
</manifest>
<fileset dir="${build.dir}">
<include name="graphtea/plugins/graphgenerator/**/*.*"/>
</fileset>
</jar>
<!--
<jar destfile="${dist.dir}/plugins/metrics.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="plugin-name" value="metrics"/>
<attribute name="plugin-version" value="20051205"/>
<attribute name="plugin-depends" value="main 20060104"/>
</manifest>
<fileset dir="${build.dir}">
<include name="graphtea/plugins/metrics/**/*.*"/>
</fileset>
</jar>
-->
<jar destfile="${dist.dir}/plugins/algorithmanimator.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="plugin-name" value="algorithmanimator"/>
<attribute name="plugin-version" value="20060104"/>
<attribute name="plugin-depends" value="main 20060104"/>
</manifest>
<fileset dir="${build.dir}">
<include name="graphtea/plugins/algorithmanimator/**/*.*"/>
</fileset>
</jar>
<jar destfile="${dist.dir}/plugins/commandline.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="plugin-name" value="commandline"/>
<attribute name="plugin-version" value="20060104"/>
<attribute name="plugin-depends" value="main 20060104"/>
</manifest>
<fileset dir="${build.dir}">
<include name="graphtea/plugins/commandline/**/*.*"/>
</fileset>
</jar>
<!--<jar destfile="${dist.dir}/plugins/developplugin.jar">-->
<!--<manifest>-->
<!--<attribute name="Built-By" value="${user.name}"/>-->
<!--<attribute name="plugin-name" value="developplugin"/>-->
<!--<attribute name="plugin-version" value="20060104"/>-->
<!--<attribute name="plugin-depends" value="main 20060104"/>-->
<!--<attribute name="plugin-configxml" value="/graphtea/gui/plugins/developplugin/config.xml"/>-->
<!--</manifest>-->
<!--<fileset dir="${build.dir}">-->
<!--<include name="graphtea/plugins/developplugin/**/*.*"/>-->
<!--</fileset>-->
<!--</jar>-->
<jar destfile="${dist.dir}/plugins/commonplugin.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="plugin-name" value="commonplugin"/>
<attribute name="plugin-version" value="20060104"/>
<attribute name="plugin-depends" value="main 20060104"/>
</manifest>
<fileset dir="${build.dir}">
<include name="graphtea/plugins/commonplugin/**/*.*"/>
</fileset>
</jar>
<jar destfile="${dist.dir}/plugins/reports.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="plugin-name" value="reports"/>
<attribute name="plugin-version" value="20060104"/>
<attribute name="plugin-depends" value="main 20060104"/>
</manifest>
<fileset dir="${build.dir}">
<include name="graphtea/plugins/reports/**/*.*"/>
</fileset>
</jar>
<!-- <jar destfile="${dist.dir}/plugins/connector.jar">-->
<!-- <manifest>-->
<!-- <attribute name="Built-By" value="${user.name}"/>-->
<!-- <attribute name="plugin-name" value="connector"/>-->
<!-- <attribute name="plugin-version" value="20060104"/>-->
<!-- <attribute name="plugin-depends" value="main 20060104"/>-->
<!-- </manifest>-->
<!-- <fileset dir="${build.dir}">-->
<!-- <include name="graphtea/plugins/connector/**/*.*"/>-->
<!-- </fileset>-->
<!-- </jar>-->
<jar destfile="${dist.dir}/lib/graphtea-ui-library.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Description" value="User interface of GraphTea"/>
</manifest>
<fileset dir="${build.dir}">
<include name="graphtea/ui/**/*.*"/>
</fileset>
</jar>
<jar destfile="${dist.dir}/lib/graphtea-library.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Description" value="Library of GraphTea"/>
</manifest>
<fileset dir="${build.dir}">
<include name="graphtea/library/**/*.*"/>
</fileset>
</jar>
<jar destfile="${dist.dir}/lib/graph.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Description" value="Graph Drawing Library"/>
</manifest>
<fileset dir="${build.dir}">
<include name="graphtea/graph/**/*.*"/>
</fileset>
</jar>
<copy todir="${dist.dir}/">
<fileset dir="${scripts.dir}/maindirectoryfiles">
<include name="**/*.*"/>
</fileset>
</copy>
<!--<copy todir="${dist.dir}/prefs">-->
<!--<fileset dir="${scripts.dir}/prefs">-->
<!--<include name="**/*.*"/>-->
<!--</fileset>-->
<!--</copy>-->
<copy todir="${dist.dir}/lib" failonerror="false">
<fileset dir="${scripts.dir}/lib">
<include name="**/*.*"/>
</fileset>
</copy>
<!--<tar destfile="${basedir}/../developer_resources/binary.tar" basedir="${dist.dir}" defaultexcludes="no"/>-->
<!--<gzip destfile="${basedir}/../developer_resources/binary.tar.gz" src="${basedir}/../developer_resources/binary.tar"/>-->
</target>
<!-- =================================
target: clean
================================= -->
<target name="clean" description="Clean">
<path id="zdir">
<pathelement location="${basedir}"/>
</path>
<pathconvert property="xdir" refid="zdir" targetos="unix"/>
<property name="scripts.dir" value="${xdir}/src/scripts"/>
<property name="build.dir" value="${xdir}/build"/>
<property name="dist.dir" value="${xdir}/binary"/>
<delete failonerror="false" dir="${dist.dir}" />
<delete failonerror="false" dir="${build.dir}" />
</target>
<!-- =================================-->
<!--target: run-->
<!--================================= -->
<!--<target name="run" depends="make binary" description="Run the Program">-->
<!--<java jar="${dist.dir}/graphtea-main.jar"-->
<!--fork="true" dir="${dist.dir}">-->
<!--</java>-->
<!--</target>-->
<!-- =================================
target: javaDoc
================================= -->
<target name="javadoc">
<javadoc packagenames="graphtea.*"
sourcepath="${basedir}"
defaultexcludes="yes"
useexternalfile ="true"
destdir="${basedir}/../developer_resources/javadoc"
author="true"
version="true"
use="true"
linksource="true"
doctitle="GraphTea Project"
windowtitle="GraphTea Project">
<header><![CDATA[<a href='https://github.com/graphtheorysoftware/GraphTea'>GraphTea Project</a>]]></header>
</javadoc>
<zip destfile="${basedir}/../developer_resources/javadoc.zip">
<fileset dir="${basedir}/../developer_resources/javadoc">
<include name="**/*.*"/>
</fileset>
</zip>
</target>
<!--<zip destfile="${basedir}/../docs/javadoc.zip">-->
<!--<fileset dir="${basedir}/../docs/javadoc">-->
<!--<include name="**/*.*"/>-->
<!--</fileset>-->
<!--</zip>-->
<!--<copyfile src="${basedir}/../docs/javadoc.zip" dest="${basedir}/../binary/javadoc.zip"/>-->
<!--</target>-->
<!-- =================================
target: graphteaAPI
================================= -->
<target name="api" depends="compile" description="Create GraphTeaAPI.jar">
<jar destfile="${basedir}/../developer_resources/GraphTeaAPI.jar">
<fileset dir="${build.dir}">
<include name="graphtea/**/*.*"/>
</fileset>
</jar>
<deltree dir="${build.dir}"/>
</target>
<!-- =================================
target: src
================================= -->
<target depends="depends" name="src" description="Create src.zip">
<zip destfile="${basedir}/../developer_resources/src.zip">
<fileset dir="${basedir}">
<include name="**/*.*"/>
</fileset>
</zip>
</target>
</project>