I hope final build script fix
This commit is contained in:
parent
a3e2a74249
commit
e08e27c903
1 changed files with 2 additions and 2 deletions
|
|
@ -62,13 +62,13 @@ def getProps() {
|
||||||
}
|
}
|
||||||
|
|
||||||
def saveProps(Properties props) {
|
def saveProps(Properties props) {
|
||||||
props.store(new FileOutputStream(new File("t9build.properties")))
|
props.store(new FileOutputStream(new File("t9build.properties")), null)
|
||||||
}
|
}
|
||||||
|
|
||||||
def computeVersionNumber = { ->
|
def computeVersionNumber = { ->
|
||||||
Properties props = getProps()
|
Properties props = getProps()
|
||||||
int verNum = Integer.valueOf(props.getProperty("verNum", "0"))
|
int verNum = Integer.valueOf(props.getProperty("verNum", "0"))
|
||||||
if (hasProperty('incrementBuildNumber')) {
|
if (project.hasProperty('incrementBuildNumber')) {
|
||||||
verNum++
|
verNum++
|
||||||
props.setProperty("verNum", String.valueOf(verNum))
|
props.setProperty("verNum", String.valueOf(verNum))
|
||||||
saveProps(props)
|
saveProps(props)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue