-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·489 lines (463 loc) · 22.1 KB
/
build.xml
File metadata and controls
executable file
·489 lines (463 loc) · 22.1 KB
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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
<?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>
<property name="m2.repo" value="${user.home}/.m2/repository"/>
<property name="junit5.api" value="${m2.repo}/org/junit/jupiter/junit-jupiter-api/5.9.3/junit-jupiter-api-5.9.3.jar"/>
<property name="junit5.engine" value="${m2.repo}/org/junit/jupiter/junit-jupiter-engine/5.9.3/junit-jupiter-engine-5.9.3.jar"/>
<property name="junit5.platform.engine" value="${m2.repo}/org/junit/platform/junit-platform-engine/1.9.3/junit-platform-engine-1.9.3.jar"/>
<property name="junit5.platform.commons" value="${m2.repo}/org/junit/platform/junit-platform-commons/1.9.3/junit-platform-commons-1.9.3.jar"/>
<property name="junit5.platform.launcher" value="${m2.repo}/org/junit/platform/junit-platform-launcher/1.9.3/junit-platform-launcher-1.9.3.jar"/>
<property name="opentest4j" value="${m2.repo}/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar"/>
<target name="test" depends="compile" description="Compile and run JUnit 5 tests">
<mkdir dir="${basedir}/build/test-classes"/>
<javac srcdir="${basedir}/test" destdir="${basedir}/build/test-classes"
source="17" target="17" includeantruntime="false">
<classpath>
<path refid="project.lib"/>
<pathelement location="${basedir}/build"/>
<pathelement location="${junit5.api}"/>
<pathelement location="${opentest4j}"/>
<pathelement location="${junit5.platform.commons}"/>
</classpath>
<include name="GraphModelTest.java"/>
<include name="GraphUtilsTest.java"/>
<include name="GraphOperationsTest.java"/>
<include name="TraversalTest.java"/>
<include name="BasicReportsTest.java"/>
<include name="GeneratorsTest.java"/>
<include name="ProductsTest.java"/>
<include name="ReportsTest.java"/>
<include name="TestActions.java"/>
<include name="TestChemicalGraphIndices.java"/>
<include name="TestHomomorphism.java"/>
<include name="TestNewEdge.java"/>
<include name="AlgorithmsTest.java"/>
<include name="BlackBoardTest.java"/>
<include name="NotifiableAttributeSetImplTest.java"/>
<include name="ShortestPathAndMSTTest.java"/>
<include name="SubdividedGraphTest.java"/>
<include name="CoronaAndUtilsTest.java"/>
<include name="BiconnectedComponentsTest.java"/>
<include name="G6FormatTest.java"/>
<include name="GraphComplementTest.java"/>
<include name="GraphJoinTest.java"/>
<include name="RenderTableTest.java"/>
<include name="UtilityAndCheckerTest.java"/>
</javac>
<junitlauncher haltOnFailure="false" printSummary="true">
<classpath>
<path refid="project.lib"/>
<pathelement location="${basedir}/build"/>
<pathelement location="${basedir}/build/test-classes"/>
<pathelement location="${junit5.api}"/>
<pathelement location="${junit5.engine}"/>
<pathelement location="${junit5.platform.engine}"/>
<pathelement location="${junit5.platform.commons}"/>
<pathelement location="${junit5.platform.launcher}"/>
<pathelement location="${opentest4j}"/>
</classpath>
<testclasses outputdir="${basedir}/build/test-classes">
<fileset dir="${basedir}/build/test-classes">
<include name="GraphModelTest.class"/>
<include name="GraphUtilsTest.class"/>
<include name="GraphOperationsTest.class"/>
<include name="TraversalTest.class"/>
<include name="BasicReportsTest.class"/>
<include name="GeneratorsTest.class"/>
<include name="ProductsTest.class"/>
<include name="ReportsTest.class"/>
<include name="TestActions.class"/>
<include name="TestChemicalGraphIndices.class"/>
<include name="TestHomomorphism.class"/>
<include name="TestNewEdge.class"/>
<include name="AlgorithmsTest.class"/>
<include name="BlackBoardTest.class"/>
<include name="NotifiableAttributeSetImplTest.class"/>
<include name="ShortestPathAndMSTTest.class"/>
<include name="SubdividedGraphTest.class"/>
<include name="CoronaAndUtilsTest.class"/>
<include name="BiconnectedComponentsTest.class"/>
<include name="G6FormatTest.class"/>
<include name="GraphComplementTest.class"/>
<include name="GraphJoinTest.class"/>
<include name="RenderTableTest.class"/>
<include name="UtilityAndCheckerTest.class"/>
</fileset>
<listener type="legacy-xml" outputdir="${basedir}/build/test-classes" sendSysOut="true" sendSysErr="true"/>
<listener type="legacy-plain" sendSysOut="true"/>
</testclasses>
</junitlauncher>
</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}" source="17" target="17" includeantruntime="false">
<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: checkstyle
================================= -->
<!--
Checkstyle targets.
checkstyle — runs style checks and reports violations but never fails
the build. Use this to inspect the current state.
checkstyle-strict — same checks, fails the build on any violation. Use this
in CI or as a pre-commit gate.
Existing code is grandfathered via config/checkstyle-suppressions.xml.
Only files NOT listed there must comply.
CLI equivalent:
java -jar tools/checkstyle.jar -c config/checkstyle.xml \
-p config/checkstyle.properties src/graphtea
-->
<target name="checkstyle" depends="depends" description="Report Checkstyle violations (never fails build)">
<taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
classpath="${basedir}/tools/checkstyle.jar"/>
<mkdir dir="${build.dir}/checkstyle"/>
<checkstyle config="${basedir}/config/checkstyle.xml"
failOnViolation="false"
maxErrors="0"
maxWarnings="9999999">
<property key="config_loc" value="${basedir}/config"/>
<formatter type="plain"/>
<formatter type="xml" tofile="${build.dir}/checkstyle/report.xml"/>
<fileset dir="${src.dir}" includes="graphtea/**/*.java"/>
</checkstyle>
<echo message="Checkstyle report written to ${build.dir}/checkstyle/report.xml"/>
</target>
<target name="checkstyle-strict" depends="depends" description="Run Checkstyle; fail build on any violation">
<taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
classpath="${basedir}/tools/checkstyle.jar"/>
<mkdir dir="${build.dir}/checkstyle"/>
<checkstyle config="${basedir}/config/checkstyle.xml"
failOnViolation="true"
maxErrors="0">
<property key="config_loc" value="${basedir}/config"/>
<formatter type="plain"/>
<formatter type="xml" tofile="${build.dir}/checkstyle/report.xml"/>
<fileset dir="${src.dir}" includes="graphtea/**/*.java"/>
</checkstyle>
</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>