This repository was archived by the owner on May 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.xml
More file actions
1408 lines (1314 loc) · 75.7 KB
/
plugin.xml
File metadata and controls
1408 lines (1314 loc) · 75.7 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
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"?>
<plugin xmlns="http://www.urbancode.com/PluginXMLSchema_v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<header>
<identifier version="22" id="com.datical.integration.udeploy.DaticalDB4SerenaDA" name="Datical DB" />
<description>Datical DB makes it incredibly easy to automate and
manage database schema changes for high volume, complex releases,
across any environment, for any database. No agents required.
</description>
<tag>Datical DB</tag>
</header>
<step-type name="Run Groovy Script">
<description>Runs a Groovy Script using Datical DB REPL.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer). Ideally, create a property named daticalDBCmd with the appropriate value." default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located. Ideally, create a property named daticalDBDriversDir with the appropriate value." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBScript" required="true">
<property-ui type="textBox" label="Datical DB Groovy Script" description="Complete path to Groovy Script to run." />
<value label="Unselected">unselected</value>
<value label="Skip Baselined Tables">skip</value>
<value label="Force Meta Table Deletion">force</value>
</property>
<property name="daticalDBScriptArgs" required="false">
<property-ui type="textAreaBox" label="Datical DB Groovy Script Arguments" description="Arguments to pass to Datical DB Groovy Script." />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put("Status", "Failure");
}
else {
properties.put("Status", "Success");
}
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="groovyrun.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Register and Baseline Datical DB Project">
<description>Baselines a Datical DB Project using project_baseline.groovy.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer). Ideally, create a property named daticalDBCmd with the appropriate value." default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located. Ideally, create a property named daticalDBDriversDir with the appropriate value." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBSkipForce" required="false">
<property-ui type="selectBox" label="Datical DB Skip Tables or Force Meta Table Deletion" description="Flag to skip any table that has already been baselined Deploy Threshold or Flag to remove any pre-existing DATABASECHANGELOG and DATABASECHANGELOGLOCK tables (use with caution)" />
<value label="Unselected">unselected</value>
<value label="Skip Baselined Tables">skip</value>
<value label="Force Meta Table Deletion">force</value>
</property>
<property name="daticalDBSync" required="false">
<property-ui type="checkBox" label="Datical DB Change Log Sync" description="Flag to optionally NOT run changelogSync on the Reference DB" />
</property>
<property name="daticalDBZipProject" required="false">
<property-ui type="checkBox" label="Zip Project Directory" description="If checked, Datical DB will zip the newly created project directory" />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put("Status", "Failure");
}
else {
properties.put("Status", "Success");
}
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="groovybaselineproject.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Create Datical DB Project">
<description>Creates a Datical DB Project using project_creator.groovy.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer). Ideally, create a property named daticalDBCmd with the appropriate value." default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located. Ideally, create a property named daticalDBDriversDir with the appropriate value." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectName" required="true">
<property-ui type="textBox" label="Datical DB Project Name" description="The new Datical DB project." default-value="."/>
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBProvisioningDir" required="true">
<property-ui type="textBox" label="Datical DB Provisioning Directory" description="The full path that contains the data files: <project_name>;.project.tsv.txt, <project_name>;.dbdefs.tsv.txt and <project_name>;.pipelines.tsv.txt where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBReplace" required="false">
<property-ui type="checkBox" label="Replace Existing Project" description="If checked, Datical DB will replace existing project directory" />
</property>
<property name="daticalDBZipProject" required="false">
<property-ui type="checkBox" label="Zip Project Directory" description="If checked, Datical DB will zip the newly created project directory" />
</property>
<property name="daticalDBTestConnections" required="false">
<property-ui type="checkBox" label="Test Connections" description="If checked, Datical DB test newly created database connections in the project." />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put("Status", "Failure");
}
else {
properties.put("Status", "Success");
}
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="groovycreatenewproject.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Get Datical DB Version">
<description>Shows the Datical DB version.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer). Ideally, create a property named daticalDBCmd with the appropriate value." default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located. Ideally, create a property named daticalDBDriversDir with the appropriate value." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put("Status", "Failure");
}
else {
properties.put("Status", "Success");
}
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="version.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Deploy with Datical DB">
<description>Deploys a Datical DB project to a Server.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer). Ideally, create a property named daticalDBCmd with the appropriate value." default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located. Ideally, create a property named daticalDBDriversDir with the appropriate value." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBServer" required="true">
<property-ui type="textBox" label="Datical DB Server" description="The Datical DB Server you wish to manage with Datical DB. You can determine this value by opening Datical DB and choosing a server listed in your Deployment Plan." />
</property>
<property name="daticalDBContext" required="false">
<property-ui type="textBox" label="Datical DB Context" description="The Datical DB Context of your DB Server." />
</property>
<property name="daticalDBRollback" required="false">
<property-ui type="checkBox" label="Automatic Rollback" description="If the Datical DB deploy fails, selecting this box will automatically rollback the server to the initial state using the rollback instructions specified in the Datical DB project and/or the Datical DB defaults." />
</property>
<property name="daticalDBExportSQL" required="false">
<property-ui type="checkBox" label="Export SQL" description="If checked, Datical DB will export SQL to be run against the server." />
</property>
<property name="daticalDBExportRollbackSQL" required="false">
<property-ui type="checkBox" label="Export Rollback SQL" description="If checked, Datical DB will export Rollback SQL to be run against the server." />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
<property name="daticalDBDeployThreshold" required="false">
<property-ui type="selectBox" label="Deploy Threshold" description="Sets the deployment threshold for rules." />
<value label="Stop on Error">stopOnError</value>
<value label="Stop on Warn">stopOnWarn</value>
<value label="Deploy Always">deployAlways</value>
</property>
<property name="daticalDBLabels" required="false">
<property-ui type="textBox" label="Datical DB Labels" description="The Datical DB Labels of the Change Sets to deploy." />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put("Status", "Failure");
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
var reportDir = report.replace("deployReport.html", "");
properties.put("DaticalReportDir", reportDir);
});
scanner.register("(?i)Generated SQL ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var genSQL = line.replace("Generated SQL ready at ", "");
properties.put("DaticalSQL", genSQL);
});
scanner.register("(?i)Generated rollback SQL ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var genExportSQL = line.replace("Generated rollback SQL ready at ", "");
properties.put("DaticalRollbackSQL", genExportSQL);
});
//deploy
scanner.register("(?i)Successfully deployed changes to", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Update Failed", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.scan();
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="deploy.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Validate and Forecast with Datical DB">
<description>Validates and Forecasts a Datical DB project against a Server.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer)" default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBServer" required="true">
<property-ui type="textBox" label="Datical DB Server" description="The Datical DB Server you wish to manage with Datical DB. You can determine this value by opening Datical DB and choosing a server listed in your Deployment Plan." />
</property>
<property name="daticalDBContext" required="false">
<property-ui type="textBox" label="Datical DB Context" description="The Datical DB Context of your DB Server." />
</property>
<property name="daticalDBExportSQL" required="false">
<property-ui type="checkBox" label="Export SQL" description="If checked, Datical DB will export SQL to be run against the server." />
</property>
<property name="daticalDBExportRollbackSQL" required="false">
<property-ui type="checkBox" label="Export Rollback SQL" description="If checked, Datical DB will export Rollback SQL to be run against the server." />
</property>
<property name="daticalDBDeployThreshold" required="false">
<property-ui type="selectBox" label="Deploy Threshold" description="Sets the deployment threshold for rules." />
<value label="Stop on Error">stopOnError</value>
<value label="Stop on Warn">stopOnWarn</value>
<value label="Deploy Always">deployAlways</value>
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
<property name="daticalDBLabels" required="false">
<property-ui type="textBox" label="Datical DB Labels" description="The Datical DB Labels of the Change Sets to deploy." />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put(new java.lang.String("Status"), new java.lang.String("Failure"));
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Generated SQL ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var genSQL = line.replace("Generated SQL ready at ", "");
properties.put("DaticalSQL", genSQL);
});
scanner.register("(?i)Generated rollback SQL ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var genExportSQL = line.replace("Generated rollback SQL ready at ", "");
properties.put("DaticalRollbackSQL", genExportSQL);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
var reportDir = report.replace("forecastReport.html", "");
properties.put("DaticalReportDir", reportDir);
});
//forecast
scanner.register("(?i)Forecast detected the following problems:", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.scan();
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="forecast.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Export Database Schema (Snapshot)">
<description>Creates a Datical DB Snapshot of a Server.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer)" default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBServer" required="true">
<property-ui type="textBox" label="Datical DB Server" description="The Datical DB Server you wish to manage with Datical DB. You can determine this value by opening Datical DB and choosing a server listed in your Deployment Plan." />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put(new java.lang.String("Status"), new java.lang.String("Failure"));
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
});
//snapshot
scanner.register("(?i)Snapshot of database", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var snapshot = line.split(" at ");
properties.put("DaticalSnapshot", snapshot[1]);
});
scanner.scan();
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="snapshot.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Read Datical DB History">
<description>Details the Datical DB deployment history of a Server.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer)" default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBServer" required="true">
<property-ui type="textBox" label="Datical DB Server" description="The Datical DB Server you wish to manage with Datical DB. You can determine this value by opening Datical DB and choosing a server listed in your Deployment Plan." />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put(new java.lang.String("Status"), new java.lang.String("Failure"));
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
});
//history
scanner.register("(?i)Changelog", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.scan();
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="history.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Sync Datical DB Change Log">
<description>Marks a Server as deployed based on a Datical DB Project without executing changes.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer)" default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBServer" required="true">
<property-ui type="textBox" label="Datical DB Server" description="The Datical DB Server you wish to manage with Datical DB. You can determine this value by opening Datical DB and choosing a server listed in your Deployment Plan." />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put(new java.lang.String("Status"), new java.lang.String("Failure"));
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
});
scanner.scan();
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="changelogsync.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Delete Datical DB Check Sums">
<description>Removes Change Set Check Sums from a Server.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer)" default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBServer" required="true">
<property-ui type="textBox" label="Datical DB Server" description="The Datical DB Server you wish to manage with Datical DB. You can determine this value by opening Datical DB and choosing a server listed in your Deployment Plan." />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put(new java.lang.String("Status"), new java.lang.String("Failure"));
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
});
//clearCheckSums
scanner.register("(?i)Successfully cleared checksums in database", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.scan();
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="clearchecksums.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="View Datical DB Status">
<description>Reports on the current Status of a Server.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer)" default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBServer" required="false">
<property-ui type="textBox" label="Datical DB Server" description="The Datical DB Server you wish to manage with Datical DB. You can determine this value by opening Datical DB and choosing a server listed in your Deployment Plan." />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put(new java.lang.String("Status"), new java.lang.String("Failure"));
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
});
//status
scanner.register("(?i) is up-to-date ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i) is at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.scan();
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="status.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="View Datical DB Status Details">
<description>Reports on the detailed current Status of a Server.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer)" default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBServer" required="false">
<property-ui type="textBox" label="Datical DB Server" description="The Datical DB Server you wish to manage with Datical DB. You can determine this value by opening Datical DB and choosing a server listed in your Deployment Plan." />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put(new java.lang.String("Status"), new java.lang.String("Failure"));
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
});
//status
scanner.register("(?i) is up-to-date ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i) is at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.scan();
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="statusdetails.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Check Datical DB Drivers">
<description>Returns the current database drivers settings used by Datical DB.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer)" default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put(new java.lang.String("Status"), new java.lang.String("Failure"));
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
});
//checkdrivers
scanner.register("(?i)Found ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.scan();
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="checkdrivers.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Validate Datical DB Rules">
<description>Validates the current Datical DB Rules located within the Project.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer)" default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put(new java.lang.String("Status"), new java.lang.String("Failure"));
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
});
scanner.scan();
]]></post-processing>
<command program="${agent:GROOVY_HOME}/bin/groovy">
<arg value="-cp" />
<arg path="classes" />
<arg file="checkrules.groovy" />
<arg file="${PLUGIN_INPUT_PROPS}" />
<arg file="${PLUGIN_OUTPUT_PROPS}" />
</command>
</step-type>
<step-type name="Datical DB Rollback">
<description>Performs a Rollback on a Server given a specific version.</description>
<properties>
<property name="daticalDBCmd" required="true">
<property-ui type="textBox" label="Datical DB Command" description="The full path to the Datical DB command (e.g., C:\DaticalDB\repl\hammer.bat or /opt/DaticalDB/repl/hammer)" default-value="${p:daticalDBCmd}" />
</property>
<property name="daticalDBDriversDir" required="true">
<property-ui type="textBox" label="Datical DB Driver Directory" description="The full path where Datical DB drivers are located." default-value="${p:daticalDBDriversDir}" />
</property>
<property name="daticalDBProjectDir" required="true">
<property-ui type="textBox" label="Datical DB Project Directory" description="The full path where the Datical DB project is located." default-value="."/>
</property>
<property name="daticalDBServer" required="true">
<property-ui type="textBox" label="Datical DB Server" description="The Datical DB Server you wish to manage with Datical DB. You can determine this value by opening Datical DB and choosing a server listed in your Deployment Plan." />
</property>
<property name="daticalDBVersion" required="true">
<property-ui type="textBox" label="Datical DB Rollback Version" description="Valid Versions include the following: 'changeid:id=CHANGESETID', 'count:n=COUNT', 'date:yyyy-MM-dd=YYYY-MM-DD', or 'tag:dbtag=DBTAG'." />
</property>
<property name="daticalDBExportSQL" required="false">
<property-ui type="checkBox" label="Export SQL" description="If checked, Datical DB will export SQL used to rollback the server." />
</property>
<property name="daticalDBOnlyExportSQL" required="false">
<property-ui type="checkBox" label="ONLY Export SQL" description="If checked, Datical DB will ONLY export SQL. No rollback will be performed." />
</property>
<property name="daticalDBvm" required="false">
<property-ui type="textBox" label="Datical DB JVM" description="The Java Virtual Machine to use with Datical DB. (e.g., /usr/lib/jvm/java-7-openjdk-amd64)" />
</property>
<property name="daticalDBvmargs" required="false">
<property-ui type="textBox" label="Datical DB JVM Arguments" description="The Java Virtual Machine Arguments to use with Datical DB. (e.g., -Xms512M -Xmx1024M)" />
</property>
</properties>
<post-processing><![CDATA[
if (properties.get("exitCode") != 0) {
properties.put(new java.lang.String("Status"), new java.lang.String("Failure"));
}
else {
properties.put("Status", "Success");
}
//all
scanner.register("(?i)The DaticalDB log file", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var log = line.replace("The DaticalDB log file is located at ", "");
properties.put("DaticalLog", log);
});
scanner.register("(?i)cannot be found in the current project", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Please specify a database as an argument or using the dbdef property", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)No database specified.", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.register("(?i)Report ready at ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
var report = line.replace("Report ready at ", "");
properties.put("DaticalReport", report);
});
//rollback
scanner.register("(?i)Rolled ", function(lineNumber, line) {
scanner.addLOI(lineNumber);
});
scanner.scan();
]]></post-processing>