Skip to content

Commit

Permalink
Adding script to generate nightly resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
BugDiver committed Oct 16, 2018
1 parent 57c4f2f commit 04b76a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build_nightly.py
@@ -0,0 +1,15 @@
from datetime import datetime
from xml.dom import minidom
from subprocess import call

pom_file_name = 'pom.xml'
pom = minidom.parse(pom_file_name)
childs = pom.getElementsByTagName('version')
version = childs[0].firstChild
version.data = "{0}-nightly-{1}".format(version.data, datetime.today().strftime('%Y-%m-%d'))
pom_file = open(pom_file_name, 'w')
pom_file.write(pom.saveXML(None).replace('<?xml version="1.0" ?>', ''))
pom_file.close()

call(['mvn', 'package'])
call(['mvn', '-Doutput=pom.xml', 'help:effective-pom'])

0 comments on commit 04b76a9

Please sign in to comment.