summaryrefslogtreecommitdiff
path: root/java/test/slice.gradle
blob: 018a76393aed7c76ed81c012d6bb647e78ce3311 (plain)
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
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

task testSliceTask {
    slice {
        java {
            set1 {
                files = fileTree(dir: testDir, includes:['Ice/adapterDeactivation/*.ice',
                                                     'Ice/ami/*.ice',
                                                     'Ice/admin/*.ice',
                                                     'Ice/background/*.ice',
                                                     'Ice/binding/*.ice',
                                                     'Ice/classLoader/*.ice',
                                                     'Ice/custom/*.ice',
                                                     'Ice/defaultServant/*.ice',
                                                     'Ice/defaultValue/*.ice',
                                                     'Ice/dispatcher/*.ice',
                                                     'Ice/echo/*.ice',
                                                     'Ice/exceptions/*.ice',
                                                     'Ice/facets/*.ice',
                                                     'Ice/faultTolerance/*.ice',
                                                     'Ice/hash/*.ice',
                                                     'Ice/hold/*.ice',
                                                     'Ice/info/*.ice',
                                                     'Ice/inheritance/*.ice',
                                                     'Ice/interceptor/*.ice',
                                                     'Ice/interrupt/*.ice',
                                                     'Ice/invoke/*.ice',
                                                     'Ice/location/*.ice',
                                                     'Ice/metrics/*.ice',
                                                     'Ice/networkProxy/*.ice',
                                                     'Ice/proxy/*.ice',
                                                     'Ice/retry/*.ice',
                                                     'Ice/seqMapping/*.ice',
                                                     'Ice/servantLocator/*.ice',
                                                     'Ice/serialize/*.ice',
                                                     'Ice/slicing/exceptions/*.ice',
                                                     'Ice/slicing/objects/*.ice',
                                                     'Ice/timeout/*.ice',
                                                     'Ice/acm/*.ice',
                                                     'Ice/throughput/*.ice',
                                                     'Ice/threadPoolPriority/*.ice',
                                                     'Ice/udp/*.ice',
                                                     'Freeze/complex/*.ice',
                                                     'Glacier2/router/*.ice',
                                                     'Glacier2/sessionHelper/*.ice',
                                                     'IceDiscovery/simple/*.ice',
                                                     'IceGrid/simple/*.ice',
                                                     'IceBox/admin/*.ice',
                                                     'IceBox/configuration/*.ice',
                                                     'IceSSL/configuration/*.ice',
                                                     'Slice/keyword/*.ice',
                                                     'Slice/macros/*.ice',
                                                     'Slice/structure/*.ice'])
            }
            set2 {
                args = "--tie"
                files = fileTree(dir: testDir, includes:['Ice/operations/*.ice',
                                                     'Freeze/evictor/*.ice'])
            }
            set3 {
                args = "--stream"
                files = fileTree(dir: testDir, includes:['Ice/objects/*.ice',
                                                     'Ice/optional/*.ice',
                                                     'Ice/stream/*.ice',
                                                     'Ice/enums/*.ice'])
            }
            set4 {
                args = "--checksum test.Ice.checksum.Test.SliceChecksums"
                files = fileTree(dir: testDir, includes:['Ice/checksum/Test.ice',
                                                     'Ice/checksum/Types.ice'])
            }
            set5 {
                include = ["${testDir}/Ice/packagemd"]
                files = fileTree(dir: testDir, includes:['Ice/packagemd/*.ice'])
            }
            set6 {
                args = "--checksum test.Ice.checksum.server.Test.SliceChecksums"
                files = fileTree(dir: testDir, includes:['Ice/checksum/TestServer.ice',
                                                     'Ice/checksum/TypesServer.ice'])
            }
        }
        freezej {
            files = [file("${testDir}/Freeze/complex/Complex.ice"),
                     file("${sliceDir}/Ice/Identity.ice")]
            args = "--ice"
            dict {
                ComplexDict {
                    javaType = "test.Freeze.complex.Complex.ComplexDict"
                    key = "Complex::Key"
                    value = "Complex::Node"
                }
            }
            dict {
                ByteIntMap {
                    javaType = "test.Freeze.dbmap.ByteIntMap"
                    key = "byte"
                    value = "int"
                    index = [[:]]
                }
            }
            dict {
                IntIdentityMap {
                    javaType = "test.Freeze.dbmap.IntIdentityMap"
                    key = "int"
                    value = "Ice::Identity"
                }
            }
            dict {
                IntIdentityMapWithIndex {
                    javaType = "test.Freeze.dbmap.IntIdentityMapWithIndex"
                    key = "int"
                    value = "Ice::Identity"
                    index = [[ member: 'category']]
                }
            }
            dict {
                SortedMap {
                    javaType = "test.Freeze.dbmap.SortedMap"
                    key = "int"
                    value = "Ice::Identity"
                    index = [[ member: 'category']]
                }
            }
        }
    }
}