Index |
|
wrapper.app.parameter.<n> |
||||||||||||
These properties are used to specify the parameters that will be passed to your application's main method.
When the value of the
wrapper. <n> component:
Each element has a property name that starts with
wrapper. Individual parameter entry: It is important that each property only define a single parameter.
Quotes: Version 3.6.0 and later Starting with version 3.6.0, the handling of special characters has changed to ensure consistency across all platforms. In most cases, you can write the parameter value exactly as you intend it to be received by the Java application. An exception to this is leading or trailing spaces, which are normally trimmed from property values. To preserve these spaces, it is necessary to enclose the value in quotation marks. These quotation marks will be stripped if the corresponding "quotable" property is set to TRUE. To retain actual quotes in the value, escape them with a '\' character. Backslashes must also be doubled ('\\'). No other characters are allowed to be escaped. When stripping quotes, only the the following changes will apply:
Prior to version 3.6.0 In older versions of the Wrapper, the way quotes are handled varies between platforms. On Windows, the Java process is created using a command line where arguments containing spaces must be quoted. The quotes are automatically stripped from the command line when the process is launched. On Linux, however, an array is used, and arguments are passed directly. To simulate the Windows behavior and use the same configuration across platforms, it is possible to mark certain parameters with a strip quotes flag (stripquotes property = TRUE). This flag is only used on Unix, and specifies that quotes must be stripped before passing the parameter(s) to the JVM. When stripping quotes, all other characters except for the following will remain unchanged.
|
wrapper.app.parameter.<n>.stripquotes |
||||||||
WARNINGAs of version 3.6.0 this property is no longer needed and therefore becomes invalid. Any value marked with "stripquotes" should be revised to no longer escape backslashes ('\') and quotes ('"').
If a wrapper.
The wrapper.
Defaults to the value of the wrapper. The following replacements will be made when stripping quotes. All other characters will remain unchanged.
|
wrapper.app.parameter.default.stripquotes |
||||||||
WARNINGAs of version 3.6.0 this property is no longer needed and therefore becomes invalid. Any value marked with "stripquotes" should be revised to no longer escape backslashes ('\') and quotes ('"').
Makes it possible to change the default strip quotes behavior on UNIX when you wish to have the same behavior
for all wrapper.
|
wrapper.app.parameter_file |
||||||||||
This property provides a way to specify a file that can contain one or more parameters to be passed to the JVM. This can be very useful when the parameter list needs to be generated dynamically or via an installer. Any parameters defined in this file will appear after those defined using the standard wrapper.app.parameter.<n> properties. Starting with Wrapper version 3.5.23, any environment variable references in the file will be expanded. File Format: The file format is simple.
NOTEVersions before 3.6.0 don't have the "quotable" mode, and multiple parameters per line are always allowed. If any of the values need to include a space, then it is necessary to add quotes following the rules described below to make sure the file works consistently across all platforms. |
wrapper.app.parameter_file.required |
||||||||
Specifies if the parameter file is required or not. If it is required and not found, the Wrapper will stop without starting the JVM. If it is not required, the file will be ignored when not found. The default value is TRUE.
|
wrapper.app.parameter_file.quotable |
|||||||||||
When set to TRUE, the quotes contained in the parameter file will be stripped. This allows you to use quotes as delimiters for values and thus list multiple parameters on a single line. Also, quotes can be used as delimiters to retain leading or trailing spaces in parameter values. The default value for this property is "FALSE". WARNINGVersions before 3.6.0 don't have the "quotable" mode, and multiple arguments per line are always allowed. If any of the values need to include a space, then it is necessary to add quotes following the rules described below to make sure the file works consistently across all platforms. In the example below, the line was interpreted as three different parameters before version 3.6.0. Since version 3.6.0, they are interpreted as a single parameter containing quotes, unless wrapper.java.additional_file.quotable is set to TRUE.
When a "quotable" property is set to TRUE, actual quotes to be retained in the corresponding value must then be escaped with a '\' character, and backslashes must be doubled ('\\'). No other character are allowed to be escaped. The following replacements will be made when stripping quotes.
|
wrapper.app.parameter_file.stripquotes |
||||||||||
WARNINGAs of version 3.6.0 this property is no longer needed and therefore becomes invalid. Any value marked with "stripquotes" should be revised to no longer escape backslashes ('\') and quotes ('"'). Different platforms handle parameters with spaces differently. To make a given configuration work consistently, you should always quote those values. They will be used as is on Windows. However, on UNIX platforms, the quotes will be stripped as the command line is broken into a parameter list. In almost all cases you will want to strip these quotes. The default value is "FALSE".
|
wrapper.app.parameter.backend |
||||||||
This property can be set to TRUE to pass application parameters via the backend instead of the command line. If any application parameters contain sensitive data, the Wrapper will require this property to be set to TRUE to prevent the data from appearing on the command line. The default value is "FALSE".
|
Reference: Parameters |
|