Leif Mortenson - 2015-05-21

Michael,
The _file properties were designed to handle cases like you are asking for.
But it sounds like they don't quite meet your needs:
http://wrapper.tanukisoftware.com/doc/english/prop-java-additional-n.html#file
http://wrapper.tanukisoftware.com/doc/english/prop-app-parameter-n.html#file

Would it be possible to write the _file as part of the script used to install the service?

A lot users make use of the include files to specify a user file which can be used to override any property defined earlier. Properties defined in the main file after the include could thus not be overridden as the Wrapper always uses the last declaration of any property.
http://wrapper.tanukisoftware.com/doc/english/props-cascading.html

Environment variables of course have a scope, and something defined in your startup script will not exist when the Wrapper is run later as a service.

Are you wanting to be able to override JVM or app arguments based on their values if a specific argument is redefined? The Wrapper does not currently parse those values at this level. Although that could be a possible feature for the future.

Could you please give me an example of what you are wanting to do? I want to make sure I am clear on the issue.

Cheers,
Leif