forked from I2P_Developers/i2p.i2p
Gradle: Fix getBuiltBy() to work when override.properties does not exist
This commit is contained in:
15
build.gradle
15
build.gradle
@ -33,12 +33,15 @@ String getBuildExtra() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String getBuiltBy() {
|
String getBuiltBy() {
|
||||||
def builtBy
|
def builtBy = ""
|
||||||
file("override.properties").readLines().findAll({ line ->
|
def overrideProps = file("override.properties")
|
||||||
line.contains("build.built-by")
|
if (overrideProps.exists()) {
|
||||||
}).first().eachMatch('.*=(.*)', {
|
overrideProps.readLines().findAll({ line ->
|
||||||
builtBy = it[1]
|
line.contains("build.built-by")
|
||||||
})
|
}).first().eachMatch('.*=(.*)', {
|
||||||
|
builtBy = it[1]
|
||||||
|
})
|
||||||
|
}
|
||||||
builtBy
|
builtBy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user