1
0
Fork 0

I hope final build script fix

This commit is contained in:
Clam 2014-02-17 19:58:20 +11:00
parent a3e2a74249
commit e08e27c903

View file

@ -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)