conf da pom
This commit is contained in:
parent
4b6a6901b2
commit
3f1f17d05c
|
@ -14,26 +14,26 @@ import os
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
_pom_path = "../.."
|
||||||
|
|
||||||
def getVersion():
|
def getMvnVariable(variable):
|
||||||
cmd = """cd ../.. && \
|
cmd = """cd %s && mvn -q \
|
||||||
mvn -q \
|
|
||||||
-Dexec.executable=echo \
|
-Dexec.executable=echo \
|
||||||
-Dexec.args='${project.version}' \
|
-Dexec.args='${project.%s}' \
|
||||||
--non-recursive \
|
--non-recursive \
|
||||||
exec:exec"""
|
exec:exec""" % (_pom_path, variable)
|
||||||
|
|
||||||
stream = os.popen(cmd)
|
stream = os.popen(cmd)
|
||||||
return stream.read().strip()
|
return stream.read().strip()
|
||||||
|
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- 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
|
# 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 ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue