conf da pom
This commit is contained in:
parent
4b6a6901b2
commit
3f1f17d05c
|
@ -14,26 +14,26 @@ import os
|
|||
# import sys
|
||||
# sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
_pom_path = "../.."
|
||||
|
||||
def getVersion():
|
||||
cmd = """cd ../.. && \
|
||||
mvn -q \
|
||||
def getMvnVariable(variable):
|
||||
cmd = """cd %s && mvn -q \
|
||||
-Dexec.executable=echo \
|
||||
-Dexec.args='${project.version}' \
|
||||
-Dexec.args='${project.%s}' \
|
||||
--non-recursive \
|
||||
exec:exec"""
|
||||
exec:exec""" % (_pom_path, variable)
|
||||
|
||||
stream = os.popen(cmd)
|
||||
return stream.read().strip()
|
||||
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = 'gCube Hello World Service SG4'
|
||||
copyright = '2024, gCube System'
|
||||
author = 'Luca Frosini (ISTI-CNR), Lucio Lelii (ISTI-CNR), Alfredo Oliviero (ISTI-CNR)'
|
||||
|
||||
# The full version, including alpha/beta/rc tags
|
||||
release = getVersion()
|
||||
release = getMvnVariable("version")
|
||||
project = getMvnVariable("name")
|
||||
|
||||
copyright = '2024, %s' % getMvnVariable("organization.name")
|
||||
author = 'Luca Frosini (ISTI-CNR), Lucio Lelii (ISTI-CNR), Alfredo Oliviero (ISTI-CNR)'
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue