I have an application that requires me to set a system property during startup, and the property must be different in each environment (i.e. one value in Dev, a different value in Prod).
This is similar to another unanswered question, but that one asks specifically about daemons, and we are using Program scripts. The solution may be the same, though I did find hints that there may be special treatment for JSW daemons. The unix template has a placeholder for @ENV_SETUP@
, and the documentation says that environmentSetupFileName is for JSW only. I would consider using environmentSetupFileName, but I can't find any more information on how to use it or how to get other scripts in the bin directory where environmentSetupFileName expects them to be.
This seems like it must be a common problem, and I'm surprised the answer isn't easier to find. How can I set environment-specific system properties with AppAssembler?