conf da pom

This commit is contained in:
Alfredo Oliviero 2024-05-24 14:58:22 +02:00
parent 4b6a6901b2
commit 3f1f17d05c
1 changed files with 11 additions and 11 deletions

View File

@ -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 ---------------------------------------------------