Merge pull request #735 from cyian-1756/patchScriptFixes
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:
commit
173758eec4
9
patch.py
9
patch.py
@ -65,15 +65,8 @@ subprocess.call(['git', 'grep', '<version>' + nextVersion + '</version>', 'pom.x
|
|||||||
commitMessage = nextVersion + ': ' + message
|
commitMessage = nextVersion + ': ' + message
|
||||||
changeLogLine = ' \"' + commitMessage + '\",\n'
|
changeLogLine = ' \"' + commitMessage + '\",\n'
|
||||||
|
|
||||||
dataFile = open("ripme.json", "r")
|
update_change_list(changeLogLine)
|
||||||
ripmeJsonLines = dataFile.readlines()
|
|
||||||
ripmeJsonLines.insert(3, changeLogLine)
|
|
||||||
outputContent = ''.join(ripmeJsonLines)
|
|
||||||
dataFile.close()
|
|
||||||
|
|
||||||
dataFile = open("ripme.json", "w")
|
|
||||||
dataFile.write(outputContent)
|
|
||||||
dataFile.close()
|
|
||||||
|
|
||||||
print("Building ripme")
|
print("Building ripme")
|
||||||
subprocess.call(["mvn", "clean", "compile", "assembly:single"])
|
subprocess.call(["mvn", "clean", "compile", "assembly:single"])
|
||||||
|
Loading…
Reference in New Issue
Block a user