forked from SCADA-LTS/Scada-LTS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
529 lines (477 loc) · 24.9 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
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="scadabr-1.1.0-RC">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<property name="build-project.dir" value="build/"/>
<property name="build-project.src.dir" value="${build-project.dir}classes/"/>
<property name="build-project.test.dir" value="${build-project.dir}test-classes/"/>
<property name="build-project.log.dir" value="${build-project.dir}log/"/>
<property name="build-project.log.src.name" value="${build-project.log.dir}javac-src.log"/>
<property name="build-project.log.test.name" value="${build-project.log.dir}javac-test.log"/>
<property name="junit.log.name" value="${build-project.log.dir}junit.log"/>
<property name="war.log.name" value="${build-project.log.dir}war.log"/>
<property name="webapp-resources.dir" value="webapp-resources/"/>
<path id="tomcat.ant.classpath">
<pathelement location="${env.CATALINA_HOME}/lib/catalina-ant.jar"/>
</path>
<target name="clean_and_tomcat_deploy" description="Deploy prepared WAR file from project dir to Tomcat webapps folder">
<delete file="${env.CATALINA_HOME}/webapps/ScadaBR.war"></delete>
<delete dir="${env.CATALINA_HOME}/webapps/ScadaBR"></delete>
<copy file="ScadaBR.war" todir="${env.CATALINA_HOME}/webapps" overwrite="true">
</copy>
</target>
<target name="tomcat_clean_static_content" description="Delete static content">
<delete dir="${env.CATALINA_HOME}/work/Catalina/localhost"></delete>
</target>
<target name="run" depends="tomcat_clean_static_content">
<exec executable="cmd">
<arg value="/c"/>
<arg value="%CATALINA_HOME%\bin\startup.bat"/>
</exec>
</target>
<!-- to option copy file to webapps :) -->
<path id="benchmark.classpath">
<pathelement location="lib/jmh-core-1.25.1.jar"/>
<pathelement location="lib/jmh-generator-annprocess-1.25.1.jar"/>
<pathelement location="lib/jopt-simple-4.6.jar"/>
<pathelement location="lib/commons-math3-3.2.jar"/>
</path>
<path id="test-unit.classpath">
<pathelement location="lib/junit-4.12.jar"/>
<pathelement location="lib/mockito-all-1.10.19.jar"/>
<pathelement location="lib/powermock-api-mockito-1.6.6.jar"/>
<pathelement location="lib/powermock-core-1.6.6.jar"/>
<pathelement location="lib/powermock-module-junit4-1.6.6.jar"/>
<pathelement location="lib/powermock-reflect-1.6.6.jar"/>
<pathelement location="lib/powermock-api-support-1.6.6.jar"/>
<pathelement location="lib/powermock-module-junit4-common-1.6.6.jar"/>
<pathelement location="lib/powermock-api-mockito-common-1.6.6.jar"/>
<pathelement location="lib/javassist-3.21.0-GA.jar"/>
</path>
<path id="Web App Libraries.libraryclasspath">
<pathelement location="WebContent/WEB-INF/lib/OneWireAPI.jar"/>
<pathelement location="WebContent/WEB-INF/lib/RXTXcomm.jar"/>
<pathelement location="WebContent/WEB-INF/lib/SNMP4J.jar"/>
<pathelement location="WebContent/WEB-INF/lib/activation.jar"/>
<pathelement location="WebContent/WEB-INF/lib/alpha24j.jar"/>
<pathelement location="WebContent/WEB-INF/lib/axis.jar"/>
<pathelement location="WebContent/WEB-INF/lib/bacnet4J.jar"/>
<pathelement location="WebContent/WEB-INF/lib/catalina-ant-6.0.29.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-beanutils-1.8.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-codec-1.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-collections-3.2.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-dbcp-jdbc4.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-discovery-0.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-fileupload-1.3.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-httpclient-3.0.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-io.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-lang3-3.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-logging.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-pool.jar"/>
<pathelement location="WebContent/WEB-INF/lib/crowd-integration-client-2.1.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/derby.jar"/>
<pathelement location="WebContent/WEB-INF/lib/derbytools.jar"/>
<pathelement location="WebContent/WEB-INF/lib/dnp3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/dnp34j.jar"/>
<pathelement location="WebContent/WEB-INF/lib/dwr.jar"/>
<pathelement location="WebContent/WEB-INF/lib/ezmorph-1.0.6.jar"/>
<pathelement location="WebContent/WEB-INF/lib/fhz4j-core-0.1.4-SNAPSHOT.jar"/>
<pathelement location="WebContent/WEB-INF/lib/freemarker.jar"/>
<pathelement location="WebContent/WEB-INF/lib/flyway-core-6.5.5.jar"/>
<pathelement location="WebContent/WEB-INF/lib/iec101.jar"/>
<pathelement location="WebContent/WEB-INF/lib/j-interop-2.06.jar"/>
<pathelement location="WebContent/WEB-INF/lib/j-interopdeps-1.4.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jackson-annotations-2.8.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jackson-core-2.8.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jackson-databind-2.8.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/javamelody-1.59.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jaxrpc.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jboss-common-jdbc-wrapper-3.2.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jcifs-1.2.19.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jcommon-1.0.23.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jdom-1.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jfreechart-1.0.19.jar"/>
<pathelement location="WebContent/WEB-INF/lib/joda-time-2.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jrobin-1.5.9.jar"/>
<pathelement location="WebContent/WEB-INF/lib/js.jar"/>
<pathelement location="WebContent/WEB-INF/lib/json-lib-2.3-jdk15.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jstl-api-1.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jstl-impl-1.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jstl.jar"/>
<pathelement location="WebContent/WEB-INF/lib/log4j-core-2.13.3.jar.jar"/>
<pathelement location="WebContent/WEB-INF/lib/log4j-api-2.13.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/log4j-1.2-api-2.13.3.jar"/>
<!-- To make Log4j2 faster use make all loggers Asynchronous -->
<pathelement location="WebContent/WEB-INF/lib/disruptor-3.4.2.jar"/>
<!-- disruptor is required for that purpose. Set system property: -->
<!-- -Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -->
<!-- to make all loggers asynchronous https://logging.apache.org/log4j/2.x/manual/async.html -->
<pathelement location="WebContent/WEB-INF/lib/mail.jar"/>
<pathelement location="WebContent/WEB-INF/lib/mbus4j-core-0.1.4-SNAPSHOT.jar"/>
<pathelement location="WebContent/WEB-INF/lib/mbus4j-master-0.1.4-SNAPSHOT.jar"/>
<pathelement location="WebContent/WEB-INF/lib/modbus4j-3.0.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/mysql-connector-java-3.1.8-bin.jar"/>
<pathelement location="WebContent/WEB-INF/lib/mysql-connector-java-5.1.38-bin.jar"/>
<pathelement location="WebContent/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar"/>
<pathelement location="WebContent/WEB-INF/lib/ojdbc6.jar"/>
<pathelement location="WebContent/WEB-INF/lib/opc-driver.jar"/>
<pathelement location="WebContent/WEB-INF/lib/openscada-utils.jar"/>
<pathelement location="WebContent/WEB-INF/lib/openv4j-core-0.1.4-SNAPSHOT.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.openscada.opc.dcom-0.5.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.openscada.opc.lib-0.5.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.osgi.core-4.0.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.restlet-2.0.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.restlet.ext.json-2.0.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.restlet.ext.servlet-2.0.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.restlet.lib.org.json-2.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/postgresql-9.2-1000.jdbc4.jar"/>
<pathelement location="WebContent/WEB-INF/lib/quartz-1.6.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/rts.jar"/>
<pathelement location="WebContent/WEB-INF/lib/saaj.jar"/>
<pathelement location="WebContent/WEB-INF/lib/seroUtils.jar"/>
<pathelement location="WebContent/WEB-INF/lib/serotonin-timer.jar"/>
<pathelement location="WebContent/WEB-INF/lib/slf4j-api-1.5.11.jar"/>
<pathelement location="WebContent/WEB-INF/lib/slf4j-ext-1.5.11.jar"/>
<pathelement location="WebContent/WEB-INF/lib/slf4j-log4j12-1.5.11.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spinwave.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-aop-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-beans-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-context-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-context-support-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-core-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-expression-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-jdbc-3.2.17.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-jdbc-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-tx-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-tx-3.2.17.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-web-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-webmvc-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-websocket-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-messaging-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/spring-test-4.3.16.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/sqljdbc4.jar"/>
<pathelement location="WebContent/WEB-INF/lib/standard.jar"/>
<pathelement location="WebContent/WEB-INF/lib/taglibs-log.jar"/>
<pathelement location="WebContent/WEB-INF/lib/viconics.jar"/>
<pathelement location="WebContent/WEB-INF/lib/wsdl4j-1.5.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/wsdl4j.jar"/>
<pathelement location="WebContent/WEB-INF/lib/wss4j-1.5.8.jar"/>
<pathelement location="WebContent/WEB-INF/lib/xfire-aegis-1.2.6.jar"/>
<pathelement location="WebContent/WEB-INF/lib/xfire-core-1.2.6.jar"/>
<pathelement location="WebContent/WEB-INF/lib/xmlsec-1.4.3.jar"/>
<!--pathelement location="WebContent/WEB-INF/lib/junit-4.8.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/mockito-all-1.9.5.jar"/>
<pathelement location="WebContent/WEB-INF/lib/mockito-core-2.11.0.jar"/-->
<pathelement location="WebContent/WEB-INF/classes"/>
</path>
<path id="EAR Libraries.libraryclasspath"/>
<path id="Apache Tomcat v7.0 [Apache Tomcat v7.0].libraryclasspath">
<pathelement location="${env.CATALINA_HOME}/lib/annotations-api.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/catalina-ant.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/catalina-ha.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/catalina-tribes.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/catalina.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/ecj-3.7.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/el-api.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/jasper-el.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/jasper.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/jsp-api.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/mail-1.4.1.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/servlet-api.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/tomcat-api.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/tomcat-coyote.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/tomcat-dbcp.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/tomcat-i18n-es.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/tomcat-i18n-fr.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/tomcat-i18n-ja.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/tomcat-jdbc.jar"/>
<pathelement location="${env.CATALINA_HOME}/lib/tomcat-util.jar"/>
</path>
<path id="httpcomponents-client-4.5.3">
<pathelement location="WebContent/WEB-INF/lib/commons-codec-1.9.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-logging-1.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/fluent-hc-4.5.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/httpclient-4.5.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/httpclient-cache-4.5.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/httpclient-win-4.5.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/httpcore-4.4.6.jar"/>
<pathelement location="WebContent/WEB-INF/lib/httpmime-4.5.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jna-4.1.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jna-platform-4.1.0.jar"/>
</path>
<path id="scadabr-1.1.0-RC.classpath">
<pathelement location="${build-project.src.dir}"/>
<path refid="Web App Libraries.libraryclasspath"/>
<path refid="EAR Libraries.libraryclasspath"/>
<path refid="httpcomponents-client-4.5.3"/>
<pathelement location="WebContent/WEB-INF/lib/wsdl4j-1.5.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/wss4j-1.5.8.jar"/>
<pathelement location="WebContent/WEB-INF/lib/xmlsec-1.4.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/opc-driver.jar"/>
<pathelement location="WebContent/WEB-INF/lib/dnp34j.jar"/>
<pathelement location="WebContent/WEB-INF/lib/iec101.jar"/>
<pathelement location="WebContent/WEB-INF/lib/rts.jar"/>
<pathelement location="WebContent/WEB-INF/lib/bacnet4J.jar"/>
<pathelement location="WebContent/WEB-INF/lib/sqljdbc4.jar"/>
<pathelement location="WebContent/WEB-INF/lib/alpha24j.jar"/>
<!--pathelement location="lib/mockito-all-1.9.5.jar"/-->
<pathelement location="WebContent/WEB-INF/lib/joda-time-2.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/modbus4j-2.0.2.jar"/>
<path refid="Apache Tomcat v7.0 [Apache Tomcat v7.0].libraryclasspath"/>
</path>
<target name="init" depends="clean">
<mkdir dir="${build-project.dir}"/>
<mkdir dir="${build-project.src.dir}"/>
<mkdir dir="${build-project.test.dir}"/>
<mkdir dir="${build-project.log.dir}"/>
<copy includeemptydirs="false" todir="${build-project.src.dir}">
<fileset dir="src">
<exclude name="**/*.launch"/>
<exclude name="**/*.xtend"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="${build-project.test.dir}">
<fileset dir="test">
<exclude name="**/*.launch"/>
<exclude name="**/*.xtend"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="${build-project.dir}"/>
</target>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<record action="start" name="${build-project.log.src.name}"/>
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="${build-project.src.dir}" includeantruntime="false" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="scadabr-1.1.0-RC.classpath"/>
</javac>
<record action="stop" name="${build-project.log.src.name}"/>
<record action="start" name="${build-project.log.test.name}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="${build-project.test.dir}" includeantruntime="false" source="${source}" target="${target}">
<src path="test"/>
<classpath refid="scadabr-1.1.0-RC.classpath"/>
<classpath refid="test-unit.classpath"/>
<classpath refid="benchmark.classpath"/>
</javac>
<record action="stop" name="${build-project.log.test.name}"/>
</target>
<!-- Instead of bower package manager -->
<target name="static-web-dependency" description="Download web resources from the NPM, required for PointHierarchySLTS">
<exec dir="./WebContent/resources" executable="npm">
<arg value="install"/>
</exec>
</target>
<target name="new-ui-dependency">
<exec dir="./scadalts-ui" executable="npm">
<arg value="install"/>
</exec>
</target>
<target name="new-ui" depends="new-ui-dependency, static-web-dependency">
<exec dir="./scadalts-ui" executable="npm">
<arg value="run"/>
<arg value="build"/>
</exec>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
<target name="war" description="Bundles the application as a WAR file" depends="clean, build, new-ui">
<record action="start" name="${war.log.name}"/>
<property name="js-ui.dir" value="WebContent/resources/js-ui"/>
<property name="src-js-ui.dir" value="scadalts-ui/dist"/>
<property name="web.classes.dir" value="WebContent/WEB-INF/classes"/>
<delete dir="${js-ui.dir}/app"></delete>
<delete dir="${js-ui.dir}/views"></delete>
<delete dir="${js-ui.dir}/pointHierarchy"></delete>
<delete dir="${js-ui.dir}/ds"></delete>
<delete dir="${js-ui.dir}/modernWatchList"></delete>
<mkdir dir="${js-ui.dir}/app"></mkdir>
<mkdir dir="${js-ui.dir}/app/js"></mkdir>
<mkdir dir="${js-ui.dir}/app/css"></mkdir>
<mkdir dir="${js-ui.dir}/app/fonts"></mkdir>
<mkdir dir="${js-ui.dir}/views"></mkdir>
<mkdir dir="${js-ui.dir}/views/js"></mkdir>
<mkdir dir="${js-ui.dir}/views/css"></mkdir>
<mkdir dir="${js-ui.dir}/pointHierarchy"></mkdir>
<mkdir dir="${js-ui.dir}/pointHierarchy/js"></mkdir>
<mkdir dir="${js-ui.dir}/pointHierarchy/css"></mkdir>
<mkdir dir="${js-ui.dir}/ds"></mkdir>
<mkdir dir="${js-ui.dir}/ds/js"></mkdir>
<mkdir dir="${js-ui.dir}/ds/css"></mkdir>
<mkdir dir="${js-ui.dir}/modernWatchList"></mkdir>
<mkdir dir="${js-ui.dir}/modernWatchList/js"></mkdir>
<mkdir dir="${js-ui.dir}/modernWatchList/css"></mkdir>
<!-- -->
<mkdir dir="${src-js-ui.dir}/css/"></mkdir>
<mkdir dir="${src-js-ui.dir}/js/"></mkdir>
<mkdir dir="${src-js-ui.dir}/fonts/"></mkdir>
<!-- copy content for app -->
<copy includeemptydirs="false" todir="${js-ui.dir}/app/css" taskname="copy app css">
<fileset dir="${src-js-ui.dir}/css/">
<include name="app.css"/>
<include name="chunk-vendors.css"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="${js-ui.dir}/app/js" taskname="copy app.js">
<fileset dir="${src-js-ui.dir}/js/">
<include name="app.js"/>
<include name="chunk-vendors.js"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="${js-ui.dir}/app/fonts" taskname="copy app.js">
<fileset dir="${src-js-ui.dir}/fonts/">
<include name="glyphicons-halflings-regular.eot"/>
<include name="glyphicons-halflings-regular.ttf"/>
<include name="glyphicons-halflings-regular.woff"/>
<include name="glyphicons-halflings-regular.woff2"/>
</fileset>
</copy>
<!-- copy content for views -->
<copy includeemptydirs="false" todir="${js-ui.dir}/views/css" taskname="copy for views css">
<fileset dir="${src-js-ui.dir}/css/">
<include name="cmp-component.css"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="${js-ui.dir}/views/js" taskname="copy for views js">
<fileset dir="${src-js-ui.dir}/js/">
<include name="cmp-component.js"/>
<include name="isalive-component.js"/>
<include name="simple-component-svg.js"/>
<include name="test-component.js"/>
</fileset>
</copy>
<!-- copy content for ds (data source) -->
<copy includeemptydirs="false" todir="${js-ui.dir}/ds/css" taskname="copy for ds css">
<fileset dir="${src-js-ui.dir}/css/">
<include name="sleep-and-reactivation-ds-component.css"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="${js-ui.dir}/ds/js" taskname="copy for ds js">
<fileset dir="${src-js-ui.dir}/js/">
<include name="sleep-and-reactivation-ds-component.js"/>
</fileset>
</copy>
<!-- copy content for ph -->
<copy includeemptydirs="false" todir="${js-ui.dir}/pointHierarchy/js" taskname="copy for ph js">
<fileset dir="${src-js-ui.dir}/js/">
<include name="ph.js"/>
</fileset>
</copy>
<!-- copy content for modern watch list chart -->
<copy includeemptydirs="false" todir="${js-ui.dir}/modernWatchList/js" taskname="copy for mwl js">
<fileset dir="${src-js-ui.dir}/js/">
<include name="example-chart-cmp.js"/>
<include name="xlsx.js"/>
<include name="pdfmake.js"/>
<include name="canvg.js"/>
</fileset>
</copy>
<!-- copy content for modern charts -->
<copy includeemptydirs="false" todir="${js-ui.dir}/views/js" taskname="copy for charts js">
<fileset dir="${src-js-ui.dir}/js/">
<include name="step-line-chart-component.js"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="${js-ui.dir}/views/js" taskname="copy for live-alarms js">
<fileset dir="${src-js-ui.dir}/js/">
<include name="live-alarms-component.js"/>
</fileset>
</copy>
<!-- font do zrobienia -->
<!-- img do zrobienia -->
<delete dir="${web.classes.dir}"/>
<mkdir dir="${web.classes.dir}"/>
<copy includeemptydirs="false" todir="${web.classes.dir}">
<fileset dir="${build-project.src.dir}">
<include name="**/*.class"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="${web.classes.dir}">
<fileset dir="${webapp-resources.dir}" />
</copy>
<war destfile="ScadaBR.war"
basedir="WebContent"
needxmlfile="false">
</war>
<record action="stop" name="${war.log.name}"/>
</target>
<target name="junit">
<record action="start" name="${junit.log.name}"/>
<junit printsummary="yes" haltonfailure="no">
<formatter type="plain" usefile="false" />
<classpath refid="scadabr-1.1.0-RC.classpath" />
<classpath location="${build-project.test.dir}" />
<classpath refid="test-unit.classpath" />
<!--
<test name="br.org.scadabr.api.AckEventsTest"
haltonfailure="no">
</test>
<test name="br.org.scadabr.api.ActiveEventsTest"
haltonfailure="no">
</test>
<test name="br.org.scadabr.api.ActiveEventsTest"
haltonfailure="no">
</test>
-->
<!--
<test name="org.scada_lts.dao.ViewHierarchyDaoTest"
haltonfailure="no">
</test>
<test name="org.scada_lts.service.ViewHierarchyServiceTest"
haltonfailure="yes">
</test>
<test name="org.scada_lts.service.ViewHierarchyServiceTestOnDB"
haltonfailure="yes">
</test>
-->
<!--
<test name="org.scada_lts.service.ViewHierarchyServiceMoveFolderTest"
haltonfailure="yes">
</test>
<test name="org.scada_lts.service.ViewHierarchyServiceMoveViewTest"
haltonfailure="yes">
</test>
-->
<test name="org.scada_lts.cached.DataPointsCacheComposeDataSourcesDataTest"
haltonfailure="yes">
</test>
<test name="org.scada_lts.cached.DataSourcePointsCacheMockitoTest"
haltonfailure="yes">
</test>
<test name="com.serotonin.mango.rt.dataImage.PointValueCacheTest"
haltonfailure="yes">
</test>
<test name="com.serotonin.mango.rt.dataImage.PointValueFacadeTest"
haltonfailure="yes">
</test>
<test name="com.serotonin.mango.web.dwr.DataPointDetailsDwrTest"
haltonfailure="yes">
</test>
<test name="com.serotonin.mango.rt.dataImage.PointValueTimeTest"
haltonfailure="yes">
</test>
<test name="com.serotonin.mango.rt.dataImage.AnnotatedPointValueTimeTest"
haltonfailure="yes">
</test>
<test name="org.scada_lts.dao.PointValueDAOTest"
haltonfailure="yes">
</test>
<test name="com.serotonin.mango.view.component.ViewComponentTestsSuite"
haltonfailure="yes">
</test>
<test name="com.serotonin.mango.rt.dataSource.meta.ScriptExecutorTest"
haltonfailure="yes">
</test>
<test name="com.serotonin.mango.rt.scripting.ContextualizedScriptRTTestsSuite"
haltonfailure="yes">
</test>
</junit>
<record action="stop" name="${junit.log.name}"/>
</target>
</project>