-
Notifications
You must be signed in to change notification settings - Fork 43
/
build.default.xml
2051 lines (1849 loc) · 82.7 KB
/
build.default.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
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
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- $Id$
$PTII/configure reads in build.xml.in and creates build.xml.
If configure is not available, copy build.xml.default to build.xml. -->
<project basedir="." default="build" name="ptII">
<!-- We can refer to any environment variable FOO as ${env.FOO} -->
<property environment="env" />
<!-- Ant properties. Alphabetize, please -->
<!-- checkstyle.formatter defaults to xml and is used by checkstyle and test. Try also -Dcheckstyle.formater=html. -->
<property name="checkstyle.formatter" value="xml" />
<!-- The location of the Cobertura directory, used for code coverage -->
<property name="cobertura.dir" value="@COBERTURA_DIR@" />
<property name="debuglevel" value="source,lines,vars" />
<!-- Location of spotbugs, which does static analysis on the code.
-->
<property name="spotbugs.home" value="${basedir}/vendors/spotbugs-3.1.1" />
<!-- The value of the memorymaximumsize javac and maxmemorysize and java parameter
We use 1400m so that we don't have problems under 32-bit
Windows. See
http://javarevisited.blogspot.jp/2013/04/what-is-maximum-heap-size-for-32-bit-64-JVM-Java-memory.html-->
<property name="java.maxmemory" value="1400m" />
<!-- The value of the maxmemorysize and java parameter for tests
that consume a lot of memory. This will probably not work
under 32-bit Windows. See
http://javarevisited.blogspot.jp/2013/04/what-is-maximum-heap-size-for-32-bit-64-JVM-Java-memory.html-->
<property name="java.maxmemory.large" value="8000m" />
<!-- Packages to exclude from targets that call javadoc.
Unfortunately, <fileset> results in a command line that is too long.
Grab the packages from ptII.excludes, put them in a file called /tmp/e and run
awk -F '"' '{print $2}' /tmp/e | sed 's@/$@@' | sed 's@/@.@g' | sort | awk '{printf("%s.*,", $1)}'
(Lame) -->
<property name="javadoc.excludepackagenames" value="diva.util.java2d.svg,org.ptolemy.fmi,org.terraswarm.accessor.accessors.web.node_modules.*,org.terraswarm.accessor.accessors-svn.*,ptolemy.actor.corba,ptolemy.actor.lib.embeddedJava,ptolemy.actor.lib.excel,ptolemy.actor.lib.fmi,ptolemy.actor.lib.io.comm,ptolemy.actor.lib.jai,ptolemy.actor.lib.jjs.modules.speechRecognition,ptolemy.actor.lib.jmf,ptolemy.actor.lib.jni,ptolemy.actor.lib.jopio,ptolemy.actor.lib.joystick,ptolemy.actor.lib.jxta,ptolemy.actor.lib.jxta.*,ptolemy.actor.lib.mail,ptolemy.actor.lib.opencv,ptolemy.actor.lib.opencv.*,ptolemy.actor.lib.reactable,ptolemy.actor.lib.vertx,ptolemy.actor.lib.x10,ptolemy.actor.lib.xslt,ptolemy.actor.ptalon,ptolemy.apps.*,ptolemy.backtrack.eclipse.*,ptolemy.backtrack.test,ptolemy.calltrop,ptolemy.chic,ptolemy.copernicus,ptolemy.copernicus.kernel.fragment,ptolemy.distributed,ptolemy.domains.giotto,ptolemy.domains.gr,ptolemy.domains.gr.lib.experimental,ptolemy.domains.gr.lib.quicktime,ptolemy.domains.metroII.kernel,ptolemy.domains.metroII.kernel.util.ProtoBuf,ptolemy.domains.openmodelica.kernel,ptolemy.domains.openmodelica.lib,ptolemy.domains.pdf,ptolemy.domains.ptinyos.demo.Surge.output,ptolemy.domains.space,ptolemy.matlab,ptolemy.media.viewer,ptolemy.moml.jxta,ptolemy.plot.servlet,ptolemy.vergil.basic.export.html,ptolemy.vergil.basic.export.itextpdf,ptolemy.vergil.basic.imprt.g4ltl,ptserver.*,reports.*,src.*,target.*,thales.*,tmp.*,vendors.*,ptolemy.actor.ptalon.demo.ptinyos.SendAndReceiveCnt.output,ptolemy.actor.ptalon.demo.ptinyos.SenseToLeds.output,ptolemy.domains.ptinyos.demo.CntToLedsAndRfm.output,ptolemy.domains.ptinyos.demo.RfmToLeds.output,ptolemy.domains.ptinyos.demo.SendAndReceiveCnt.output,ptolemy.domains.ptinyos.demo.SenseToLeds.output" />
<!-- Packages on which doccheck, javadoc and ojdcheck are run. -->
<property name="javadoc.packagenames" value="com.*,diva.*,lbnl.*,org.hlacerti.*,org.json.*,org.ptolemy.*,org.terraswarm.*,ptolemy.*,ptserver.*" />
<!-- The location of the jsdoc distribution, used by the jsdoc target. -->
<property name="jsdoc.home" value="node_modules/@terraswarm/jsdoc" />
<!-- The location of the jsdoc command, used by the jsdoc target. -->
<property name="jsdoc.command" value="${jsdoc.home}/jsdoc.js" />
<!-- Location of the jshint executable, used to check for common errors in JavaScript files. -->
<property name="jshint.executable" value="${env.HOME}/node_modules/jshint/bin/jshint"/>
<!-- junit.formatter defaults to xml and is used by checkstyle and test. Other values: brief, failure, plain -->
<property name="junit.formatter" value="xml" />
<!-- junit.single.formatter defaults to plain and is used by test.single. Other values: brief, failure, plain -->
<property name="junit.single.formatter" value="plain" />
<!-- ptII.reports contains reports generated by checkstyle, spotbugs and test.
ptII.reports must be declared before any properties that refer to it. (Lame).
-->
<property name="ptII.reports" value="${basedir}/reports" />
<!-- The output director for junit. -->
<property name="junit.output.dir" value="${ptII.reports}/junit" />
<!-- The location of the file that contains the certificates used to sign JNLP files.
See $PTII/mk/jnlp.mk for details -->
<property name="keystore" value="ptKeystore"/>
<!-- model names the model to be opened. The default is the empty string. To use this, run 'ant vergil -Dmodel=foo.xml' -->
<property name="model" value="" />
<property name="source" value="1.8" />
<property name="target" value="1.8" />
<!-- The pathname of the tests that are run by the test.cobertura, test.report, test.short targets. -->
<property name="test.batch" value="**/junit/*.java" />
<!-- The classname of the single JUnit test that is run by the test.single target. -->
<property name="test.name" value="ptolemy.actor.lib.test.junit.JUnitTclTest" />
<!-- The timeout in seconds for spotbugs.
See also the timeout= values in ptolemy/util/test/junit/*.java. -->
<property name="timeout" value="2400000" />
<!-- The timeout in seconds for short running tests.
See also the timeout= values in ptolemy/util/test/junit/*.java.
Originally, 2400000.
10000 was too short for ptolemy.cg.kernel.generic.program.procedural.java.modular.test.junit -->
<property name="timeout.short" value="1000000" />
<!-- The timeout in seconds for long running junit tests.
See also the timeout= values in ptolemy/util/test/junit/*.java. -->
<property name="timeout.long" value="4000000" />
<!-- The timeout in seconds for longest running junit tests.
See also the timeout= values in ptolemy/util/test/junit/*.java. -->
<property name="timeout.longest" value="19000000" />
<!-- The timeout in milliseconds for the Node Package Manager (npm) -->
<property name="timeout.npm" value="45000" />
<!-- Ant paths to optional jar files set by the configure script. -->
<!-- To update: ls -1 lib/*.jar | sort | awk '{print " <classpathentry kind=\"lib\" path=\"" $1 "\"/>"}' -->
<!-- If you the jars, then also update .classpath.in, .classpath.default and configure. -->
<path id="ptII.classpath.optional">
<pathelement location="${basedir}" />
<pathelement location="lib/JRI.jar" />
<pathelement location="lib/JUnitParams-0.3.0.jar" />
<pathelement location="lib/JUnitParams-0.4.0.jar" />
<pathelement location="lib/PDFRenderer.jar" />
<pathelement location="lib/StructuralCoder.jar" />
<pathelement location="lib/YieldAdapter.jar" />
<pathelement location="lib/bridj-0.7.0.jar" />
<pathelement location="lib/bsh-2.0b4.jar" />
<pathelement location="lib/chic.jar" />
<pathelement location="lib/commons-lang-2.6.jar" />
<pathelement location="lib/commons-logging-1.1.1.jar" />
<pathelement location="lib/diva.jar" />
<pathelement location="lib/g4ltl.jar" />
<pathelement location="lib/hazelcast-3.8.2.jar" />
<pathelement location="lib/jackson-annotations-2.9.0.jar" />
<pathelement location="lib/jackson-core-2.9.3.jar" />
<pathelement location="lib/jackson-databind-2.9.3.jar" />
<pathelement location="lib/java_cup.jar" />
<pathelement location="lib/javax.mail.jar" />
<pathelement location="lib/javax.servlet-api-3.0.1.jar" />
<pathelement location="lib/jcerti.jar" />
<pathelement location="lib/jetty-all-8.1.5-v20120716.jar" />
<pathelement location="lib/jna-4.0.0-variadic.jar" />
<pathelement location="lib/jna-4.1.0-variadic.jar" />
<pathelement location="lib/jna.jar" />
<pathelement location="lib/jsoup-1.8.2.jar" />
<pathelement location="lib/junit-4.8.2.jar" />
<pathelement location="lib/jython.jar" />
<pathelement location="lib/kieler.jar" />
<pathelement location="lib/mapss.jar" />
<pathelement location="lib/matlab.jar" />
<pathelement location="lib/matlabLinux.jar" />
<pathelement location="lib/matlabMacOSX.jar" />
<pathelement location="lib/matlabSunOS.jar" />
<pathelement location="lib/matlabWindows.jar" />
<pathelement location="lib/netty-buffer-4.1.19.Final.jar" />
<pathelement location="lib/netty-codec-4.1.19.Final.jar" />
<pathelement location="lib/netty-codec-dns-4.1.19.Final.jar" />
<pathelement location="lib/netty-codec-http-4.1.19.Final.jar" />
<pathelement location="lib/netty-codec-http2-4.1.19.Final.jar" />
<pathelement location="lib/netty-common-4.1.19.Final.jar" />
<pathelement location="lib/netty-handler-4.1.19.Final.jar" />
<pathelement location="lib/netty-resolver-4.1.19.Final.jar" />
<pathelement location="lib/netty-resolver-dns-4.1.19.Final.jar" />
<pathelement location="lib/netty-transport-4.1.19.Final.jar" />
<pathelement location="lib/nrjavaserial-3.11.0.devel.debug.jar" />
<pathelement location="lib/nrjavaserial-3.11.0.devel.jar" />
<pathelement location="lib/ojdcheck.jar" />
<pathelement location="lib/opencv-320.jar" />
<pathelement location="lib/org-netbeans-api-visual.jar" />
<pathelement location="lib/org-openide-util-lookup.jar" />
<pathelement location="lib/org-openide-util.jar" />
<pathelement location="lib/org.eclipse.paho.client.mqttv3.jar" />
<pathelement location="lib/oscP5.jar" />
<pathelement location="lib/protobuf-java-2.4.1.jar" />
<pathelement location="lib/ptCal.jar" />
<pathelement location="lib/ptcolt.jar" />
<pathelement location="lib/ptjacl.jar" />
<pathelement location="lib/ptliblicenses.jar" />
<pathelement location="lib/rsyntaxtextarea-2.6.0-SNAPSHOT.jar" />
<pathelement location="lib/saxon8-dom.jar" />
<pathelement location="lib/saxon8.jar" />
<pathelement location="lib/slf4j-api-1.7.13.jar" />
<pathelement location="lib/slf4j-simple-1.7.13.jar" />
<pathelement location="lib/smack.jar" />
<pathelement location="lib/smackx.jar" />
<pathelement location="lib/sootclasses.jar" />
<pathelement location="lib/svgSalamander.jar" />
<pathelement location="lib/vertx-codegen-3.5.1.jar" />
<pathelement location="lib/vertx-core-3.5.1.jar" />
<pathelement location="lib/vertx-hazelcast-3.5.1.jar" />
<pathelement location="" />
<pathelement location="lib/vertx-lang-js-3.5.1.jar" />
<pathelement location="" />
<pathelement location="lib/vertx-service-proxy-3.5.1.jar" />
<pathelement location="lib/vertx-web-3.5.1.jar" />
<pathelement location="lib/webcam-capture-0.3.12.jar" />
<pathelement location="lib/xbjlib-1.1.0.nrjavaserial.jar" />
<pathelement location="ptolemy/distributed/jini/jar/jini-core.jar" />
<pathelement location="ptolemy/distributed/jini/jar/jini-ext.jar" />
<pathelement location="ptolemy/distributed/jini/jar/sun-util.jar" />
<pathelement location="ptolemy/domains/ptinyos/lib/jdom.jar" />
<pathelement location="ptolemy/domains/ptinyos/lib/nesc.jar" />
<pathelement location="ptolemy/actor/ptalon/antlr/antlr.jar" />
<pathelement location="ptserver/lib/hessian-4.0.7.jar" />
<pathelement location="ptserver/lib/wmqtt.jar" />
<pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
</path>
<!-- Whether output is sent to a file. Used by test.single -->
<property name="usefile" value="false"/>
<!-- The optional jar files as a property, used in subant. -->
<pathconvert property="ptII.classpath.optional.property" refid="ptII.classpath.optional"/>
<!-- Ant paths. Alphabetize, please -->
<!-- Path for Cobertura, used by code coverage. -->
<path id="cobertura.classpath">
<fileset dir="${cobertura.dir}">
<include name="@COBERTURA_JAR@" />
<include name="lib/*.jar"/>
</fileset>
</path>
<!-- The Ptolemy II Classpath -->
<path id="ptII.classpath">
<pathelement location="${env.HOME}/.ptolemyII" />
<!-- Java 1.6 and later: * in the classpath matches *.jar files -->
<pathelement location="${env.HOME}/.ptolemyII/*" />
<pathelement location="${basedir}" />
<path refid="ptII.classpath.optional"/>
<!-- Include ptolemy/moml/test so that ptolemy/moml/test/MoMLParserNoPackage.tcl passes -->
<pathelement location="ptolemy/moml/test"/>
</path>
<!-- Ant patternsets. Alphabetize, please -->
<!-- ptII.excludes should match ptII/.classpath.default -->
<patternset id="ptII.excludes">
<exclude name="**/CVS/" />
<exclude name="**/adm/" />
<exclude name="**/codeDoc/" />
<exclude name="**/cobertura.ser" />
<exclude name="**/makefile" />
<exclude name="**/.*" />
<exclude name="**/*.bat" />
<exclude name="**/*.class" />
<exclude name="**/*.html" />
<exclude name="**/*.in" />
<exclude name="**/*.png" />
<exclude name="**/*.tcl" />
<exclude name="**/*.xml" />
<exclude name="bin/" />
<exclude name="config/" />
<exclude name="contrib/" />
<exclude name="diva/util/java2d/svg/" />
<exclude name="doc/coding/templates/" />
<exclude name="doc/doclets/" />
<exclude name="jni/test/jni/meaningOfLife/" />
<exclude name="jni/test/jni/testDeux/" />
<exclude name="jni/test/jni/testTrois/" />
<exclude name="lib/" />
<exclude name="mk/" />
<exclude name="org/ptolemy/fmi/" />
<exclude name="org/terraswarm/accessor/accessors/web/node_modules/" />
<exclude name="org/terraswarm/accessor/accessors/web/hosts/cordova/demo/" />
<exclude name="org/terraswarm/accessor/accessors/web/hosts/cordova/plugins/" />
<exclude name="ptdb/" />
<exclude name="pt-modules/" />
<exclude name="ptolemy/actor/corba/" />
<exclude name="ptolemy/actor/lib/embeddedJava/" />
<exclude name="ptolemy/actor/lib/excel/" />
<exclude name="ptolemy/actor/lib/fmi/" />
<exclude name="ptolemy/actor/lib/io/comm/" />
<exclude name="ptolemy/actor/lib/jai/" />
<exclude name="ptolemy/actor/lib/jmf/" />
<exclude name="ptolemy/actor/lib/jni/" />
<exclude name="ptolemy/actor/lib/jopio/" />
<exclude name="ptolemy/actor/lib/joystick/" />
<exclude name="ptolemy/actor/lib/jjs/modules/IMUSensor/" />
<exclude name="ptolemy/actor/lib/jjs/modules/speechRecognition/" />
<exclude name="ptolemy/actor/lib/jxta/" />
<exclude name="ptolemy/actor/lib/mail/" />
<exclude name="ptolemy/actor/lib/opencv/" />
<exclude name="ptolemy/actor/lib/reactable/" />
<exclude name="ptolemy/actor/lib/vertx/" />
<exclude name="ptolemy/actor/lib/x10/" />
<exclude name="ptolemy/apps/" />
<exclude name="ptolemy/backtrack/eclipse/" />
<exclude name="ptolemy/backtrack/test/" />
<exclude name="ptolemy/calltrop/" />
<exclude name="ptolemy/chic/" />
<exclude name="ptolemy/copernicus/" />
<exclude name="ptolemy/copernicus/kernel/fragment/" />
<exclude name="ptolemy/copernicus/shallow/cg/"/>
<exclude name="ptolemy/distributed/" />
<exclude name="ptolemy/domains/ct/demo/Saber/" />
<exclude name="ptolemy/domains/giotto/" />
<exclude name="ptolemy/domains/gr/" />
<exclude name="ptolemy/domains/gr/lib/experimental/" />
<exclude name="ptolemy/domains/gr/lib/quicktime/" />
<exclude name="ptolemy/domains/openmodelica/kernel/" />
<exclude name="ptolemy/domains/metroII/gui/" />
<exclude name="ptolemy/domains/metroII/kernel/" />
<exclude name="ptolemy/domains/metroII/kernel/util/ProtoBuf/" />
<exclude name="ptolemy/domains/pdf/" />
<exclude name="ptolemy/domains/space/" />
<exclude name="ptolemy/matlab/" />
<exclude name="ptolemy/media/viewer/" />
<exclude name="ptolemy/moml/jxta/" />
<exclude name="ptolemy/plot/adm/"/>
<exclude name="ptolemy/plot/servlet/" />
<exclude name="ptolemy/vergil/basic/export/itextpdf/" />
<exclude name="ptolemy/vergil/basic/imprt/fmu/" />
<exclude name="ptolemy/vergil/basic/imprt/g4ltl/" />
<exclude name="ptserver/" />
<exclude name="reports/" />
<exclude name="signed/" />
<exclude name="src/" />
<exclude name="target/" />
<exclude name="tmp/" />
<exclude name="thales/" />
<exclude name="vendors/" />
</patternset>
<!-- There are several categories of test, 32-bit tests, regular tests, long tests
and longest tests. We have excludes for each category. -->
<!-- Tests that we want to exclude because they don't work or are called by AllTests. -->
<patternset id="test.32bit.excludes">
<exclude name="**/junit/JUnitAuto32Test.*" />
</patternset>
<!-- Tests for Cape Code. See
$PTII/org/terraswarm/accessor/accessors/web/build.xml for
non-CapeCode tests.-->
<patternset id="test.capecode.includes">
<include name="**/ptolemy/actor/lib/jjs/**/junit/JUnitTclTest.java" />
<include name="**/org/terraswarm/accessor/test/junit/JUnitTclTest.java" />
</patternset>
<!-- Exclude Cape Code tests from short, long and longest. -->
<patternset id="test.capecode.excludes">
<include name="**/ptolemy/actor/lib/jjs/**/junit/JUnitTclTest.*" />
<include name="**/org/terraswarm/accessor/test/junit/JUnitTclTest.*" />
</patternset>
<!-- Tests that we want to exclude because they don't work or are called by AllTests. -->
<patternset id="test.excludes">
<exclude name="**/adm/coverity/test/junit/*"/>
<exclude name="**/adm/installers/test/junit/*"/>
<exclude name="**/adm/test/junit/*"/>
<exclude name="**/HTMLAboutJUnitTest.*" />
<exclude name="**/javasound/test/junit/JUnitTclTest.*" />
<!-- FIXME: lbnl/test/junit fails under Travis-ci, but we can't easily log in to run the croom command. -->
<exclude name="**/lbnl/test/junit/JUnitTclTest.*"/>
<exclude name="**/KielerJUnitTest.*" />
<!-- FIXME: HeatConductor fails to load under Travis-ci, but we can't easily log in to run the croom command. -->
<exclude name="**/ptolemy/actor/lib/fmi/fmus/omc/test/junit/JUnitTclTest.*" />
<!-- FIXME: EightFourInFourOutsJNI fails under Travis-ci because lib/libJNIFMU is not found. -->
<exclude name="**/ptolemy/actor/lib/fmi/jni/test/junit/JUnitTclTest.*" />
<exclude name="**/ptolemy/util/test/junit/AutoCGTests.*" />
<exclude name="**/ptolemy/util/test/junit/AutoCGKnownFailedTests.*" />
<exclude name="**/ptolemy/util/test/junit/ModelKnownFailedTests.*" />
<exclude name="**/ptolemy/util/test/junit/ModelTests.*" />
<exclude name="**/lbnl/actor/lib/test/junit/JUnitTclTest.*" />
<exclude name="**/ptserver/test/junit/FileDownloadTest.*" />
<exclude name="**/ptserver/test/junit/JUnitTclTest.*" />
<exclude name="**/ptserver/test/junit/RESTGetHandlerTest.*" />
<exclude name="**/ptserver/test/junit/RemoteModelTest.*" />
<exclude name="**/ptserver/test/junit/ServerTest.*" />
<exclude name="**/ptserver/test/junit/ServletTest.*" />
<exclude name="**/ptserver/test/junit/TokenParserTest.*" />
<exclude name="**/ptserver/test/junit/TypeParserTest.*" />
</patternset>
<!-- Include tests that take a long time to run.
These tests should be excluded by test.long.excludes -->
<patternset id="test.long.includes">
<include name="**/JUnitCGJavaTest.java" />
<include name="**/ptolemy/actor/lib/test/junit/JUnitTclTest.java" />
<include name="**/ptolemy/configs/test/junit/JUnitTclTest.java" />
<include name="**/ptolemy/domains/continuous/test/junit/JUnitTclTest.java" />
<include name="**/ptolemy/domains/de/test/junit/JUnitTclTest.java" />
<include name="**/ptolemy/domains/ptides/test/junit/JUnitTclTest.java" />
<include name="**/ptolemy/plot/test/junit/JUnitTclTest.java" />
</patternset>
<!-- Exclude long running tests. -->
<patternset id="test.long.excludes">
<exclude name="**/adm/coverity/test/junit/*"/>
<exclude name="**/adm/installers/test/junit/*"/>
<exclude name="**/adm/test/junit/JUnitTclTest.*" />
<exclude name="**/JUnitCGJavaTest.*" />
<exclude name="**/ptolemy/actor/lib/test/junit/JUnitTclTest.*" />
<exclude name="**/ptolemy/configs/test/junit/JUnitTclTest.*" />
<exclude name="**/ptolemy/domains/continuous/test/junit/JUnitTclTest.*" />
<exclude name="**/ptolemy/domains/de/test/junit/JUnitTclTest*" />
<exclude name="**/ptolemy/domains/ptides/test/junit/JUnitTclTest.*" />
<exclude name="**/ptolemy/plot/test/junit/JUnitTclTest*" />
</patternset>
<!-- Include tests that take longest time to run.
These tests should be excluded by test.longest.excludes -->
<patternset id="test.longest.includes">
<include name="**/ptolemy/vergil/basic/export/test/junit/ExportModelJUnitTest.java" />
</patternset>
<!-- Exclude longest running tests. -->
<patternset id="test.longest.excludes">
<exclude name="**/ptolemy/vergil/basic/export/test/junit/ExportModelJUnitTest.*" />
</patternset>
<!-- JavaScript files. -->
<patternset id="ptII.js"
includes="ptolemy/actor/lib/jjs/*.js,ptolemy/actor/lib/jjs/*/*.js,ptolemy/actor/lib/jjs/modules/*/*.js,org/terraswarm/accessor/accessors/web/*.js,org/terraswarm/accessor/accessors/web/*/*.js,org/terraswarm/accessor/accessors/web/*/*/*.js"
excludes="**/vendors/**/*.js,**/node_modules/**/*.js,**/node/**/*.js,**/node/*.js"
/>
<!-- Path of JavaScript tests for Mocha -->
<fileset id="test.mocha.files" dir="${basedir}">
<include name="**/mocha/test*.js"/>
<exclude name="**/node_modules/**"/>
<patternset refid="ptII.excludes" />
</fileset>
<!-- Ant targets. Alphabetize and add a description, please. -->
<!-- Targets that start with "-" are not meant to be run by users.
These targets typically check to see if files are present.
-->
<target name="-check-bin-vergil" unless="bin.vergil.exists">
<available property="bin.vergil.exists" file="bin/vergil"/>
</target>
<target name="-check-jsdoc">
<available property="jsdoc.command.exists" file="${jsdoc.command}"/>
</target>
<target name="-check-jshint-executable" unless="jshint.executable.exists">
<available property="jshint.executable.exists" file="${jshint.executable}"/>
</target>
<target name="-check-make-bin-vergil" unless="bin.vergil.exists">
<condition property="bin.vergil.makeable">
<and>
<not>
<available file="bin/vergil"/>
</not>
<available file="mk/ptII.mk"/>
<available file="make"
filepath="${env.PATH}"/>
</and>
</condition>
</target>
<!-- Check to see if node is in the path.
Set node.in.path to true if node.exe or node are found.
Set node.executable to node.exe or node.
-->
<target name="-check-node">
<chmod perm="a+x" file="${basedir}/bin/node"/>
<property environment="env" />
<condition property="node.in.path">
<or>
<and>
<not>
<os family="windows"/>
</not>
<available file="node"
filepath="${env.PATH}"
property="node.executable"
value="node"/>
</and>
<and>
<os family="windows"/>
<available file="node.exe"
filepath="${env.PATH}"
property="node.executable"
value="node.exe"/>
</and>
</or>
</condition>
<condition property="node.executable" value="node">
<and>
<not>
<os family="windows"/>
</not>
<available file="node"
filepath="${env.PATH}"/>
</and>
</condition>
<condition property="node.executable" value="node.exe">
<and>
<os family="windows"/>
<available file="node.exe"
filepath="${env.PATH}"/>
</and>
</condition>
</target>
<target name="-check-node-works"
depends="-check-node"
if="${node.in.path}">
<exec executable="node"
failonerror="false"
timeout="${timeout.npm}"
resultproperty="return.code">
<arg value="--version"/>
</exec>
<condition property="node.works">
<not>
<isfailure code="${return.code}"/>
</not>
</condition>
</target>
<!-- Under Windows, npm.cmd and npm are in the path, so we check
for npm.exe and use that if it is found.
Note that if npm.executable is set with the properties
at the top of the file then this will not work.
-->
<target name="-check-npm">
<chmod perm="a+x" file="${basedir}/bin/npm"/>
<property environment="env" />
<condition property="npm.executable"
value="npm.cmd"
else="npm">
<available file="npm.cmd"
filepath="${env.PATH}"/>
</condition>
</target>
<target name="-check-if-npmjs-org-is-up"
depends="-check-node-works, -check-npm-works"
if="${npm.works}"
>
<echo>Check to see if https://www.npmjs.org is up.</echo>
<condition property="npmjs-org-is-up">
<http url="https://www.npmjs.org"/>
</condition>
</target>
<target name="-check-npm-works"
depends="-check-node-works, -check-npm"
if="${node.works}">
<exec executable="${npm.executable}"
failonerror="false"
timeout="${timeout.npm}"
resultproperty="npm.return.code">
<arg value="--version"/>
</exec>
<condition property="npm.works">
<not>
<isfailure code="${npm.return.code}"/>
</not>
</condition>
</target>
<target name="-check-ptII-mk-file" unless="ptII.mk.exists">
<available property="ptII.mk.exists" file="mk/ptII.mk"/>
</target>
<target name="-check-terraswarm-accessor-accessors-directory" unless="terraswarm-accessor-accessors-exists">
<available property="terraswarm-accessor-accessors-exists" file="org/terraswarm/accessor/accessors"/>
</target>
<target name="build"
depends="build-message, build-subprojects, ptdoc, build-project, build-bin"
description="Build Ptolemy II by compiling the .java files and possibly the scripts in $PTII/bin. This is the default ant target. Run 'ant build-all' to build everything."/>
<target name="build-all"
depends="build, build-lbnl, build-bin"
description="Build Ptolemy II by compiling the .java files, the scripts in $PTII/bin and the .c files in $PTII/lbnl"/>
<target name="build-bin"
depends="-check-ptII-mk-file, -check-bin-vergil, -check-make-bin-vergil, build-bin-not, build-not-bin-vergil"
description="Run make in $PTII/bin, which creates scripts like $PTII/bin/vergil."
if="${bin.vergil.makeable}">
<exec dir="${basedir}/bin"
executable="make"
timeout="${timeout.short}">
</exec>
</target>
<target name="build-bin-not"
unless="${ptII.mk.exists}">
<echo>
$PTII/mk/ptII.mk does not exist, perhaps (cd $PTII; ./configure) has not been run?
</echo>
</target>
<target name="build-not-bin-vergil"
unless="${bin.vergil.exists}">
<echo>
$PTII/bin/vergil does not exist, perhaps (cd $PTII/bin; make) has not been run?
This can happen if the make binary cannot be found in the path or if $PTII/mk/ptII.mk
is not present.
Skipping running make in $PTII/bin, which creates scripts like $PTII/bin/vergil.
This is only an issue if you want to invoke "$PTII/bin/vergil" instead of "ant vergil".
However, $PTII/bin does include other scripts that may be of use.
</echo>
</target>
<target name="build-message">
<echo>Use ant -p to see other targets. JAVA_HOME=${env.JAVA_HOME}
tools.jar is necessary for compilation of doc/doclets/.
If compilation fails, try setting JAVA_HOME to the location of the JDK.
For example:
[bldmastr@sisyphus ptII]$ which java
/usr/bin/java
[bldmastr@sisyphus ptII]$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 26 Jul 31 10:12 /usr/bin/java -> /usr/java/default/bin/java
[bldmastr@sisyphus ptII]$ export JAVA_HOME=/usr/java/default
</echo>
</target>
<target name="build-lbnl"
description="Run make in $PTII/lbnl, which creates executables like cclient."
depends="-check-ptII-mk-file, build-lbnl-not"
if="${ptII.mk.exists}">
<echo>
Running make in $PTII/lbnl, which creates executables like cclient.
Typically, this is run after build-project so that the .class files are created.
</echo>
<exec dir="${basedir}/lbnl"
executable="make"
timeout="${timeout.short}">
</exec>
</target>
<target name="build-lbnl-not"
unless="${ptII.mk.exists}">
<echo>
$PTII/mk/ptII.mk does not exist, perhaps (cd $PTII; ./configure) has not been run?
Skipping running make in $PTII/lbnl, which creates executables like cclient.
This is only an issue if you are trying to build
the Building Controls Virtual Test Bed (BCVTB).
</echo>
</target>
<target name="build-subprojects"
description="Build subprojects. "/>
<target name="build-project">
<echo message="${ant.project.name}: ${ant.file}" />
<javac debug="true"
debuglevel="${debuglevel}"
destdir="."
includeAntRuntime="false"
fork="true"
memoryinitialsize="256m"
memorymaximumsize="${java.maxmemory}"
source="${source}"
target="${target}">
<src path="${basedir}" />
<patternset refid="ptII.excludes" />
<classpath refid="ptII.classpath" />
</javac>
</target>
<!-- Bundle for Java 1.8 under Mac OS X. See $PTII/doc/coding/installers.htm
Get vendors/misc/appbundler-1.0.jar from https://java.net/projects/appbundler/downloads
-->
<!--
<taskdef name="bundleapp"
classname="com.oracle.appbundler.AppBundlerTask"
classpath="vendors/misc/appbundler-1.0.jar"/>
-->
<!--
<target name="bundle.ptiny">
<bundleapp
applicationCategory="public.app-category.developer-tools"
name="Ptiny"
copyright="Copyright (c) 1995-2019 The Regents of the University of California. All rights reserved."
displayname="Ptiny"
identifier="ptole"
mainclassname="ptolemy.vergil.VergilApplication"
outputdirectory="."
shortversion="1.0"
signature="PTOL"
>
<runtime dir="${env.JAVA_HOME}"/>
<option value="-classpath $APP_ROOT"/>
<argument value="-ptiny"/>
</bundleapp>
</target>
-->
<target name="checkstyle" depends="initReports"
description="Run checkstyle and find common code style problems." >
<echo>To avoid an 'OutOfMemoryError' exception, under bash, try 'export ANT_OPTS=-Xmx1024m'</echo>
<taskdef resource="checkstyletask.properties" classpath="${basedir}/vendors/checkstyle-5.7/checkstyle-5.7-all.jar" />
<checkstyle config="${basedir}/ptserver/checkstyle-ptserver.xml" failOnViolation="false">
<fileset defaultexcludes="yes"
dir="${basedir}">
<patternset refid="ptII.excludes" />
</fileset>
<formatter type="${checkstyle.formatter}" toFile="${ptII.reports}/checkstyle_errors.${checkstyle.formatter}" />
</checkstyle>
<!-- <xslt in="${ptII.reports}/checkstyle_errors.xml" out="${ptII.reports}/checkstyle_report.html" style="${basedir}/ptserver/checkstyle-simple.xsl"/> -->
</target>
<target name="clean"
description="Remove all the class files.">
<echo>
Removing .class files. Use 'ant cleanall' to remove files in reports/ and codeDoc/.
Use 'ant jars.clean' to remove the jar files created by 'ant jars'.
</echo>
<delete quiet="true" verbose="no" includeemptydirs="true">
<fileset dir="${basedir}"
includes="**/*.class" />
<fileset dir="${basedir}"
includes="*_l4j.xml" />
</delete>
</target>
<target depends="clean" name="cleanall"
description="Remove all the class files, the ${ptII.reports} directory, any codeDoc directories and runs clean in accessors.">
<delete quiet="true" verbose="no" includeemptydirs="true">
<fileset dir="${basedir}" includes="reports/**" defaultexcludes="false"/>
<fileset dir="${basedir}" includes="**/codeDoc*/**" defaultexcludes="false"/>
</delete>
<subant target="clean" genericantfile="${basedir}/org/terraswarm/accessor/accessors/web/build.xml">
<dirset dir="." includes="org/terraswarm/accessor/accessors/web"/>
</subant>
</target>
<target name="doccheck"
depends="initReports"
description="Run Doccheck (http://java.sun.com/j2se/javadoc/doccheck/) to detect JavaDoc bugs." >
<javadoc additionalparam="-notimestamp -quiet"
destdir="${ptII.reports}/doccheck"
docletpathref="ptII.classpath"
packagenames="${javadoc.packagenames}"
excludepackagenames="${javadoc.excludepackagenames}"
maxmemory="${java.maxmemory}"
useexternalfile="true">
<classpath>
<path refid="ptII.classpath" />
<pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
</classpath>
<doclet name="com.sun.tools.doclets.doccheck.DocCheck" path="vendors/sun/doccheck1.2b2/doccheck.jar" />
<packageset dir="${basedir}" defaultexcludes="yes">
<patternset refid="ptII.excludes" />
<exclude name="org/ptolemy/websensor/controller/" />
<exclude name="ptolemy/apps/websensor/src/main/java/org/ptolemy/websensor/controller/" />
<exclude name="ptolemy/actor/ptalon/demo/ptinyos/SendAndReceiveCnt/output" />
<exclude name="ptolemy/actor/ptalon/demo/ptinyos/SenseToLeds/output" />
<exclude name="ptolemy/domains/ptinyos/demo/CntToLedsAndRfm/output" />
<exclude name="ptolemy/domains/ptinyos/demo/RfmToLeds/output" />
<exclude name="ptolemy/domains/ptinyos/demo/SendAndReceiveCnt/output" />
<exclude name="ptolemy/domains/ptinyos/demo/SenseToLeds/output" />
</packageset>
</javadoc>
</target>
<!-- spotbugs. See http://spotbugs.readthedocs.io/en/latest/ant.html -->
<target name="spotbugs"
depends="build, initReports"
description="Run Spotbugs">
<taskdef
resource="edu/umd/cs/findbugs/anttask/tasks.properties"
classpath="ant/lib/spotbugs-ant.jar"/>
<spotbugs
excludefilter="${basedir}/doc/spotbugs-exclude.xml"
home="${spotbugs.home}"
includefilter="${basedir}/doc/spotbugs-include.xml"
jvmargs="-Xms256m -Xmx2000m"
nested="false"
output="xml"
outputFile="${ptII.reports}/ptII-spotbugs.xml"
timeout="${timeout}"
>
<!-- Spotbugs fails if the classpath includes *:
File from auxiliary classpath not found: filesystem:/Users/cxh/.ptolemyII/*
java.io.FileNotFoundException: File /Users/cxh/.ptolemyII/* doesn't exist
At edu.umd.cs.findbugs.classfile.impl.ClassFactory.createFilesystemCodeBase(ClassFactory.java:111)
-->
<auxclasspath refid="ptII.classpath.optional" />
<class location="${basedir}" />
<sourcePath path="${basedir}" />
</spotbugs>
</target>
<target name="initReports">
<mkdir dir="${junit.output.dir}" />
<!-- doccheck and ojdcheck go into separate directories so that we can use
the Hudson HTML Publisher plugin. -->
<mkdir dir="${ptII.reports}/doccheck" />
<mkdir dir="${ptII.reports}/ojdcheck" />
</target>
<target name="installers" depends="initReports,build,jars"
description="Build installers by running a test, output goes to stdout." >
<echo>
Target to be invoked by users that create installers in the adm/gen-X.Y subdirectory.
This target sends its output to stdout. The test.installers target sends its output to repo
</echo>
<!-- printsummary takes one of One of on, off, and withOutAndErr. Off is the default-->
<junit fork="yes"
jvm="ptolemy/util/test/junit/javachdir"
printsummary="off"
showoutput="yes"
timeout="${timeout.longest}">
<classpath>
<path refid="ptII.classpath" />
<pathelement location="lib/JUnitParams-0.3.0.jar"/>
</classpath>
<formatter type="${junit.formatter}" usefile="${usefile}"/>
<jvmarg value="-Dptolemy.ptII.dir=${basedir}" />
<!-- ptolemy.ptII.batchMode is checked in MessageHandler -->
<jvmarg value="-Dptolemy.ptII.batchMode=true" />
<test name="adm.installers.test.junit.JUnitTclTest" />
</junit>
</target>
<target name="jars"
description="Create jar files." >
<subant antfile="jars.xml"
buildpath="${basedir}"
target="jars" />
</target>
<target name="jars.clean"
description="Remove all the jar files created by 'ant jars'." >
<subant antfile="jars.xml"
buildpath="${basedir}"
target="jars.clean" />
</target>
<target name="jars.vergil"
description="Run vergil using jar files." >
<subant antfile="jars.xml"
buildpath="${basedir}"
target="jars.vergil">
<property name="ptII.classpath.optional.property" value="${ptII.classpath.optional.property}"/>
</subant>
</target>
<target name="javadoc"
depends="javadoc.actorIndex, javadoc.base"
description="Generate javadoc including actor documentation and actor/demo index." />
<target name="javadoc.actor"
depends="build, javadoc.doclets">
<echo>
Generate javadoc .xml files used for actor documentation.
Generate doc/codeDoc/allNamedObjs.txt for use by javadoc.actorIndex
For details, see $PTII/ptolemy/vergil/basic/docViewerHelp.htm
</echo>
<!-- java.maxmemory of 1400m might not work here, so we use
java.maxmemory.large, which could cause problems for 32-bit
jvms. -->
<javadoc additionalparam="-quiet"
destdir="doc/codeDoc"
docletpathref="ptII.classpath"
packagenames="${javadoc.packagenames}"
excludepackagenames="${javadoc.excludepackagenames}"
maxmemory="${java.maxmemory.large}"
sourcepath="${basedir}" >
<classpath>
<path refid="ptII.classpath" />
<pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
</classpath>
<doclet name="doc.doclets.PtDoclet" path="${basedir}" />
</javadoc>
</target>
<target name="javadoc.actorIndex"
depends="javadoc.actor">
<echo>
Generate actor/demonstration index files.
Read the doc/codeDoc/allNamedObjs.txt file created by javadoc.actor.
Create the actor index.
For details, see $PTII/ptolemy/vergil/basic/docViewerHelp.htm
</echo>
<!-- java.maxmemory of 1400m might not work here, so we use
java.maxmemory.large, which could cause problems for 32-bit
jvms. -->
<java classname="ptolemy.moml.filter.ActorIndex"
fork="true"
maxmemory="${java.maxmemory.large}"
>
<arg line="doc/codeDoc/allNamedObjs.txt ptolemy/configs/doc/models.txt doc/codeDoc"/>
<classpath>
<path refid="ptII.classpath" />
<pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
</classpath>
<jvmarg value="-Dptolemy.ptII.batchMode=true" />
</java>
</target>
<target name="javadoc.base"
depends="javadoc.doclets">
<echo>Generate javadoc without building the actor documentation and the actor/demonstration index</echo>
<javadoc additionalparam="-notimestamp -quiet -tag Pt.AcceptedRating -tag Pt.ProposedRating -tag status:a:Status"
destdir="doc/codeDoc"
packagenames="${javadoc.packagenames}"
excludepackagenames="${javadoc.excludepackagenames}"
maxmemory="${java.maxmemory}"
sourcepath="${basedir}" >
<classpath>
<path refid="ptII.classpath" />
<pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
</classpath>
<taglet name="doc.doclets.RatingTaglet"
path="${basedir}" />
</javadoc>
</target>
<target name="javadoc.doclets">
<echo>Compile doc/doclets.
tools.jar is necessary for compilation of doc/doclets/.
If compilation fails, try setting JAVA_HOME to the location of the JDK.
For example:
[bldmastr@sisyphus ptII]$ which java
/usr/bin/java
[bldmastr@sisyphus ptII]$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 26 Jul 31 10:12 /usr/bin/java -> /usr/java/default/bin/java
[bldmastr@sisyphus ptII]$ export JAVA_HOME=/usr/java/default
</echo>
<javac debug="true"
debuglevel="${debuglevel}"
destdir="."
includeAntRuntime="false"
fork="true"
memoryinitialsize="256m"
memorymaximumsize="${java.maxmemory}"
source="${source}"
target="${target}">
<src path="${basedir}/doc/doclets" />
<src path="${basedir}/ptolemy/util" />
<classpath>
<path refid="ptII.classpath" />
<pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
</classpath>
</javac>
</target>
<target name="jsdoc"
depends="jsdoc-update, jsdoc-getFromWiki"
description="Run jsdoc to generate documentation for JavaScript files."
>
<echo>Invoke jsdoc to generate documentation for .js files.
To set this up:
cd $PTII/vendors; git clone https://github.com/terraswarm/jsdoc.git
$PTII/doc/jsdoc/topREADME.md will be used as the basis of the first page.
The output appears in doc/codeDoc/js/index.html
</echo>
<exec executable="${jsdoc.command}"
timeout="${timeout.short}">
<arg value="--verbose" />
<arg value="--recurse" />
<arg value="-c" />
<arg value="doc/jsdoc/jsdoc.json" />
<arg value="-R" />
<arg value="doc/jsdoc/topREADME.md" />
<arg value="-d" />
<arg value="doc/codeDoc/js" />
<arg value="ptolemy/actor/lib/jjs"/>
<arg value="org/terraswarm/accessor"/>
</exec>
</target>
<target name="jsdoc-getFromWiki"
description="Attempt to get an Accessors-specific page from the TerraSwarm wiki."
>
<chmod file="doc/jsdoc/makeptjsdocREADME" perm="a+x"/>
<exec executable="doc/jsdoc/makeptjsdocREADME"
timeout="10000">
</exec>
</target>
<target name="jsdoc-install"
depends="-check-jsdoc, -check-node-works, -check-npm-works, -check-if-npmjs-org-is-up, -jsdoc-no-network-message"
if="${npmjs-org-is-up}"
unless="jsdoc.command.exists">
<mkdir dir="${basedir}/node_modules"/>
<exec executable="${npm.executable}"
timeout="${timeout}">
<arg value="install"/>
<arg value="@terraswarm/jsdoc"/>
</exec>
</target>
<target name="-jsdoc-no-network-message"
unless="${npmjs-org-is-up}">
<echo>The node binary was not found or does not work or npmjs.org was not reachable, so the network is probably down, so there is no point in trying npm.</echo>
</target>
<target name="jsdoc-update"
depends="-check-if-npmjs-org-is-up, -jsdoc-no-network-message, jsdoc-install, -check-npm-works"
if="${npmjs-org-is-up}">
<exec executable="${npm.executable}"
timeout="${timeout}">