1
Je veux réutiliser vars setted une nouvelle fois plus tard dans Config.groovyComment utiliser des variables dans setted Config.Groovy et concaténer
Exemple:
static.serverURL = "http://static.foo.com"
static.path = ""
bar.default.picUrl=static.serverURL+static.path+"/images/bar.png"
mais qui me donne un
groovy.util.ConfigObject.plus() is applicable for argument types: (java.lang.String)
changer à
bar.default.picUrl=""+static.serverURL+static.path+"/images/bar.png"
me donne
[:][:]/images/bar.png
utilisant
bar.default.picUrl=${static.serverURL}+${static.path}+"/images/bar.png"
me donne
nullnull/images/bar.png