forked from Igalia/wolvic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
44 lines (38 loc) · 1.45 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
41
42
43
44
include ':app'
def wavebuild = new File('third_party/wavesdk/build.gradle')
if (wavebuild.exists()) {
include ':wavesdk'
project(':wavesdk').projectDir = new File('third_party/wavesdk/')
}
Properties userProperties = null;
if (file('user.properties').canRead()) {
userProperties = new Properties()
userProperties.load(file('user.properties').newDataInputStream())
logger.lifecycle('Local configuration: loaded user.properties')
} else {
logger.lifecycle('Local configuration: absent user.properties; proceeding as normal.')
}
if (userProperties != null) {
userProperties.each { prop ->
gradle.ext.set("userProperties.${prop.key}", prop.value)
logger.lifecycle("\tuserProperties.${prop.key}" + '=' + prop.value)
}
if (gradle.hasProperty('userProperties.enableServo')) {
logger.lifecycle('Including Servo.')
include ':servo'
}
}
Properties localProperties = null;
if (file('local.properties').canRead()) {
localProperties = new Properties()
localProperties.load(file('local.properties').newDataInputStream())
logger.lifecycle('Local configuration: loaded local.properties')
} else {
logger.lifecycle('Local configuration: absent local.properties; proceeding as normal.')
}
if (localProperties != null) {
localProperties.each { prop ->
gradle.ext.set("localProperties.${prop.key}", prop.value)
logger.lifecycle("\tlocalProperties.${prop.key}" + '=' + prop.value)
}
}