File tree Expand file tree Collapse file tree 1 file changed +54
-1
lines changed Expand file tree Collapse file tree 1 file changed +54
-1
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,57 @@ papa << {
1616
1717papa << {
1818 println ' papa'
19- }
19+ }
20+
21+ task init << {
22+ println ' init env'
23+ }
24+
25+ task base1 << {
26+ println ' base task 1'
27+ }
28+
29+ task base2 << {
30+ println ' base task 2'
31+ }
32+
33+ task dowork {
34+ dependsOn << base2
35+ dependsOn << base1
36+ // println 'call: dowork'
37+ }
38+
39+ // dowork.dependsOn base1
40+
41+ task run << {
42+ println ' running'
43+ }
44+
45+ run. doFirst {
46+ println ' do before running'
47+ }
48+
49+ run. doFirst {
50+ println ' do init'
51+ }
52+
53+ run. doLast {
54+ println ' do close'
55+ }
56+
57+ run. doLast {
58+ println ' do clear'
59+ }
60+
61+ task createSchema << {
62+ println ' create database schema'
63+ }
64+
65+ task loadTestData (dependsOn : createSchema) << {
66+ println ' load test data'
67+ }
68+
69+ loadTestData. onlyIf {
70+ System . properties[' load.data' ] == ' true'
71+ }
72+
You can’t perform that action at this time.
0 commit comments