Skip to content

Multiple default application properties. #514

Answered by BoRa-SEB
mhardin18 asked this question in Q&A
Discussion options

You must be logged in to vote

I had a similar problem when I wanted to use the ZAppBuild code base in our Sandbox as our production environment.
I did a small change to build.groovy and added one extra build parameter (zAppEnv).
In the zAppBuild repo I have the normal build-conf directory and then cloned that into the name I want to use for the other environment, example build-conf-sandbox, in there I can define other options that are specific for the sandbox environment.
And in build.groovy changed to

 // load build.properties
def envPath = ""
if (opts.zAppEnv) {
   envPath = "-${opts.zAppEnv}"
}
def buildConf = "${zAppBuildDir}/build-conf${envPath}"
props.load(new File("${buildConf}/build.properties"))

// load addi…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@mhardin18
Comment options

@dennis-behm
Comment options

@mhardin18
Comment options

@dennis-behm
Comment options

Comment options

You must be logged in to vote
1 reply
@mhardin18
Comment options

Answer selected by mhardin18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants