forked from zeroc-ice/ice-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
40 lines (34 loc) · 1.23 KB
/
settings.gradle
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
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// **********************************************************************
// Map of dir->subdir for each of the demos.
def demos = [
'Ice' : ['async', 'bidir', 'callback', 'hello', 'invoke',
'interrupt', 'latency', 'minimal', 'multicast', 'nested',
'plugin', 'properties', 'serialize','session', 'swing',
'throughput', 'optional','context'],
'IceDiscovery' : ['hello', 'replication'],
'Database' : ['library'],
'IceBox' : ['hello'],
'Glacier2' : ['callback', 'simpleChat', 'voip'],
'IceStorm' : ['clock'],
'IceGrid' : ['icebox', 'simple'],
'Manual' : ['evictorFilesystem', 'lifecycle', 'mapFilesystem', 'printer', 'simpleFilesystem']
]
demos.each {
def dir = it.key
def subdirs = it.value
subdirs.each {
// abc_def -> AbcDef
def name = it.split('_').collect { it.capitalize() }.join()
// A project in directory xyz is demoXyzAbcDef
def projectName = ":demo${dir.capitalize()}${name}"
include projectName
// The directory is <dir>/<name>.
project("${projectName}").projectDir = new File("${dir}/${it}")
}
}
include ":demoChat"
project(":demoChat").projectDir = new File("Chat")