Now uses update_change_list to update change list inststead of just inserting a string at a hardcoded line number

This commit is contained in:
cyian-1756 2018-06-23 18:24:10 -04:00
parent 311b73be39
commit a5ba72df33

View File

@ -65,15 +65,8 @@ subprocess.call(['git', 'grep', '<version>' + nextVersion + '</version>', 'pom.x
commitMessage = nextVersion + ': ' + message
changeLogLine = ' \"' + commitMessage + '\",\n'
dataFile = open("ripme.json", "r")
ripmeJsonLines = dataFile.readlines()
ripmeJsonLines.insert(3, changeLogLine)
outputContent = ''.join(ripmeJsonLines)
dataFile.close()
update_change_list(changeLogLine)
dataFile = open("ripme.json", "w")
dataFile.write(outputContent)
dataFile.close()
print("Building ripme")
subprocess.call(["mvn", "clean", "compile", "assembly:single"])