forked from zeroc-ice/freeze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
35 lines (28 loc) · 1.03 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
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// **********************************************************************
// Main source
include ':freeze'
project(':freeze').projectDir = new File('src/Freeze')
// Tests
include ':test'
// Map of dir->subdir for each of the demos.
def demos = [
'Freeze' : ['bench', 'casino', 'library', 'phonebook', 'transform'],
'Manual' : ['evictorFilesystem', 'mapFilesystem'],
]
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("demo/${dir}/${it}")
}
}